-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
65 lines (63 loc) · 1.74 KB
/
data.js
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
const data = [
{
id: 1,
question: "JavaScript is an _______ language.",
options: ["Object-Oriented", "Object-Based", "Procedural"],
},
{
id: 2,
question:
"Following methods can be used to display data in some form using JavaScript.",
options: ["document.write()", "console.log()", "window.alert()"],
},
{
id: 3,
question:
"When an operator value is NULL, the typeof returned by the unary operator is:",
options: ["Boolean", "Undefined", "Object"],
},
{
id: 4,
question: "What does the toString() method return?",
options: ["Return Object", "Return String", "Return Integer"],
},
{
id: 5,
question:
"Which function is used to serialize an object into a JSON string?",
options: ["stringify()", "parse()", "convert()"],
},
{
id: 6,
question: "Which of the following is a JavaScript framework?",
options: ["Django", "React", "Flask"],
},
{
id: 7,
question:
"Which of the following is used to handle asynchronous operations in JavaScript?",
options: ["Promises", "Callbacks", "Both"],
},
{
id: 8,
question: "Which of the following is true about JavaScript?",
options: [
"JavaScript is a loosely typed language.",
"JavaScript is a strongly typed language.",
"JavaScript does not support object-oriented programming.",
],
},
{
id: 9,
question:
"Which operator is used to compare both value and type in JavaScript?",
options: ["==", "===", "="],
},
{
id: 10,
question: "How can you create an array in JavaScript?",
options: ["var arr = [];", "var arr = new Array();", "Both of the above"],
},
];
const answers = [0, 1, 2, 1, 0, 1, 2, 0, 1, 2];
module.exports = { data, answers };