-
Notifications
You must be signed in to change notification settings - Fork 4
/
quiz2.json
112 lines (112 loc) · 2.68 KB
/
quiz2.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
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 the outcome of below Java code",
"code": [
"public class Example { ",
" public static void main(String args[]){",
" System.out.println(5+9);",
" }",
" }"
],
"answers": [
{
"option": "a",
"text": "14"
},
{
"option": "b",
"text": "5+9"
},
{
"option": "c",
"text": "Compile time error"
},
{
"option": "d",
"text": "\"5+9\""
}
],
"correct_answer": "a"
},
{
"id": 2,
"question": "What is the default value of byte variable?",
"answers": [
{
"option": "a",
"text": "0.0"
},
{
"option": "b",
"text": "0"
},
{
"option": "c",
"text": "null"
},
{
"option": "d",
"text": "undefined"
}
],
"correct_answer": "b"
},
{
"id": 3,
"question": "What will be output of x in following code?",
"code": [
"class Test { ",
" public static void main(String[] args) {",
" int x = 1;",
" if (x == 1){",
" x = x + 1 ",
" }",
" }",
"}"
],
"answers": [
{
"option": "a",
"text": "0"
},
{
"option": "b",
"text": "1"
},
{
"option": "c",
"text": "2"
},
{
"option": "d",
"text": "3"
}
],
"correct_answer": "c"
},
{
"id": 4,
"question": "Which of the following is the outcome of below Java code?",
"image":"quiz.png",
"answers": [
{
"option": "a",
"text": "It won't <code class='inlinecode'>compile</code>"
},
{
"option": "b",
"text": "React Quiz"
},
{
"option": "c",
"text": "React, Quiz"
},
{
"option": "d",
"text": "<code class='inlinecode'>\"React \" + \" Quiz\"</code>"
}
],
"correct_answer": "b"
}
]