A timer-based quiz application having multiple choice questions that stores high scores of multiple users. Answering incorrectly results in penality of time.
In hiring process or in any exam, candidate is asked to complete multiple choice questions assessment.
Medium Devices/ Laptop | Small Devices/ Tablet | Extra Small Devices/Phone |
---|---|---|
![]() |
![]() |
![]() |
- JavaScript is a cross-platform, object-oriented scripting language used to make webpages interactive.
- JavaScript(JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.
- With the HTML DOM, JavaScript can access and change all the elements of an HTML document.
- Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains CSS and (optionally) JavaScript-based design templates for typography, forms, buttons, navigation, and other interface components.
-
On a start page, user can start quiz by pressing 'Start Quiz' button, which starts quiz by initializing timelimit for quiz.
-
When quiz starts, user is presented with question and four choices to choose correct answer. When user selects answer, user can see if the given answer is correct or wrong.
-
If choosen answer is wrong, their is a time penalty of ten seconds. i.e ten seconds are reduced from remaining time.
-
When quiz ends or when remaining time reaches zero, user is presented his final score and he is asked to provide name to store in highscores.
-
When user submits his name when quiz completed, his name and score is stored and highscores of all users is shown.
-
User can view previous highscores of users from 'Highscores' link on start page.
-
Responsive Web Design : Application provides Responsive web design so that it adapts to multiple screen sizes. Bootstrap is used to provide responsive functionality.
-
HTML DOM is used to create html elements dynamically.
-
Event listeners are used for events such as 'click'.
-
Users scores are stored on client side storage such as 'localStorage' of web browser.
-
Timer starts when quiz starts. Timer stops when quiz is completed or when timer reaches zero and final score is shown.
This project is licensed under MIT License.
Please let me know how I can improve this project. Issues and pull requests are always welcome.