-
Notifications
You must be signed in to change notification settings - Fork 0
/
question4.js
93 lines (93 loc) · 2.67 KB
/
question4.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
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
let questions = [
{
numb: 1,
question: "Which is used to find and fix bugs in the Java programs.?",
answer: "JDB",
options: [
"JVM",
"JDB",
"JDK",
"JRE",
],
},
{
numb: 2,
question: "What is the return type of the hashCode() method in the Object class?",
answer: "int",
options: ["int", "object", "long", "void"],
},
{
numb: 3,
question: "Which package contains the Random class?",
answer: "java.util package",
options: [
"java.util package",
"java.lang package",
"java.awt package",
"java.io package",
],
},
{
numb: 4,
question: "An interface with no fields or methods is known as?",
answer: "Marker Interface",
options: [
"Runnable Interface",
"Abstract Interface",
"Marker Interface",
"charSequence Interface"
],
},
{
numb: 5,
question: "In which memory a String is stored, when we create a string using new operator?",
answer: "Heap memory",
options: ["Stack", "String memory", "Random storage space",
"Heap memory"],
},
{
numb: 6,
question: "Which of the following is a marker interface?",
answer: "Remote interface",
options: ["Runnable interface",
"Remote interface",
"Readable interfac",
"Result interface"],
},
{
numb: 7,
question: "Which keyword is used for accessing the features of a package?",
answer: "import",
options: ["import",
"package",
"extends",
"export"],
},
{
numb: 8,
question: "In java, jar stands for?",
answer: "Java Archive",
options: ["Java Archive Runner",
"Java Archive",
"Java Application Resource",
"Java Application Runner"],
},
{
numb: 9,
question: "Which of the following is a mutable class in java?",
answer: "java.lang.StringBuilder",
options: ["java.lang.StringBuilder",
"java.lang.Short",
"java.lang.Byte",
"java.lang.String"],
},
{
numb: 10,
question: "Which of the following option leads to the portability and security of Java?",
answer: "Bytecode is executed by JVM",
options: ["Bytecode is executed by JVM",
"The applet makes the Java code secure and portable",
"Use of exception handling",
"Dynamic binding between objects"],
}
];