-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestions.json
More file actions
112 lines (112 loc) · 2.48 KB
/
Copy pathquestions.json
File metadata and controls
112 lines (112 loc) · 2.48 KB
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
[
{
"id":1,
"question":"Which of the following is NOT a primitive data type in JavaScript?",
"options":[
"string",
"number",
"array",
"boolean"
],
"correctAnswer":2
},
{
"id":2,
"question":"What will console.log(typeof null) output?",
"options":[
"null",
"undefined",
"object",
"string"
],
"correctAnswer":2
},
{
"id":3,
"question":"Which method is used to add an element to the end of an array?",
"options":[
"append()",
"add()",
"push()",
"insert()"
],
"correctAnswer":2
},
{
"id":4,
"question":"What does the 'let' keyword provide that 'var' doesn't?",
"options":[
"Global scope",
"Function scope",
"Block scope",
"Module scope"
],
"correctAnswer":2
},
{
"id":5,
"question":"In TypeScript, what does the '?' symbol mean after a property name?",
"options":[
"The property is required",
"The property is optional",
"The property is a function",
"The property is private"
],
"correctAnswer":1
},
{
"id":6,
"question":"Which TypeScript type represents any value?",
"options":[
"unknown",
"any",
"object",
"void"
],
"correctAnswer":1
},
{
"id":7,
"question":"What does 'const' keyword do in JavaScript?",
"options":[
"Creates a variable that can be reassigned",
"Creates a variable that cannot be reassigned",
"Creates a global variable",
"Creates a temporary variable"
],
"correctAnswer":1
},
{
"id":8,
"question":"Which of the following is a falsy value in JavaScript?",
"options":[
"1",
"'false'",
"[]",
"0"
],
"correctAnswer":3
},
{
"id":9,
"question":"How do you access the first element of an array named 'fruits'?",
"options":[
"fruits[1]",
"fruits[0]",
"fruits.first()",
"fruits.get(0)"
],
"correctAnswer":1
},
{
"id":10,
"question":"What does TypeScript add to JavaScript?",
"options":[
"Better performance",
"Static type checking",
"New syntax for loops",
"Built-in database support"
],
"correctAnswer":1
}
]