├── README.md
├── data
└── quiz.json
├── index.html
├── index.js
├── noChange.js
└── tailwind.config.js
/README.md:
--------------------------------------------------------------------------------
1 | # Quiz Hero Now Zero
2 |
3 | ### Private Repo Link
4 | Click Here to create [private repo](https://classroom.github.com/a/xhXEYY1C)
5 |
6 | Private Repo link: [https://classroom.github.com/a/xhXEYY1C](https://classroom.github.com/a/xhXEYY1C)
7 |
--------------------------------------------------------------------------------
/data/quiz.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": 1,
4 | "question": "What is the largest planet in our solar system?",
5 | "options": ["Mars", "Jupiter", "Venus", "Saturn"],
6 | "answer": "Jupiter",
7 | "description": "Jupiter is the largest planet in our solar system, with a diameter of 139,822 kilometers. It is a gas giant and has a large number of moons."
8 | },
9 | {
10 | "id": 2,
11 | "question": "What is an API in programming?",
12 | "options": [
13 | "A programming language",
14 | "A type of loop",
15 | "A way to write comment in your code",
16 | "A set of rules for communication"
17 | ],
18 | "answer": "A set of rules for communication",
19 | "description": "An API (Application Programming Interface) is a set of rules and protocols that specifies how different software applications can communicate with each other. APIs are commonly used to connect different systems or services together."
20 | },
21 | {
22 | "id": 3,
23 | "question": "What is Git in programming?",
24 | "options": [
25 | "An integrated development environment (IDE)",
26 | "A version control system",
27 | "A type of loop",
28 | "A function"
29 | ],
30 | "answer": "A version control system",
31 | "description": "Git is a popular version control system used in software development to track changes to code and collaborate on projects. It allows developers to work on the same codebase simultaneously and provides a history of changes made to the code over time."
32 | },
33 | {
34 | "id": 4,
35 | "question": "What is an object in programming?",
36 | "options": [
37 | "A function that performs a specific task",
38 | "A way to organize code into modules or packages",
39 | "A type of loop",
40 | "An instance of a class that has properties and methods"
41 | ],
42 | "answer": "An instance of a class that has properties and methods",
43 | "description": "In object-oriented programming, an object is an instance of a class that has properties (attributes) and methods (functions). Objects are used to model real-world entities and organize code into reusable and modular components."
44 | },
45 | {
46 | "id": 5,
47 | "question": "Which programming language is commonly used for building web applications?",
48 | "options": ["Java", "Python", "JavaScript", "C++"],
49 | "answer": "JavaScript",
50 | "description": "JavaScript is a programming language commonly used for building web applications, particularly for front-end web development. It is used to add interactivity, animations, and dynamic behavior to web pages."
51 | },
52 | {
53 | "id": 6,
54 | "question": "What is a closure in JavaScript?",
55 | "options": [
56 | "A function that has no name.",
57 | "A function that takes another function as an argument.",
58 | "A function that returns an object.",
59 | "A function that has access to variables in its outer scope."
60 | ],
61 | "answer": "A function that has access to variables in its outer scope.",
62 | "description": "A closure in JavaScript is a powerful and unique feature of the language that allows for the creation of functions that have access to variables outside of their own scope, even after the outer function has returned."
63 | }
64 | ]
65 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
67 | Please read all the rules and steps before start.
68 |
69 |
70 |
71 |
72 | Step 1: Click on the
73 | Start Quiz
74 | button below.
75 |
76 |
77 | Step 2: After
78 | clicking Start button, you will see a page with 3s count down, wait
79 | until the count is over!
80 |
81 |
82 | Step 3: You will see
83 | the questions with 4 options for each, and counter will start and
84 | which will count your exam time.
85 |
86 |
87 | Step 4: You have to
88 | select the correct answer, and you have 60 seconds to answer 6
89 | questions.
90 |
91 |
92 | Step 5: Click on the
93 | submit quiz button, when you are done with all the answers.
94 |
95 |
96 |
97 |
98 |
101 |
102 |
103 |
104 |
105 |
109 |
112 |
113 | Attention! You have 60 seconds to
114 | answer 6 questions.
115 |
116 | Please keep an eye on the timer and make sure to answer all questions
117 | before time runs out.
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 | 00:00sec
127 |
128 |
Time Consumed
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
Chosen Answers
151 |
152 |
No Answers
153 |
154 |
155 |
156 | All Done! Ready to submit your quiz?
157 |
158 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
175 |
176 |
177 | 3s
178 |
179 |
180 | Stay Seated, Stay Sharp. Starting Quiz In a moment!
181 |