-
Notifications
You must be signed in to change notification settings - Fork 655
Expand file tree
/
Copy pathquestions.json
More file actions
71 lines (66 loc) · 1.98 KB
/
questions.json
File metadata and controls
71 lines (66 loc) · 1.98 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
[
{
"question": "Inside which HTML element do we put the JavaScript??",
"choice1": "<script>",
"choice2": "<javascript>",
"choice3": "<js>",
"choice4": "<scripting>",
"answer": 1
},
{
"question": "What is the correct syntax for referring to an external script called 'xxx.js'?",
"choice1": "<script href='xxx.js'>",
"choice2": "<script name='xxx.js'>",
"choice3": "<script src='xxx.js'>",
"choice4": "<script file='xxx.js'>",
"answer": 3
},
{
"question": " How do you write 'Hello World' in an alert box?",
"choice1": "msgBox('Hello World');",
"choice2": "alertBox('Hello World');",
"choice3": "msg('Hello World');",
"choice4": "alert('Hello World');",
"answer": 4
},
{
"question": "Which HTML tag is used to link a JavaScript file?",
"choice1": "<script href='script.js'>",
"choice2": "<link rel='script' src='script.js'>",
"choice3": "<script src='script.js'>",
"choice4": "<js src='script.js'>",
"answer": 3
},
{
"question": "What is the correct syntax for referring to an external script called 'app.js'?",
"choice1": "<script name='app.js'>",
"choice2": "<script src='app.js'>",
"choice3": "<script file='app.js'>",
"choice4": "<javascript src='app.js'>",
"answer": 2
},
{
"question": "Which of the following is a JavaScript data type?",
"choice1": "float",
"choice2": "string",
"choice3": "number",
"choice4": "All of the above",
"answer": 4
},
{
"question": "How do you create a function in JavaScript?",
"choice1": "function myFunction()",
"choice2": "function:myFunction()",
"choice3": "create myFunction()",
"choice4": "def myFunction()",
"answer": 1
},
{
"question": "How do you call a function named 'myFunction' in JavaScript?",
"choice1": "call myFunction()",
"choice2": "myFunction();",
"choice3": "Call.myFunction()",
"choice4": "execute myFunction()",
"answer": 2
}
]