-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquiz.json
61 lines (61 loc) · 1.88 KB
/
quiz.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
[
{
"text": "What is the correct syntax for creating an object instance:",
"options": [
"`new { x = 1, y = 2}`",
"`{ x: 1, y: 2}`",
"`{ x = 1, y = 2}`",
"`new { x: 1, y: 2}`"
],
"answer": 1,
"area": "objects",
"level": "beginner"
},
{
"text": "Which of the following will create a copy of an array such that changes to the old array will not be reflected in the new array?",
"options": [
"`var newArray = oldArray;`",
"`var newArray = oldArray.slice();`",
"`var newArray = [oldArray];`",
"`var newArray = new Array(oldArray);`"
],
"answer": 1,
"area": "arrays",
"level": "intermediate"
},
{
"text": "How do you accomplish function overloading behavior in Javascript?",
"options": [
"You inspect the `arguments` object to determine what parameters were passed in.",
"You can accept an array or object as a single parameter.",
"You can define a function more than once with different parameters."
],
"answer": 0,
"area": "functions",
"level": "advanced"
},
{
"text": "Which of the following is a method of a `RegExp` object?",
"options": [
"`ignoreCase`",
"`makeMultiline()`",
"`eval()`",
"`exec()`"
],
"answer": 3,
"area": "regex",
"level": "advanced"
},
{
"text": "What does JSONP stand for?",
"options": [
"JavaScript Object Notation Parser",
"JavaScript Object Notation Predicate",
"JavaScript Object Notation with Padding",
"JavaScript Object Notation Protocol"
],
"answer": 2,
"area": "ajax",
"level": "advanced"
}
]