-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
406 lines (390 loc) · 17 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-3.3.1.js"></script>
<script src="js/script.js"></script>
<title>Quiz Board</title>
</head>
<body>
<div class="container">
<form>
<div id="student-details">
<i class="fab fa-js"></i>
<h1 class="text-center">JavaScript Quizes</h1>
<div class="form-group">
<label for="name">First Name*</label>
<input class="form-control" type="text" id="firstName">
</div>
<div class="form-group">
<label for="name">Second Name*</label>
<input class="form-control" type="text" id="secondName">
</div>
<button id="start-btn" class="btn">START</button>
<p id="no-name" class="text-center mt-4">Please <span>ENTER</span> Your Name</p>
</div>
<!--Start of the questions part-->
<div id="page1">
<div class="quiz1">
<h4>1. What is JavaScript?</h4>
<div class="inputs">
<div class="form-group">
<label for="language">
<input value="10" type="radio" name="js" id="language">
<span class="circle"></span>
Programming Language</label>
</div>
<div class="form-group">
<label for="asian">
<input value="0" type="radio" name="js" id="asian">
<span class="circle"></span>
Asian Language</label>
</div>
<div class="form-group">
<label for="java">
<input value="0" type="radio" name="js" id="java">
<span class="circle"></span>
Java Upgrade</label>
</div>
<div class="form-group">
<label for="none">
<input value="0" type="radio" name="js" id="none">
<span class="circle"></span>
None of the above</label>
</div>
</div>
</div>
<div class="quiz2">
<h4>2. When was JavaScript created?</h4>
<div class="inputs">
<div class="form-group">
<label for="2018">
<input value="0"type="radio" name="year" id="2018">
<span class="circle"></span>
2018
</label>
</div>
<div class="form-group">
<label for="1995">
<input value="10" type="radio" name="year" id="1995">
<span class="circle"></span>
1995</label>
</div>
<div class="form-group">
<label for="1837">
<input value="0" type="radio" name="year" id="1837">
<span class="circle"></span>
1837</label>
</div>
<div class="form-group">
<label for="2000">
<input value="0" type="radio" name="year" id="2000">
<span class="circle"></span>
2000</label>
</div>
</div>
</div>
<div class="quiz3">
<h4>3. Which of these is NOT a JavaScript framework?</h4>
<div class="inputs">
<div class="form-group">
<label for="angular">
<input value="0" type="radio" name="framework" id="angular">
<span class="circle"></span>
Angular JS</label>
</div>
<div class="form-group">
<label for="react">
<input value="0" type="radio" name="framework" id="react">
<span class="circle"></span>
React</label>
</div>
<div class="form-group">
<label for="bootstrap">
<input value="10" type="radio" name="framework" id="bootstrap">
<span class="circle"></span>
Bootstrap</label>
</div>
<div class="form-group">
<label for="Vue">
<input value="0" type="radio" name="framework" id="Vue">
<span class="circle"></span>
Vue</label>
</div>
</div>
</div>
<div class="quiz4">
<h4>4. The "function" and " var" are known as:</h4>
<div class="inputs">
<div class="form-group">
<label for="keywords">
<input value="0" type="radio" name="known" id="keywords">
<span class="circle"></span>
Keywords
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="data">
<input value="0" type="radio" name="known" id="data">
<span class="circle"></span>
Data types
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="statements">
<input value="10" type="radio" name="known" id="statements">
<span class="circle"></span>
Declaration statements
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="prototypes">
<input value="0" type="radio" name="known" id="prototypes">
<span class="circle"></span>
Prototypes
</label>
</div>
</div>
</div>
<div class="quiz5">
<h4>5. Which type of JavaScript language is </h4>
<div class="inputs">
<div class="form-group">
<label for="oriented">
<input value="0" type="radio" name="type" id="oriented">
<span class="circle"></span>
Object-Oriented
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="assembly">
<input value="0" type="radio" name="type" id="assembly">
<span class="circle"></span>
Assembly-language
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="high">
<input value="0" type="radio" name="type" id="high">
<span class="circle"></span>
High-level
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="based">
<input value="10" type="radio" name="type" id="based">
<span class="circle"></span>
Object-Based
</label>
</div>
</div>
</div>
<div class="arrow" id="arrow-right">
<i class="fas fa-arrow-right text-right"></i>
</div>
</div>
<!-- Beginning of the second page of the Questions-->
<div id="page2">
<div class="quiz6">
<h4>6. Which of these is NOT a JavaScript function?</h4>
<div class="inputs">
<div class="form-group">
<label for="alert">
<input value="0" type="radio" name="function" id="alert">
<span class="circle"></span>
alert()
</label>
</div>
<div class="form-group">
<label for="confirm">
<input value="0" type="radio" name="function" id="confirm">
<span class="circle"></span>
confirm()</label>
</div>
<div class="form-group">
<label for="prompt">
<input value="0" type="radio" name="function" id="prompt">
<span class="circle"></span>
prompt()</label>
</div>
<div class="form-group">
<label for="boolean">
<input value="10" type="radio" name="function" id="boolean">
<span class="circle"></span>
boolean</label>
</div>
</div>
</div>
<div class="quiz7">
<h4>7. What is the DOM in full?</h4>
<div class="inputs">
<div class="form-group">
<label for="wrong-1">
<input value="0" type="radio" name="dom" id="wrong-1">
<span class="circle"></span>
Document Only Meat</label>
</div>
<div class="form-group">
<label for="wrong-2">
<input value="0" type="radio" name="dom" id="wrong-2">
<span class="circle"></span>
Don't Open Meat</label>
</div>
<div class="form-group">
<label for="right">
<input value="10" type="radio" name="dom" id="right">
<span class="circle"></span>
Document Object Model</label>
</div>
<div class="form-group">
<label for="wrong-3">
<input value="0" type="radio" name="dom" id="wrong-3">
<span class="circle"></span>
None of the above</label>
</div>
</div>
</div>
<div class="quiz8">
<h4>8. Which of these is a JavaScript library?</h4>
<div class="inputs">
<div class="form-group">
<label for="body">
<input value="0" type="radio" name="link" id="body">
<span class="circle"></span>
HTML</label>
</div>
<div class="form-group">
<label for="head">
<input value="10" type="radio" name="link" id="head">
<span class="circle"></span>
jQuery</label>
</div>
<div class="form-group">
<label for="html">
<input value="0" type="radio" name="link" id="html">
<span class="circle"></span>
CSS</label>
</div>
<div class="form-group">
<label for="section">
<input value="0" type="radio" name="link" id="section">
<span class="circle"></span>
Sass</label>
</div>
</div>
</div>
<div class="quiz9">
<h4>9. JavaScript is the programming language of the?</h4>
<div class="inputs">
<div class="form-group">
<label for="desktop">
<input value="0" type="radio" name="programming" id="desktop">
<span class="circle"></span>
Desktop
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="mobile">
<input value="0" type="radio" name="programming" id="mobile">
<span class="circle"></span>
Mobile
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="web">
<input value="10" type="radio" name="programming" id="web">
<span class="circle"></span>
Web
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="server">
<input value="0" type="radio" name="programming" id="server">
<span class="circle"></span>
Server
</label>
</div>
</div>
</div>
<div class="quiz10">
<h4>10. Inside which HTML element do we put the JavaScript?</h4>
<div class="inputs">
<div class="form-group">
<label for="script">
<input value="10" type="radio" name="element" id="script">
<span class="circle"></span>
< script >
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="javascript">
<input value="0" type="radio" name="element" id="javascript">
<span class="circle"></span>
< javascript >
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="js">
<input value="0" type="radio" name="element" id="js">
<span class="circle"></span>
< js >
</label>
</div>
</div>
<div class="inputs">
<div class="form-group">
<label for="scripting">
<input value="0" type="radio" name="element" id="scripting">
<span class="circle"></span>
< scripting >
</label>
</div>
</div>
</div>
<!--End of page two questions-->
<div class="arrow" id="arrow-left">
<i class="fas fa-arrow-left text-left"></i>
</div>
<button id="submit" class="btn">Submit</button>
</div>
<div id="score">
<p class="text-center">Your score is:</p>
<p class="text-center scoreDisplay"></p>
<br>
<p class="text-center name-display"></p>
<br>
<button id="retake" class="btn">Retake Quiz</button>
</div>
</form>
</div>
</body>
</html>