-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.json
428 lines (428 loc) · 17.8 KB
/
data.json
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
{
"quizzes": [
{
"title": "HTML",
"icon": "./assets/images/icon-html.svg",
"questions": [
{
"question": "What does HTML stand for?",
"options": [
"Hyper Trainer Marking Language",
"Hyper Text Marketing Language",
"Hyper Text Markup Language",
"Hyper Text Markup Leveler"
],
"answer": "Hyper Text Markup Language"
},
{
"question": "Which of the following is the correct structure for an HTML document?",
"options": [
"<html><head></head><body></body></html>",
"<head><html></html><body></body></head>",
"<body><head></head><html></html></body>",
"<html><body></body><head></head></html>"
],
"answer": "<html><head></head><body></body></html>"
},
{
"question": "Which HTML element is used to define the title of a document?",
"options": [
"<head>",
"<title>",
"<header>",
"<top>"
],
"answer": "<title>"
},
{
"question": "What is the purpose of the <body> tag in HTML?",
"options": [
"It defines the document's head section.",
"It contains all the content such as text, images, and links.",
"It is used to define the main content of an HTML document.",
"It specifies the body of the email content in HTML."
],
"answer": "It contains all the content such as text, images, and links."
},
{
"question": "Which HTML tag is used to create a hyperlink?",
"options": [
"<hyperlink>",
"<link>",
"<a>",
"<href>"
],
"answer": "<a>"
},
{
"question": "Which tag is used to display images in HTML?",
"options": [
"<img>",
"<image>",
"<src>",
"<pic>"
],
"answer": "<img>"
},
{
"question": "What attribute is used to provide the path of an image in the <img> tag?",
"options": [
"link",
"src",
"href",
"url"
],
"answer": "src"
},
{
"question": "Which HTML tag is used to create an unordered list?",
"options": [
"<ul>",
"<ol>",
"<list>",
"<li>"
],
"answer": "<ul>"
},
{
"question": "What does the <br> tag do?",
"options": [
"It breaks the text into two sections.",
"It creates a bold text.",
"It inserts a line break.",
"It adds a new row in a table."
],
"answer": "It inserts a line break."
},
{
"question": "In HTML, what does the `fieldset` tag do?",
"options": [
"It is used to group related data in a form.",
"It sets the field to a fixed size.",
"It automatically validates the fields within a form.",
"It hides the fields in a form."
],
"answer": "It is used to group related data in a form."
}
]
},
{
"title": "CSS",
"icon": "./assets/images/icon-css.svg",
"questions": [
{
"question": "What does CSS stand for?",
"options": [
"Colorful Style Sheets",
"Computer Style Sheets",
"Cascading Style Sheets",
"Creative Style Sheets"
],
"answer": "Cascading Style Sheets"
},
{
"question": "Which HTML attribute is used to define inline styles?",
"options": [
"styles",
"style",
"class",
"font-style"
],
"answer": "style"
},
{
"question": "How do you insert a comment in a CSS file?",
"options": [
"// this is a comment //",
"/* this is a comment */",
"-- this is a comment --",
"<!-- this is a comment -->"
],
"answer": "/* this is a comment */"
},
{
"question": "Which property is used to change the background color of an element?",
"options": [
"color",
"bgcolor",
"background-color",
"background"
],
"answer": "background-color"
},
{
"question": "How do you apply a style to all <p> elements?",
"options": [
"p { }",
".p { }",
"#p { }",
"all.p { }"
],
"answer": "p { }"
},
{
"question": "Which property is used to change the font of an element?",
"options": [
"font-style",
"text-style",
"font-family",
"typeface"
],
"answer": "font-family"
},
{
"question": "How do you make each word in a text start with a capital letter?",
"options": [
"text-transform: capitalize",
"text-transform: uppercase",
"text-style: capital",
"font-transform: capitalize"
],
"answer": "text-transform: capitalize"
},
{
"question": "How do you select an element with the class name 'header'?",
"options": [
".header",
"#header",
"header",
"*header"
],
"answer": ".header"
},
{
"question": "What is the default value of the 'position' property?",
"options": [
"relative",
"fixed",
"absolute",
"static"
],
"answer": "static"
},
{
"question": "What is the purpose of the z-index property in CSS?",
"options": [
"To count the number of elements",
"To set the magnification level of an element",
"To specify the stack order of an element",
"To create a zoom effect"
],
"answer": "To specify the stack order of an element"
}
]
},
{
"title": "JavaScript",
"icon": "./assets/images/icon-js.svg",
"questions": [
{
"question": "Which syntax is correct to output 'Hello World' in an alert box?",
"options": [
"alertBox('Hello World');",
"msg('Hello World');",
"alert('Hello World');",
"msgBox('Hello World');"
],
"answer": "alert('Hello World');"
},
{
"question": "How do you call a function named 'myFunction'?",
"options": [
"call function myFunction()",
"call myFunction()",
"myFunction()",
"execute myFunction()"
],
"answer": "myFunction()"
},
{
"question": "How to write an IF statement in JavaScript?",
"options": [
"if i = 5 then",
"if (i == 5)",
"if i == 5",
"if i = 5"
],
"answer": "if (i == 5)"
},
{
"question": "How to write an IF statement for executing some code if 'i' is NOT equal to 5?",
"options": [
"if (i <> 5)",
"if i =! 5 then",
"if (i != 5)",
"if i not = 5"
],
"answer": "if (i != 5)"
},
{
"question": "How does a FOR loop start?",
"options": [
"for (i = 0; i <= 5)",
"for i = 1 to 5",
"for (i <= 5; i++)",
"for (i = 0; i <= 5; i++)"
],
"answer": "for (i = 0; i <= 5; i++)"
},
{
"question": "How can you add a single-line comment in JavaScript?",
"options": [
"'This is a single-line comment",
"//This is a single-line comment",
"<!--This is a single-line comment-->",
"/* This is a single-line comment */"
],
"answer": "//This is a single-line comment"
},
{
"question": "What is the correct way to write a JavaScript array?",
"options": [
"var colors = (1:'red', 2:'green', 3:'blue')",
"var colors = ['red', 'green', 'blue']",
"var colors = 'red', 'green', 'blue'",
"var colors = 1 = ('red'), 2 = ('green'), 3 = ('blue')"
],
"answer": "var colors = ['red', 'green', 'blue']"
},
{
"question": "How do you find the number with the highest value of x and y?",
"options": [
"Math.ceil(x, y)",
"top(x, y)",
"Math.max(x, y)",
"Math.highest(x, y)"
],
"answer": "Math.max(x, y)"
},
{
"question": "Which operator is used to assign a value to a variable?",
"options": [
"-",
"*",
"=",
"x"
],
"answer": "="
},
{
"question": "What is the correct way to write a JavaScript object?",
"options": [
"var person = {firstName: 'John', lastName: 'Doe'};",
"var person = {firstName = 'John', lastName = 'Doe'};",
"var person = (firstName: 'John', lastName: 'Doe');",
"var person = (firstName = 'John', lastName = 'Doe');"
],
"answer": "var person = {firstName: 'John', lastName: 'Doe'};"
}
]
},
{
"title": "Accessibility",
"icon": "./assets/images/icon-accessibility.svg",
"questions": [
{
"question": "What does 'WCAG' stand for?",
"options": [
"Web Content Accessibility Guidelines",
"Web Compliance Accessibility Guide",
"Web Content Accessibility Goals",
"Website Compliance and Accessibility Guidelines"
],
"answer": "Web Content Accessibility Guidelines"
},
{
"question": "Which element is used to provide alternative text for images for screen reader users?",
"options": [
"<alt>",
"<figcaption>",
"<description>",
"<img alt='description'>"
],
"answer": "<img alt='description'>"
},
{
"question": "What does ARIA stand for in web development?",
"options": [
"Accessible Rich Internet Applications",
"Advanced Responsive Internet Assistance",
"Accessible Responsive Internet Applications",
"Automated Responsive Internet Actions"
],
"answer": "Accessible Rich Internet Applications"
},
{
"question": "Which of the following is not a principle of the WCAG?",
"options": [
"Perceivable",
"Dependable",
"Operable",
"Understandable"
],
"answer": "Dependable"
},
{
"question": "Which of these color contrast ratios defines the minimum WCAG 2.1 Level AA requirement for normal text?",
"options": [
"3:1",
"4.5:1",
"7:1",
"2:1"
],
"answer": "4.5:1"
},
{
"question": "Which of the following elements is inherently focusable, meaning it can receive focus without a 'tabindex' attribute?",
"options": [
"<div>",
"<span>",
"<a href='...'>",
"<p>"
],
"answer": "<a href='...'>"
},
{
"question": "What is the purpose of the 'lang' attribute in an HTML page?",
"options": [
"To specify the scripting language",
"To define the character set",
"To indicate the language of the page content",
"To declare a language pack"
],
"answer": "To indicate the language of the page content"
},
{
"question": "Which guideline ensures that content is accessible by keyboard as well as by mouse?",
"options": [
"Keyboard Accessible",
"Mouse Independence",
"Device Independence",
"Operable Controls"
],
"answer": "Keyboard Accessible"
},
{
"question": "What is the role of 'skip navigation' links in web accessibility?",
"options": [
"To skip over primary navigation to the main content",
"To provide shortcuts to different sections of the website",
"To help users skip unwanted sections like advertisements",
"To bypass broken links in the navigation"
],
"answer": "To skip over primary navigation to the main content"
},
{
"question": "Which of these tools can help in checking the accessibility of a website?",
"options": [
"W3C Validator",
"Google Lighthouse",
"CSS Validator",
"JavaScript Console"
],
"answer": "Google Lighthouse"
}
]
}
]
}