-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.html
309 lines (290 loc) · 12.5 KB
/
quiz.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Quiz Paper</title>
<script src="js/quiz.js"></script>
<link rel="stylesheet" href="css/navBar.css">
<link rel="stylesheet" href="css/quiz.css">
<link rel="stylesheet" href="css/footer.css">
</head>
<body>
<!-- Anchor tag to move the page from down to this area -->
<a id="top"></a>
<!-- Area to put menu links -->
<div id="navBar">
<ul>
<li><a href="mainPage.html">Main Page</a></li>
<li><a href="QueryForm.html">Query Form</a></li>
<li><a href="productPayment.html">Buy Products</a></li>
<li><a href="quiz.html">Quiz</a></li>
<li><a href="studentDetails.html">Student Details</a></li>
<li id="imgLi"><a href="mainPage.html"><img src="images/logonew.png" alt="logo"></a></li>
</ul>
</div>
<div id="title"><h2>WHY NOT GIVE A TRY TO THIS QUIZ?</h2></div>
<!-- Instructions Area to do this quiz -->
<div id="instructions">
<h3>Instructions</h3>
<ul>
<li>This question paper is just for fun.</li>
<li>We have 10 general knowledge questions here.</li>
<li>You will get 2 marks for each correct answer and -1 for each wrong answer.</li>
<li>You have 100 seconds to complete this quiz</li>
<li>After you submit, you will get a box displaying your score with a background color according to your score.<br>
<ul>
<li>Score = 20 --- Green</li>
<li>Score >= 10 --- Blue</li>
<li>Score >= 0 --- Orange</li>
<li>If your score is a negative one, you will get a Red background.</li>
</ul></li>
<li>Good Luck!</li>
</ul>
</div>
<div id="final-Results">
<p id="resultsDisplay"></p>
</div>
<div id="timer-box">
<div id="timer-display"></div>
</div>
<!-- Quiz paper goes here -->
<div id="main">
<form id="form" name="form">
<h3>Q1. Where was the 1936 Summer Olympic Games held?</h3>
<ul>
<li>
<input type="radio" name="question1" id="q1-anw1" value="A">
<label for="q1-anw1">(A) Berlin, Germany</label>
</li>
<li>
<input type="radio" name="question1" id="q1-anw2" value="B">
<label for="q1-anw2">(B) Los Angeles, USA</label>
</li>
<li>
<input type="radio" name="question1" id="q1-anw3" value="C">
<label for="q1-anw3">(C) Paris, France</label>
</li>
<li>
<input type="radio" name="question1" id="q1-anw4" value="D">
<label for="q1-anw4">(D) Athens, Greece</label>
</li>
</ul>
<div id="resultsQ1" class="displayCorrections"></div>
<h3>Q2. Which country won the FIFA World Cup in 2012?</h3>
<ul>
<li>
<input type="radio" name="question2" id="q2-anw1" value="A">
<label for="q2-anw1">(A) Germany</label>
</li>
<li>
<input type="radio" name="question2" id="q2-anw2" value="B">
<label for="q2-anw2">(B) Brazil</label>
</li>
<li>
<input type="radio" name="question2" id="q2-anw3" value="C">
<label for="q2-anw3">(C) Spain</label>
</li>
<li>
<input type="radio" name="question2" id="q2-anw4" value="D">
<label for="q2-anw4">(D) France</label>
</li>
</ul>
<div id="resultsQ2" class="displayCorrections"></div>
<h3>Q3. Which country did Diego Maradona play for?</h3>
<ul>
<li>
<input type="radio" name="question3" id="q3-anw1" value="A">
<label for="q3-anw1">(A) Germany</label>
</li>
<li>
<input type="radio" name="question3" id="q3-anw2" value="B">
<label for="q3-anw2">(B) Portugal</label>
</li>
<li>
<input type="radio" name="question3" id="q3-anw3" value="C">
<label for="q3-anw3">(C) Brazil</label>
</li>
<li>
<input type="radio" name="question3" id="q3-anw4" value="D">
<label for="q3-anw4">(D) Argentina</label>
</li>
</ul>
<div id="resultsQ3" class="displayCorrections"></div>
<h3>Q4. Who won the NBA championship in 2020?</h3>
<ul>
<li>
<input type="radio" name="question4" id="q4-anw1" value="A">
<label for="q4-anw1">(A) Brooklyn Nets</label>
</li>
<li>
<input type="radio" name="question4" id="q4-anw2" value="B">
<label for="q4-anw2">(B) Los Angeles Lakers</label>
</li>
<li>
<input type="radio" name="question4" id="q4-anw3" value="C">
<label for="q4-anw3">(C) Miami Heat</label>
</li>
<li>
<input type="radio" name="question4" id="q4-anw4" value="D">
<label for="q4-anw4">(D) Milwaukee Bucks</label>
</li>
</ul>
<div id="resultsQ4" class="displayCorrections"></div>
<h3>Q5. Who is the youngest player to play international cricket?</h3>
<ul>
<li>
<input type="radio" name="question5" id="q5-anw1" value="A">
<label for="q5-anw1">(A) Sacin Tendulkar</label>
</li>
<li>
<input type="radio" name="question5" id="q5-anw2" value="B">
<label for="q5-anw2">(B) Hasan Raza</label>
</li>
<li>
<input type="radio" name="question5" id="q5-anw3" value="C">
<label for="q5-anw3">(C) Wasim Akram</label>
</li>
<li>
<input type="radio" name="question5" id="q5-anw4" value="D">
<label for="q5-anw4">(D) Shahid Afridi</label>
</li>
</ul>
<div id="resultsQ5" class="displayCorrections"></div>
<h3>Q6. Who has won the most Olympic gold medals?</h3>
<ul>
<li>
<input type="radio" name="question6" id="q6-anw1" value="A">
<label for="q6-anw1">(A) Larisa Latynina</label>
</li>
<li>
<input type="radio" name="question6" id="q6-anw2" value="B">
<label for="q6-anw2">(B) Nikolai Andrianov</label>
</li>
<li>
<input type="radio" name="question6" id="q6-anw3" value="C">
<label for="q6-anw3">(C) Usain Bolt</label>
</li>
<li>
<input type="radio" name="question6" id="q6-anw4" value="D">
<label for="q6-anw4">(D) Michael Phelps</label>
</li>
</ul>
<div id="resultsQ6" class="displayCorrections"></div>
<h3>Q7. Which country's rugby team is called the Springboks?</h3>
<ul>
<li>
<input type="radio" name="question7" id="q7-anw1" value="A">
<label for="q7-anw1">(A) South Africa</label>
</li>
<li>
<input type="radio" name="question7" id="q7-anw2" value="B">
<label for="q7-anw2">(B) England</label>
</li>
<li>
<input type="radio" name="question7" id="q7-anw3" value="C">
<label for="q7-anw3">(C) New Zealand </label>
</li>
<li>
<input type="radio" name="question7" id="q7-anw4" value="D">
<label for="q7-anw4">(D) Australia</label>
</li>
</ul>
<div id="resultsQ7" class="displayCorrections"></div>
<h3>Q8. Which country hosted the 2020 Winter Youth Olympics?</h3>
<ul>
<li>
<input type="radio" name="question8" id="q8-anw1" value="A">
<label for="q8-anw1">(A) Norway</label>
</li>
<li>
<input type="radio" name="question8" id="q8-anw2" value="B">
<label for="q8-anw2">(B) Switzerland</label>
</li>
<li>
<input type="radio" name="question8" id="q8-anw3" value="C">
<label for="q8-anw3">(C) Canada</label>
</li>
<li>
<input type="radio" name="question8" id="q8-anw4" value="D">
<label for="q8-anw4">(D) South Korea</label>
</li>
</ul>
<div id="resultsQ8" class="displayCorrections"></div>
<h3>Q9. Who is the winner of World Badminton Championship in 2015?</h3>
<ul>
<li>
<input type="radio" name="question9" id="q9-anw1" value="A">
<label for="q9-anw1">(A) Lin Dan</label>
</li>
<li>
<input type="radio" name="question9" id="q9-anw2" value="B">
<label for="q9-anw2">(B) Chen Long</label>
</li>
<li>
<input type="radio" name="question9" id="q9-anw3" value="C">
<label for="q9-anw3">(C) Lee Chong Wei</label>
</li>
<li>
<input type="radio" name="question9" id="q9-anw4" value="D">
<label for="q9-anw4">(D) Viktor Axelsen</label>
</li>
</ul>
<div id="resultsQ9" class="displayCorrections"></div>
<h3>Q10. What happens when a footballer gets a yellow card?</h3>
<ul>
<li>
<input type="radio" name="question10" id="q10-anw1" value="A">
<label for="q10-anw1">(A) Official warning to a player on offensive activities </label>
</li>
<li>
<input type="radio" name="question10" id="q10-anw2" value="B">
<label for="q10-anw2">(B) Immediately dismissed from the field of play</label>
</li>
<li>
<input type="radio" name="question10" id="q10-anw3" value="C">
<label for="q10-anw3">(C) Indicates a caution given to a player</label>
</li>
<li>
<input type="radio" name="question10" id="q10-anw4" value="D">
<label for="q10-anw4">(D) A two match ban </label>
</li>
</ul>
<div id="resultsQ10" class="displayCorrections"></div>
<hr>
<!-- Sending radio values to check answers -->
<input type="button" id="btnSubmit" name="btnSubmit" value="Submit" onclick="checkAnswers(this.form)">
</form>
</div>
<!-- Link to go to the top of the page -->
<div id="nav-link">
<a href="#top">To the top </a>
</div>
<!-- Footer Area -->
<footer>
<span id="shop-name">IITIANS SPORTS SHOP</span>
<hr>
<div id="footer-links">
<p>
<a href="mainPage.html">Home </a>|
<a href="productPayment.html">Our Shop </a>|
<a href="#">Deals </a>|
<a href="#">Online </a>
<br>
<a href="#">Contact </a>|
<a href="#">Customer Service </a>|
<a href="#">IIT Sports </a>|
<a href="#">[email protected] </a>
<br>
Bracnhes |
<a href="#">Colombo </a>|
<a href="#">Kandy </a>
</p>
</div>
<hr>
<span id="final">
<!-- Link to the page editor page -->
<a href="editorPurna.html">Page Developer Purna Peramune : More Info >></a>
</span>
</footer>
</body>
</html>