-
Notifications
You must be signed in to change notification settings - Fork 1
/
questions.json
502 lines (502 loc) · 14.9 KB
/
questions.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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
[
{
"question": "What does HTML stand for?",
"options": {
"option1": "Hyper Text Markup Language",
"option2": "High-Level Text Management Language",
"option3": "Hyper Transfer Text Language",
"option4": "Hyperlink and Text Management Language"
},
"answer": "1"
},
{
"question": "Which tag is used to define an unordered list in HTML?",
"options": {
"option1": "<ul>",
"option2": "<ol>",
"option3": "<li>",
"option4": "<ul></ul>"
},
"answer": "1"
},
{
"question": "What is the purpose of the HTML <head> tag?",
"options": {
"option1": "It defines the main content of the document.",
"option2": "It contains metadata about the document.",
"option3": "It defines a header for the document.",
"option4": "It represents a paragraph in HTML."
},
"answer": "2"
},
{
"question": "Which attribute is used to provide additional information about an HTML element?",
"options": {
"option1": "class",
"option2": "style",
"option3": "id",
"option4": "title"
},
"answer": "4"
},
{
"question": "In HTML, what does the acronym 'URL' stand for?",
"options": {
"option1": "Uniform Resource Locator",
"option2": "Universal Reference Language",
"option3": "Unified Resource Link",
"option4": "User Reference Locator"
},
"answer": "1"
},
{
"question": "Which HTML tag is used to create a hyperlink?",
"options": {
"option1": "<a>",
"option2": "<link>",
"option3": "<hyperlink>",
"option4": "<url>"
},
"answer": "1"
},
{
"question": "What is the purpose of the HTML <footer> tag?",
"options": {
"option1": "It defines a section in the document.",
"option2": "It represents the main content of the document.",
"option3": "It contains metadata about the document.",
"option4": "It defines a footer for the document."
},
"answer": "4"
},
{
"question": "Which property is used to change the background color in CSS?",
"options": {
"option1": "background-color",
"option2": "color",
"option3": "background",
"option4": "bgcolor"
},
"answer": "1"
},
{
"question": "In JavaScript, what is a variable?",
"options": {
"option1": "A container for storing data values",
"option2": "A type of loop",
"option3": "A conditional statement",
"option4": "A function declaration"
},
"answer": "1"
},
{
"question": "Which React method is called after a component is rendered for the first time?",
"options": {
"option1": "componentWillMount",
"option2": "componentDidMount",
"option3": "componentDidUpdate",
"option4": "componentWillUnmount"
},
"answer": "2"
},
{
"question": "Which CSS property is used to set the text to be bold?",
"options": {
"option1": "font-weight",
"option2": "text-style",
"option3": "bold-text",
"option4": "text-boldness"
},
"answer": "1"
},
{
"question": "In JavaScript, what does the 'typeof' operator return for the 'null' value?",
"options": {
"option1": "null",
"option2": "undefined",
"option3": "object",
"option4": "string"
},
"answer": "3"
},
{
"question": "What is the purpose of the 'localStorage' object in web development?",
"options": {
"option1": "To store data only for the duration of the page session",
"option2": "To store data permanently on the client's machine",
"option3": "To store data on the server",
"option4": "To retrieve data from an API"
},
"answer": "2"
},
{
"question": "Which HTML tag is used to create a line break?",
"options": {
"option1": "<line>",
"option2": "<br>",
"option3": "<break>",
"option4": "<lb>"
},
"answer": "2"
},
{
"question": "What does the 'useState' hook do in React?",
"options": {
"option1": "It fetches data from an API",
"option2": "It handles stateful logic in functional components",
"option3": "It creates a new state variable",
"option4": "It renders a component conditionally"
},
"answer": "3"
},
{
"question": "What is the purpose of the CSS 'clip-path' property?",
"options": {
"option1": "To specify the spacing between elements.",
"option2": "To apply a clipping mask to an element, hiding portions of the element based on a specified shape.",
"option3": "To control the positioning of an element relative to its parent.",
"option4": "To adjust the opacity of an element."
},
"answer": "2"
},
{
"question": "Which of the following is a CSS preprocessor?",
"options": {
"option1": "Bootstrap",
"option2": "Sass",
"option3": "React",
"option4": "jQuery"
},
"answer": "2"
},
{
"question": "What does the CSS property `flex` stand for?",
"options": {
"option1": "Flexible",
"option2": "Flexbox",
"option3": "Float Extension",
"option4": "Flexibility"
},
"answer": "2"
},
{
"question": "In JavaScript, what is the purpose of the `addEventListener` method?",
"options": {
"option1": "To add style to an element",
"option2": "To attach an event handler function to an HTML element",
"option3": "To create a new HTML element",
"option4": "To remove an HTML element from the DOM"
},
"answer": "2"
},
{
"question": "Which HTML tag is used to embed an external web page within the current page?",
"options": {
"option1": "<iframe>",
"option2": "<embed>",
"option3": "<object>",
"option4": "<include>"
},
"answer": "1"
},
{
"question": "What does the acronym API stand for in the context of web development?",
"options": {
"option1": "Application Programming Interface",
"option2": "Advanced Programming Integration",
"option3": "Automated Program Interaction",
"option4": "All-Purpose Interaction"
},
"answer": "1"
},
{
"question": "Which of the following is a valid CSS pseudo-class for styling the first child element?",
"options": {
"option1": ":first-child",
"option2": ":first-element",
"option3": ":first-of-type",
"option4": ":child-first"
},
"answer": "1"
},
{
"question": "In JavaScript, what is the purpose of the 'getElementById()' function?",
"options": {
"option1": "To access an HTML element by its class",
"option2": "To access an HTML element by its ID",
"option3": "To access an HTML element by its tag name",
"option4": "To access an HTML element by its name attribute"
},
"answer": "2"
},
{
"question": "What is the correct way to link an external CSS file to an HTML document?",
"options": {
"option1": "<link rel='stylesheet' type='text/css' href='styles.css'>",
"option2": "<style src='styles.css'>",
"option3": "<css link='styles.css'>",
"option4": "<stylesheet>styles.css</stylesheet>"
},
"answer": "1"
},
{
"question": "What is the purpose of the CSS 'clip-path' property?",
"options": {
"option1": "To specify the spacing between elements.",
"option2": "To apply a clipping mask to an element, hiding portions of the element based on a specified shape.",
"option3": "To control the positioning of an element relative to its parent.",
"option4": "To adjust the opacity of an element."
},
"answer": "2"
},
{
"question": "What is the box model in CSS used for?",
"options": {
"option1": "Designing 3D shapes",
"option2": "Creating layouts with boxes",
"option3": "Drawing complex illustrations",
"option4": "Managing database schemas"
},
"answer": "2"
},
{
"question": "Which HTML element is used to define the structure of an HTML document?",
"options": {
"option1": "<head>",
"option2": "<body>",
"option3": "<html>",
"option4": "<div>"
},
"answer": "3"
},
{
"question": "What does the term 'AJAX' stand for in web development?",
"options": {
"option1": "Asynchronous JavaScript and XML",
"option2": "Automated JavaScript and XML",
"option3": "Advanced JSON and XML",
"option4": "All JavaScript and XML"
},
"answer": "1"
},
{
"question": "What is the purpose of the JavaScript 'typeof' operator?",
"options": {
"option1": "To check the data type of a variable",
"option2": "To create a new variable",
"option3": "To define a function",
"option4": "To perform arithmetic operations"
},
"answer": "1"
},
{
"question": "Which CSS property is used for controlling the layout flow of a document?",
"options": {
"option1": "margin",
"option2": "display",
"option3": "padding",
"option4": "position"
},
"answer": "2"
},
{
"question": "What is the purpose of the 'addEventListener' method in JavaScript?",
"options": {
"option1": "To add style to an element",
"option2": "To listen for events and execute a function",
"option3": "To create a new HTML element",
"option4": "To perform mathematical calculations"
},
"answer": "2"
},
{
"question": "Which JavaScript data type is not primitive?",
"options": {
"option1": "String",
"option2": "Number",
"option3": "Object",
"option4": "Boolean"
},
"answer": "3"
},
{
"question": "What is the purpose of the 'flexbox' layout in CSS?",
"options": {
"option1": "To create animations",
"option2": "To design responsive layouts",
"option3": "To define color schemes",
"option4": "To handle server requests"
},
"answer": "2"
},
{
"question": "Which HTML element is used for creating a hyperlink?",
"options": {
"option1": "<a>",
"option2": "<link>",
"option3": "<h1>",
"option4": "<p>"
},
"answer": "1"
},
{
"question": "What is the purpose of the JavaScript 'splice' method?",
"options": {
"option1": "To move elements to an array",
"option2": "To remove elements from an array",
"option3": "To sort the elements of an array",
"option4": "To reverse the order of an array"
},
"answer": "2"
},
{
"question": "In CSS, what does the 'box-sizing' property control?",
"options": {
"option1": "The size of the text box",
"option2": "The size of the border box",
"option3": "The size of the margin box",
"option4": "The size of the padding box"
},
"answer": "2"
},
{
"question": "Which JavaScript keyword is used to declare a variable?",
"options": {
"option1": "def",
"option2": "function",
"option3": "let",
"option4": "variable"
},
"answer": "3"
},
{
"question": "What is the purpose of the HTML 'form' element?",
"options": {
"option1": "To create tables",
"option2": "To define a section in the document",
"option3": "To create a hyperlink",
"option4": "To create a user input form"
},
"answer": "4"
},
{
"question": "console.log(3 === '3') - What does the following JavaScript code output?",
"options": {
"option1": "true",
"option2": "false",
"option3": "undefined",
"option4": "TypeError"
},
"answer": "2"
},
{
"question": "What is the purpose of the JavaScript 'map' function?",
"options": {
"option1": "To create a new array with the results of calling a provided function on every element in the array.",
"option2": "To check if an array includes a certain value.",
"option3": "To remove the first element from an array and return that element.",
"option4": "To filter elements in an array based on a provided function."
},
"answer": "1"
},
{
"question": "Which of the following statements about the 'let' keyword in JavaScript is true?",
"options": {
"option1": "It is used for function declarations.",
"option2": "It has block-level scope.",
"option3": "It is hoisted to the top of the script.",
"option4": "It cannot be reassigned after declaration."
},
"answer": "2"
},
{
"question": "console.log(2 + '2') - What will be the output of the following code?",
"options": {
"option1": "4",
"option2": "22",
"option3": "2'2'",
"option4": "22'4'"
},
"answer": "2"
},
{
"question": "console.log(typeof NaN === 'number') - What will be the output of the following code?",
"options": {
"option1": "true",
"option2": "false",
"option3": "undefined",
"option4": "null"
},
"answer": "1"
},
{
"question": "In JavaScript, what is the purpose of the 'try', 'catch', and 'finally' blocks?",
"options": {
"option1": "To create loops.",
"option2": "To handle exceptions and errors.",
"option3": "To define functions.",
"option4": "To declare variables."
},
"answer": "2"
},
{
"question": "What does the 'NaN' stand for in JavaScript?",
"options": {
"option1": "Not a Number",
"option2": "Negative And Null",
"option3": "No Available Number",
"option4": "None of the Above"
},
"answer": "1"
},
{
"question": "What is the purpose of the 'bind' method in JavaScript?",
"options": {
"option1": "To create a new array.",
"option2": "To permanently attach a function to a specific object.",
"option3": "To perform mathematical operations.",
"option4": "To iterate over an object's properties."
},
"answer": "2"
},
{
"question": "Which of the following is a valid way to declare a variable in JavaScript?",
"options": {
"option1": "let 123variable = 10;",
"option2": "const variable! = 5;",
"option3": "let my_variable = 8;",
"option4": "const -variable = 7;"
},
"answer": "3"
},
{
"question": "Which operator is used to check both the value and the type in JavaScript?",
"options": {
"option1": "==",
"option2": "===",
"option3": "!=",
"option4": "!=="
},
"answer": "2"
},
{
"question": "Which CSS property is used to add rounded corners to an element?",
"options": {
"option1": "border-radius",
"option2": "corner-style",
"option3": "rounded-corners",
"option4": "corner-radius"
},
"answer": "1"
},
{
"question": "What is the purpose of the CSS 'grid-template-areas' property?",
"options": {
"option1": "To define the alignment of grid items within a grid container.",
"option2": "To specify the dimensions of the grid tracks in a grid container.",
"option3": "To create named grid areas within a grid container, allowing for more complex layout designs.",
"option4": "To adjust the spacing between grid items in a grid container."
},
"answer": "3"
}
]