-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.json
43 lines (42 loc) · 1.47 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
[
{
"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 is the correct way to write a JavaScript array?",
"choice1": "var txt = new Array(1:'tim',2:'kim',3:'jim')",
"choice2": "var txt = new Array:1=('tim')2=('kim')3=('jim')",
"choice3": "var txt = new Array('tim','kim','jim');",
"choice4": "var txt = new Array='tim','kim','jim'",
"answer": 3
},
{
"question": "To set up the window to capture all Click events, we use which statement?",
"choice1": "window.captureEvents(Event.CLICK);",
"choice2": "window.handleEvents (Event.CLICK);",
"choice3": "window.routeEvents(Event.CLICK);",
"choice4": "window.raiseEvents(Event.CLICK )",
"answer": 1
}
]