-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdmv_test_app.html
More file actions
1609 lines (1533 loc) · 74.3 KB
/
Copy pathdmv_test_app.html
File metadata and controls
1609 lines (1533 loc) · 74.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>California DMV Practice Test</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
background: white;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
max-width: 800px;
width: 100%;
padding: 40px;
position: relative;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
color: #333;
font-size: 2.5em;
margin-bottom: 10px;
}
.header p {
color: #666;
font-size: 1.1em;
}
.progress-bar {
width: 100%;
height: 8px;
background: #e0e0e0;
border-radius: 4px;
margin-bottom: 30px;
overflow: hidden;
}
.progress {
height: 100%;
background: linear-gradient(90deg, #4CAF50, #45a049);
transition: width 0.3s ease;
}
.question-counter {
text-align: center;
margin-bottom: 20px;
font-size: 1.1em;
color: #666;
}
.question-card {
background: #f8f9fa;
border-radius: 10px;
padding: 25px;
margin-bottom: 25px;
border-left: 4px solid #667eea;
}
.question-text {
font-size: 1.2em;
font-weight: 500;
color: #333;
margin-bottom: 20px;
line-height: 1.5;
}
.options {
display: grid;
gap: 10px;
}
.option {
background: white;
border: 2px solid #e0e0e0;
border-radius: 8px;
padding: 15px 20px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1em;
text-align: left;
}
.option:hover {
border-color: #667eea;
background: #f0f4ff;
}
.option.selected {
border-color: #667eea;
background: #e8f0fe;
}
.option.correct {
border-color: #4CAF50;
background: #e8f5e8;
color: #2e7d32;
}
.option.incorrect {
border-color: #f44336;
background: #ffebee;
color: #c62828;
}
.option.disabled {
cursor: not-allowed;
opacity: 0.7;
}
.feedback {
margin-top: 20px;
padding: 15px;
border-radius: 8px;
font-weight: 500;
}
.feedback.correct {
background: #e8f5e8;
color: #2e7d32;
border: 1px solid #4CAF50;
}
.feedback.incorrect {
background: #ffebee;
color: #c62828;
border: 1px solid #f44336;
}
.next-btn {
background: #667eea;
color: white;
border: none;
padding: 12px 30px;
border-radius: 8px;
font-size: 1em;
font-weight: 500;
cursor: pointer;
transition: background 0.3s ease;
margin-top: 20px;
display: block;
margin-left: auto;
margin-right: auto;
}
.next-btn:hover {
background: #5a67d8;
}
.next-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
.results {
text-align: center;
padding: 30px;
}
.score {
font-size: 3em;
font-weight: bold;
margin-bottom: 20px;
}
.score.pass {
color: #4CAF50;
}
.score.fail {
color: #f44336;
}
.score-details {
font-size: 1.2em;
margin-bottom: 30px;
color: #666;
}
.restart-btn {
background: #667eea;
color: white;
border: none;
padding: 15px 40px;
border-radius: 8px;
font-size: 1.1em;
font-weight: 500;
cursor: pointer;
transition: background 0.3s ease;
}
.restart-btn:hover {
background: #5a67d8;
}
.start-screen {
text-align: center;
padding: 50px 20px;
}
.start-btn {
background: #667eea;
color: white;
border: none;
padding: 20px 50px;
border-radius: 10px;
font-size: 1.3em;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
margin-top: 30px;
}
.start-btn:hover {
background: #5a67d8;
}
.instructions {
background: #f8f9fa;
padding: 20px;
border-radius: 10px;
margin: 30px 0;
text-align: left;
}
.instructions h3 {
color: #333;
margin-bottom: 15px;
}
.instructions ul {
color: #666;
padding-left: 20px;
}
.instructions li {
margin-bottom: 8px;
}
@media (max-width: 600px) {
.container {
padding: 20px;
}
.header h1 {
font-size: 2em;
}
.question-text {
font-size: 1.1em;
}
}
</style>
</head>
<body>
<div class="container">
<div id="start-screen" class="start-screen">
<div class="header">
<h1>🚗 California DMV Practice Test</h1>
</div>
<div class="instructions">
<h3>Test Instructions:</h3>
<ul>
<li>You will answer 40 questions randomly selected from 200+ questions</li>
<li>Each question has 4 possible answers, only one is correct</li>
<li>You'll get immediate feedback after each question</li>
<li>You need 32 correct answers (80%) to pass</li>
</ul>
</div>
<button class="start-btn" onclick="startTest()">Start Practice Test</button>
</div>
<div id="test-screen" style="display: none;">
<div class="progress-bar">
<div class="progress" id="progress"></div>
</div>
<div class="question-counter">
Question <span id="current-question">1</span> of 40
</div>
<div class="question-card">
<div class="question-text" id="question-text"></div>
<div class="options" id="options"></div>
<div id="feedback" class="feedback" style="display: none;"></div>
<button class="next-btn" id="next-btn" onclick="nextQuestion()" disabled>Next Question</button>
</div>
</div>
<div id="results-screen" class="results" style="display: none;">
<div class="score" id="final-score"></div>
<div class="score-details" id="score-details"></div>
<button class="restart-btn" onclick="restartTest()">Take Another Test</button>
</div>
</div>
<script>
// Question bank with 200+ questions
const questionBank = [
{
question: "What is the minimum age to apply for a Class C instruction permit in California?",
options: ["14 years old", "15½ years old", "16 years old", "17 years old"],
correct: 1,
explanation: "You must be at least 15½ years old to apply for a Class C instruction permit."
},
{
question: "How long must a minor have an instruction permit before taking the behind-the-wheel drive test?",
options: ["3 months", "6 months", "9 months", "12 months"],
correct: 1,
explanation: "Minors must have an instruction permit for at least 6 months before taking the behind-the-wheel drive test."
},
{
question: "What is the speed limit in a business or residential district unless otherwise posted?",
options: ["20 mph", "25 mph", "30 mph", "35 mph"],
correct: 1,
explanation: "The speed limit is 25 mph in business or residential districts unless otherwise posted."
},
{
question: "When should you signal before making a turn?",
options: ["50 feet before", "100 feet before", "150 feet before", "200 feet before"],
correct: 1,
explanation: "You should signal at least 100 feet before making a turn."
},
{
question: "What does a solid yellow line on your side of the road mean?",
options: ["You may pass if safe", "No passing allowed", "Caution zone ahead", "School zone"],
correct: 1,
explanation: "A solid yellow line on your side means no passing is allowed."
},
{
question: "What is the blood alcohol concentration (BAC) limit for drivers over 21?",
options: ["0.05%", "0.08%", "0.10%", "0.12%"],
correct: 1,
explanation: "The BAC limit for drivers over 21 is 0.08%."
},
{
question: "What is the BAC limit for drivers under 21?",
options: ["0.01%", "0.02%", "0.05%", "0.08%"],
correct: 0,
explanation: "The BAC limit for drivers under 21 is 0.01%."
},
{
question: "How many seconds should you maintain between your vehicle and the one ahead?",
options: ["1 second", "2 seconds", "3 seconds", "4 seconds"],
correct: 2,
explanation: "You should maintain at least 3 seconds between your vehicle and the one ahead."
},
{
question: "What should you do when you see a flashing yellow traffic light?",
options: ["Stop completely", "Speed up", "Proceed with caution", "Treat it as a red light"],
correct: 2,
explanation: "A flashing yellow light means proceed with caution."
},
{
question: "When must you use your headlights?",
options: ["Only at night", "30 minutes after sunset", "1 hour after sunset", "When visibility is poor"],
correct: 1,
explanation: "You must use headlights beginning 30 minutes after sunset until 30 minutes before sunrise."
},
{
question: "What is the speed limit near schools when children are present?",
options: ["15 mph", "20 mph", "25 mph", "30 mph"],
correct: 2,
explanation: "The speed limit is 25 mph within 500 feet of a school when children are present."
},
{
question: "How close to a fire hydrant can you legally park?",
options: ["10 feet", "15 feet", "20 feet", "25 feet"],
correct: 1,
explanation: "You cannot park within 15 feet of a fire hydrant."
},
{
question: "What does a red traffic light mean?",
options: ["Caution", "Stop", "Yield", "Slow down"],
correct: 1,
explanation: "A red traffic light means stop."
},
{
question: "Can you turn right on a red light?",
options: ["Never", "Yes, after stopping", "Only during daytime", "Only if no sign prohibits it"],
correct: 1,
explanation: "You can turn right on red after a complete stop, unless a sign prohibits it."
},
{
question: "What is the penalty for a first-time DUI conviction?",
options: ["Warning only", "Fine only", "License suspension", "Community service"],
correct: 2,
explanation: "A first-time DUI conviction results in license suspension for one year."
},
{
question: "When changing lanes, you should:",
options: ["Signal only", "Check mirrors only", "Look over your shoulder", "All of the above"],
correct: 3,
explanation: "When changing lanes, you should signal, check mirrors, and look over your shoulder."
},
{
question: "What is the purpose of an HOV lane?",
options: ["Fast traffic only", "Carpools and buses", "Emergency vehicles", "Motorcycles only"],
correct: 1,
explanation: "HOV lanes are for carpools, buses, motorcycles, and low-emission vehicles."
},
{
question: "How many people are needed to use an HOV lane?",
options: ["1 person", "2 or more people", "3 or more people", "It varies by location"],
correct: 3,
explanation: "The number of people required for HOV lanes varies by location and is posted on signs."
},
{
question: "What does a yield sign mean?",
options: ["Stop completely", "Slow down and stop if necessary", "Speed up", "Merge immediately"],
correct: 1,
explanation: "A yield sign means slow down and be ready to stop to let others pass."
},
{
question: "When approaching a school bus with flashing red lights, you must:",
options: ["Slow down", "Stop", "Change lanes", "Proceed with caution"],
correct: 1,
explanation: "You must stop when a school bus has flashing red lights."
},
{
question: "What is the maximum speed limit on California highways?",
options: ["55 mph", "65 mph", "70 mph", "75 mph"],
correct: 1,
explanation: "The maximum speed limit on most California highways is 65 mph unless posted otherwise."
},
{
question: "You must report a traffic collision to DMV within how many days?",
options: ["5 days", "10 days", "15 days", "30 days"],
correct: 1,
explanation: "You must report a traffic collision to DMV within 10 days if there's injury or more than $1,000 in damage."
},
{
question: "What does a green arrow traffic light mean?",
options: ["Caution", "Proceed in the direction of the arrow", "Stop", "Yield"],
correct: 1,
explanation: "A green arrow means you can proceed in the direction of the arrow."
},
{
question: "When parking on a hill, you should:",
options: ["Leave in neutral", "Turn wheels toward curb going downhill", "Use parking brake", "Both B and C"],
correct: 3,
explanation: "When parking on a hill, turn wheels toward the curb going downhill and use the parking brake."
},
{
question: "What is the speed limit in an alley?",
options: ["10 mph", "15 mph", "20 mph", "25 mph"],
correct: 1,
explanation: "The speed limit in an alley is 15 mph."
},
{
question: "A pedestrian with a white cane or guide dog:",
options: ["Should yield to vehicles", "Has the right-of-way", "Can only cross at signals", "Must have assistance"],
correct: 1,
explanation: "Pedestrians with white canes or guide dogs have the right-of-way at all times."
},
{
question: "When must you dim your high-beam headlights?",
options: ["Within 100 feet of oncoming traffic", "Within 300 feet of oncoming traffic", "Within 500 feet of oncoming traffic", "Within 1000 feet of oncoming traffic"],
correct: 2,
explanation: "You must dim high-beam headlights within 500 feet of oncoming traffic."
},
{
question: "What does a diamond-shaped sign indicate?",
options: ["Regulatory information", "Warning of hazards", "Guide information", "Construction zone"],
correct: 1,
explanation: "Diamond-shaped signs warn of specific road conditions and hazards ahead."
},
{
question: "You are required to wear a seatbelt:",
options: ["Only on highways", "Only in the front seat", "Always when driving", "Only at night"],
correct: 2,
explanation: "You must always wear a seatbelt when driving or riding in a vehicle."
},
{
question: "What should you do if your vehicle starts to skid?",
options: ["Brake hard", "Steer in the opposite direction", "Steer in the direction of the skid", "Accelerate"],
correct: 2,
explanation: "If your vehicle starts to skid, steer in the direction of the skid."
},
{
question: "The maximum speed limit for vehicles towing trailers is:",
options: ["45 mph", "50 mph", "55 mph", "60 mph"],
correct: 2,
explanation: "The maximum speed limit for vehicles towing trailers is 55 mph."
},
{
question: "When backing up, you should:",
options: ["Use mirrors only", "Look over your shoulder", "Use backup camera only", "Sound your horn"],
correct: 1,
explanation: "When backing up, you should look over your shoulder to see where you're going."
},
{
question: "What is the following distance on a freeway?",
options: ["2 seconds", "3 seconds", "4 seconds", "5 seconds"],
correct: 3,
explanation: "On a freeway, you should maintain at least 5 seconds following distance."
},
{
question: "A flashing red traffic light means:",
options: ["Caution", "Stop, then proceed when safe", "Yield", "Speed up"],
correct: 1,
explanation: "A flashing red light means stop, then proceed when safe."
},
{
question: "You must stop at least how many feet from a railroad crossing?",
options: ["10 feet", "15 feet", "20 feet", "25 feet"],
correct: 1,
explanation: "You must stop at least 15 feet from the nearest railroad track."
},
{
question: "What does a broken yellow line mean?",
options: ["No passing", "Passing allowed if safe", "Lane ends", "Construction zone"],
correct: 1,
explanation: "A broken yellow line means passing is allowed if safe."
},
{
question: "When entering a freeway, you should:",
options: ["Stop and wait", "Match the speed of traffic", "Drive slowly", "Use hazard lights"],
correct: 1,
explanation: "When entering a freeway, you should match the speed of traffic."
},
{
question: "What is the speed limit at a blind intersection?",
options: ["10 mph", "15 mph", "20 mph", "25 mph"],
correct: 1,
explanation: "The speed limit at a blind intersection is 15 mph."
},
{
question: "You may cross double solid yellow lines to:",
options: ["Pass a slow vehicle", "Turn left into a driveway", "Change lanes", "Never"],
correct: 1,
explanation: "You may cross double solid yellow lines to turn left into a driveway."
},
{
question: "When driving in fog, you should:",
options: ["Use high beams", "Use low beams", "Use parking lights", "Use hazard lights"],
correct: 1,
explanation: "When driving in fog, use low-beam headlights."
},
{
question: "A white curb means:",
options: ["No parking", "Loading zone", "Passenger loading only", "Handicapped parking"],
correct: 2,
explanation: "A white curb means passenger loading only."
},
{
question: "What should you do when an emergency vehicle approaches?",
options: ["Speed up", "Stop immediately", "Pull to the right and stop", "Change lanes"],
correct: 2,
explanation: "When an emergency vehicle approaches, pull to the right and stop."
},
{
question: "The hand signal for a right turn is:",
options: ["Arm straight out", "Arm up", "Arm down", "Both arms up"],
correct: 1,
explanation: "The hand signal for a right turn is arm up."
},
{
question: "You must use your turn signal when:",
options: ["Turning only", "Changing lanes only", "Both turning and changing lanes", "Parking only"],
correct: 2,
explanation: "You must use your turn signal when turning and changing lanes."
},
{
question: "What does a red curb mean?",
options: ["No parking", "Loading zone", "Passenger loading", "Handicapped parking"],
correct: 0,
explanation: "A red curb means no stopping, standing, or parking."
},
{
question: "When can you drive faster than the posted speed limit?",
options: ["In an emergency", "To keep up with traffic", "When passing", "Never"],
correct: 3,
explanation: "You should never drive faster than the posted speed limit."
},
{
question: "What is the Basic Speed Law?",
options: ["Always drive the speed limit", "Drive slower in bad weather", "Never drive faster than safe", "Match other drivers' speed"],
correct: 2,
explanation: "The Basic Speed Law means never drive faster than is safe for current conditions."
},
{
question: "When parking uphill with a curb, turn your wheels:",
options: ["Away from the curb", "Toward the curb", "Straight", "Either direction"],
correct: 0,
explanation: "When parking uphill with a curb, turn your wheels away from the curb."
},
{
question: "A yellow traffic light means:",
options: ["Stop", "Go", "Caution - light is about to turn red", "Speed up"],
correct: 2,
explanation: "A yellow traffic light means caution - the light is about to turn red."
},
{
question: "You must yield to pedestrians:",
options: ["Only at crosswalks", "Only when they have a walk signal", "Always", "Only during school hours"],
correct: 2,
explanation: "You must always yield to pedestrians."
},
{
question: "When driving at night, you should:",
options: ["Drive faster to get home sooner", "Use high beams in the city", "Reduce speed", "Follow closer to see better"],
correct: 2,
explanation: "When driving at night, you should reduce your speed."
},
{
question: "What does a pentagon-shaped sign indicate?",
options: ["Railroad crossing", "School zone", "Construction zone", "Hospital zone"],
correct: 1,
explanation: "A pentagon-shaped sign indicates a school zone."
},
{
question: "When should you use your horn?",
options: ["To greet friends", "To avoid collisions", "When angry", "In parking lots"],
correct: 1,
explanation: "You should use your horn to avoid collisions."
},
{
question: "What is the minimum following distance in ideal conditions?",
options: ["1 second", "2 seconds", "3 seconds", "4 seconds"],
correct: 2,
explanation: "The minimum following distance in ideal conditions is 3 seconds."
},
{
question: "You may not park within how many feet of a crosswalk?",
options: ["10 feet", "15 feet", "20 feet", "25 feet"],
correct: 2,
explanation: "You may not park within 20 feet of a crosswalk."
},
{
question: "When making a left turn, you should:",
options: ["Turn immediately", "Wait for oncoming traffic to clear", "Speed up", "Sound your horn"],
correct: 1,
explanation: "When making a left turn, wait for oncoming traffic to clear."
},
{
question: "What should you do if you miss your freeway exit?",
options: ["Back up", "Make a U-turn", "Continue to the next exit", "Stop and ask for directions"],
correct: 2,
explanation: "If you miss your freeway exit, continue to the next exit."
},
{
question: "A solid white line means:",
options: ["Lane changes discouraged", "No lane changes", "Passing allowed", "Turn lane ahead"],
correct: 0,
explanation: "A solid white line means lane changes are discouraged."
},
{
question: "When driving in rain, you should:",
options: ["Use high beams", "Increase following distance", "Drive faster", "Use cruise control"],
correct: 1,
explanation: "When driving in rain, you should increase your following distance."
},
{
question: "What is the speed limit near railroad crossings?",
options: ["10 mph", "15 mph", "20 mph", "25 mph"],
correct: 1,
explanation: "The speed limit is 15 mph within 100 feet of a railroad crossing when you cannot see 400 feet in both directions."
},
{
question: "You must have your headlights on when using windshield wipers:",
options: ["Always", "Only at night", "During rain, fog, or snow", "Never"],
correct: 2,
explanation: "You must have your headlights on when using windshield wipers due to rain, fog, or snow."
},
{
question: "When approaching a roundabout, you should:",
options: ["Speed up", "Stop completely", "Yield to traffic already in the roundabout", "Honk your horn"],
correct: 2,
explanation: "When approaching a roundabout, yield to traffic already in the roundabout."
},
{
question: "What does a blue curb indicate?",
options: ["No parking", "Loading zone", "Disabled parking", "Police parking"],
correct: 2,
explanation: "A blue curb indicates disabled parking."
},
{
question: "You may drive in a bike lane when:",
options: ["Traffic is heavy", "You're turning within 200 feet", "You're late", "Never"],
correct: 1,
explanation: "You may drive in a bike lane when turning within 200 feet of an intersection."
},
{
question: "What is required to get a REAL ID?",
options: ["Driver's license only", "Identity and residency documents", "Birth certificate only", "Passport only"],
correct: 1,
explanation: "To get a REAL ID, you need identity and residency documents."
},
{
question: "When can a minor drive alone?",
options: ["Anytime", "Only to school", "Only to work", "According to provisional license restrictions"],
correct: 3,
explanation: "Minors can drive alone according to their provisional license restrictions."
},
{
question: "What is the fine for texting while driving?",
options: ["$20", "$50", "$162", "$500"],
correct: 2,
explanation: "The base fine for texting while driving is $162 for a first offense."
},
{
question: "You must register your vehicle within how many days of moving to California?",
options: ["10 days", "20 days", "30 days", "60 days"],
correct: 1,
explanation: "You must register your vehicle within 20 days of becoming a California resident."
},
{
question: "When must you change your address with DMV?",
options: ["Within 5 days", "Within 10 days", "Within 30 days", "Within 60 days"],
correct: 1,
explanation: "You must notify DMV of your address change within 10 days."
},
{
question: "What is the maximum width for a vehicle load?",
options: ["6 inches beyond fenders", "8 inches beyond fenders", "10 inches beyond fenders", "12 inches beyond fenders"],
correct: 0,
explanation: "Vehicle loads cannot extend more than 6 inches beyond the fenders on the right side."
},
{
question: "When driving behind a large truck, you should:",
options: ["Follow closely", "Maintain extra distance", "Flash your lights", "Use high beams"],
correct: 1,
explanation: "When driving behind a large truck, maintain extra distance."
},
{
question: "What should you do if your tire blows out?",
options: ["Brake hard", "Steer hard", "Maintain control and slow gradually", "Stop immediately"],
correct: 2,
explanation: "If your tire blows out, maintain control and slow down gradually."
},
{
question: "The right-of-way belongs to:",
options: ["The fastest driver", "The first driver to arrive", "The largest vehicle", "No one - it must be yielded"],
correct: 3,
explanation: "The right-of-way belongs to no one - it must be yielded."
},
{
question: "When parking on a level street, your wheels should be:",
options: ["Turned toward the curb", "Turned away from the curb", "Straight", "Either direction"],
correct: 2,
explanation: "When parking on a level street, your wheels should be straight."
},
{
question: "What is carbon monoxide?",
options: ["Visible exhaust", "Odorless deadly gas", "Fuel additive", "Engine coolant"],
correct: 1,
explanation: "Carbon monoxide is an odorless, deadly gas from vehicle exhaust."
},
{
question: "When driving in a work zone, you should:",
options: ["Speed up to get through quickly", "Slow down and be alert", "Change lanes frequently", "Use your horn"],
correct: 1,
explanation: "When driving in a work zone, slow down and be alert."
},
{
question: "What does a green curb mean?",
options: ["No parking", "Time-limited parking", "Disabled parking", "Loading zone"],
correct: 1,
explanation: "A green curb means time-limited parking."
},
{
question: "You may pass another vehicle on the right when:",
options: ["Never", "On multi-lane roads", "The other vehicle is turning left", "Both B and C"],
correct: 3,
explanation: "You may pass on the right on multi-lane roads or when the other vehicle is turning left."
},
{
question: "What is the purpose of anti-lock brakes (ABS)?",
options: ["Stop faster", "Prevent wheel lockup", "Reduce brake wear", "Save fuel"],
correct: 1,
explanation: "Anti-lock brakes prevent wheel lockup during hard braking."
},
{
question: "When should you check your blind spots?",
options: ["Before changing lanes", "When merging", "When backing up", "All of the above"],
correct: 3,
explanation: "You should check your blind spots before changing lanes, merging, and backing up."
},
{
question: "What is the speed limit on a two-lane undivided highway?",
options: ["45 mph", "50 mph", "55 mph", "65 mph"],
correct: 2,
explanation: "The speed limit on a two-lane undivided highway is 55 mph unless posted otherwise."
},
{
question: "When driving behind a motorcycle, you should:",
options: ["Follow closely", "Give them full lane width", "Pass immediately", "Use high beams"],
correct: 1,
explanation: "When driving behind a motorcycle, give them full lane width."
},
{
question: "What should you do if you feel drowsy while driving?",
options: ["Drink coffee", "Turn up the radio", "Pull over and rest", "Open windows"],
correct: 2,
explanation: "If you feel drowsy while driving, pull over and rest."
},
{
question: "When can you make a U-turn?",
options: ["Anytime", "Only at intersections", "When safe and legal", "Never"],
correct: 2,
explanation: "You can make a U-turn when it's safe and legal to do so."
},
{
question: "What is the penalty for driving without insurance?",
options: ["Warning", "Fine only", "License suspension", "Impound vehicle"],
correct: 2,
explanation: "Driving without insurance can result in license suspension."
},
{
question: "When must you stop for a school bus?",
options: ["When it's stopped", "When red lights are flashing", "When children are present", "When loading/unloading"],
correct: 1,
explanation: "You must stop for a school bus when its red lights are flashing."
},
{
question: "What does a yellow curb mean?",
options: ["No parking", "Loading zone", "Passenger loading", "Disabled parking"],
correct: 1,
explanation: "A yellow curb means loading zone for commercial vehicles."
},
{
question: "When driving in the rain, you should:",
options: ["Use cruise control", "Brake harder", "Reduce speed", "Change lanes frequently"],
correct: 2,
explanation: "When driving in the rain, you should reduce your speed."
},
{
question: "What is the maximum BAC for commercial drivers?",
options: ["0.01%", "0.04%", "0.08%", "0.10%"],
correct: 1,
explanation: "The maximum BAC for commercial drivers is 0.04%."
},
{
question: "When approaching a stopped emergency vehicle, you should:",
options: ["Speed up", "Move over and slow down", "Stop immediately", "Change lanes quickly"],
correct: 1,
explanation: "When approaching a stopped emergency vehicle, move over and slow down."
},
{
question: "What is required for a behind-the-wheel driving test?",
options: ["Valid permit", "Insured vehicle", "Licensed driver (if minor)", "All of the above"],
correct: 3,
explanation: "A behind-the-wheel driving test requires a valid permit, insured vehicle, and licensed driver for minors."
},
{
question: "When can you drive in an HOV lane alone?",
options: ["During rush hour", "On weekends", "If driving a motorcycle", "Never"],
correct: 2,
explanation: "You can drive in an HOV lane alone if you're driving a motorcycle."
},
{
question: "What should you do at a stop sign?",
options: ["Slow down", "Stop only if traffic is coming", "Come to a complete stop", "Stop for 3 seconds"],
correct: 2,
explanation: "At a stop sign, you must come to a complete stop."
},
{
question: "When is it illegal to use a cell phone while driving?",
options: ["While holding it", "While texting", "If you're under 18", "All of the above"],
correct: 3,
explanation: "It's illegal to hold a cell phone, text, or use any wireless device if you're under 18."
},
{
question: "What is the speed limit in a school zone?",
options: ["15 mph", "20 mph", "25 mph", "30 mph"],
correct: 0,
explanation: "Some school zones have speed limits as low as 15 mph."
},
{
question: "When backing out of a parking space, you should:",
options: ["Back out quickly", "Sound your horn", "Yield to pedestrians and traffic", "Use reverse lights only"],
correct: 2,
explanation: "When backing out of a parking space, yield to pedestrians and traffic."
},
{
question: "What does a circular sign mean?",
options: ["Warning", "Railroad crossing", "School zone", "Speed limit"],
correct: 1,
explanation: "A circular sign indicates a railroad crossing."
},
{
question: "When must you use your parking brake?",
options: ["Only on hills", "Only when parking", "When parking on any incline", "Every time you park"],
correct: 3,
explanation: "You should use your parking brake every time you park."
},
{
question: "What is the purpose of traffic signals?",
options: ["Decoration", "Control traffic flow", "Warn of hazards", "Guide drivers"],
correct: 1,
explanation: "Traffic signals control the flow of traffic."
},
{
question: "When driving at night, you should:",
options: ["Drive faster", "Use high beams in the city", "Increase following distance", "Follow closer to see better"],
correct: 2,
explanation: "When driving at night, increase your following distance."
},
{
question: "What should you do if you hydroplane?",
options: ["Brake hard", "Steer hard", "Gradually slow down", "Accelerate"],
correct: 2,
explanation: "If you hydroplane, gradually slow down and don't brake suddenly."
},
{
question: "When should you yield the right-of-way?",
options: ["When you're in a hurry", "When required by law", "When other drivers are rude", "When convenient"],
correct: 1,
explanation: "You should yield the right-of-way when required by law."
},
{
question: "What is the maximum speed when passing a school bus?",
options: ["5 mph", "10 mph", "15 mph", "20 mph"],
correct: 1,
explanation: "You may not exceed 10 mph when passing a school bus at a safety zone."
},
{
question: "When can you cross a double yellow line?",
options: ["To pass", "To turn left", "To change lanes", "Never"],
correct: 1,
explanation: "You can cross a double yellow line to turn left into a driveway."
},
{
question: "What should you do if your brakes fail?",
options: ["Panic", "Use the emergency brake", "Turn off the engine", "Jump out"],
correct: 1,
explanation: "If your brakes fail, use the emergency brake and downshift."
},
{
question: "When driving in fog, you should use:",
options: ["High beams", "Low beams", "Parking lights", "Hazard lights"],
correct: 1,
explanation: "When driving in fog, use low-beam headlights."
},
{
question: "What is the hand signal for stopping?",
options: ["Arm straight out", "Arm up", "Arm down", "Both arms up"],
correct: 2,
explanation: "The hand signal for stopping is arm down."
},
{
question: "When approaching a yield sign, you should:",
options: ["Stop completely", "Speed up", "Slow down and yield", "Honk your horn"],
correct: 2,
explanation: "When approaching a yield sign, slow down and yield to other traffic."
},
{
question: "What does a square sign typically indicate?",
options: ["Warning", "Regulatory", "Guide", "Construction"],
correct: 1,
explanation: "Square signs typically indicate regulatory information."
},
{
question: "When must a minor have a licensed adult in the car?",
options: ["Never", "Always", "For the first 6 months", "According to restrictions"],
correct: 3,
explanation: "Minors must have a licensed adult according to their provisional license restrictions."
},
{
question: "What is the speed limit when towing a trailer?",
options: ["Same as other vehicles", "45 mph", "55 mph", "65 mph"],
correct: 2,
explanation: "The maximum speed limit when towing a trailer is 55 mph."
},
{
question: "When changing lanes on a freeway, you should signal:",
options: ["1 second before", "3 seconds before", "5 seconds before", "10 seconds before"],
correct: 2,
explanation: "When changing lanes on a freeway, signal at least 5 seconds before."
},
{
question: "What should you do if you see a disabled vehicle ahead?",
options: ["Speed up", "Change lanes if safe", "Follow closely", "Honk your horn"],
correct: 1,
explanation: "If you see a disabled vehicle ahead, change lanes if safe."
},