Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ontario G1 Practice Test

A complete, interactive practice test for the Ontario G1 driver's license exam. Based on the official "Driver's Handbook Study Guide" with 181 total questions.

[https://github.com/Butrus-Ngok/G1-practice-app] (https://butrus-ngok.github.io/G1-practice-app/)

Features

Complete Question Database: 77 Road Sign questions + 104 Rules of the Road questions

Three Test Types:

Road Signs Only (20 random from 77)
Rules of the Road (20 random from 104)
Full Practice Test (40 questions - 20 signs + 20 rules)

Randomized Tests: New questions every time you take a test

Instant Feedback: See correct/incorrect answers immediately

Detailed Review: Complete question-by-question review after test

Timer: Track your test completion time

Progress Tracking: Visual progress bar and score

Responsive Design: Works on desktop, tablet, and mobile

Offline Capable: Works without internet connection

Quick Start

Download all files into one folder Open index.html in any modern web browser Start practicing! - No installation or setup required

File Structure

text
g1-practice-test/
├── index.html              # Main HTML file
├── styles.css              # All CSS styles
├── script.js               # Main application logic
├── quiz-data.js           # Complete question database (181 questions)
├── README.md              # This file
└── images/                # Generated images folder
    └── signs/              # 77 road sign images

Question Sources

All questions are taken directly from the "Driver's Handbook Study Guide" PDF:

Part A: Traffic Signs - 77 questions (pages 6-12 of PDF)
Part B: Rules of the Road - 104 questions (pages 12-28 of PDF)

Test Rules

Passing Score: 80% (16/20 for signs/rules tests, 32/40 for full test)
Time: Unlimited (timer for tracking only)
Feedback: Immediate feedback on answers
Review: Complete review available after test completion
Randomization: Questions randomized each test attempt

Keyboard Shortcuts (During Quiz)

1, 2, 3, 4: Select answer option
Arrow Left: Previous question
Arrow Right: Next question
Enter: Submit/Next question
Escape: Quit test (with confirmation)

Technical Details

Pure HTML/CSS/JavaScript: No frameworks or dependencies
Local Storage: No data sent to servers
Cross-browser: Works on Chrome, Firefox, Safari, Edge
No Database: All data stored locally in JavaScript files

🔧 Customization

Want to add your own questions or images?

Add more questions: Edit quiz-data.js following the existing format

Update images: Replace files in images/signs/ or images/rules/

Change styles: Edit styles.css to match your preferences

Modify test settings: Edit script.js (passing score, number of questions, etc.)

License

This project is provided for educational purposes. Based on public domain study materials.
Always refer to the official Ontario Driver's Handbook for the most up-to-date information.

Support

This is a complete, ready-to-use application. If you encounter any issues:
Ensure all files are in the same folder
Open index.html in a modern web browser
Check browser console for errors (F12 → Console)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages