-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathquestions.xml
147 lines (100 loc) · 1.82 KB
/
questions.xml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
JAVA QUESTIONS
1) Which of the following option leads to the portability and security of Java?
Bytecode is executed by JVM
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
Answer:(a) Bytecode is executed by the JVM.
2)
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Use of pointers
Object-oriented
Answer: c Use of pointers
3) What will be the output of the following program?
public class MyFirst {
public static void main(String[] args) {
MyFirst obj = new MyFirst(n);
}
static int a = 10;
static int n;
int b = 5;
int c;
public MyFirst(int m) {
System.out.println(a + ", " + b + ", " + c + ", " + n + ", " + m);
}
// Instance Block
{
b = 30;
n = 20;
}
// Static Block
static
{
a = 60;
}
}
a 10, 5, 0, 20, 0
b 10, 30, 20
c 60, 5, 0, 20
d 60, 30, 0, 20, 0
Answer:(d) 60, 30, 0, 20, 0
PYTON QUESTIONS
4). Is Python case sensitive when dealing with identifiers?
a) yes
b) no
c) machine dependent
d) none of the mentioned
Answer: a yes
5) Which of the following is invalid?
a) _a = 1
b) __a = 1
c) __str__ = 1
d) none of the mentioned
Answer: d
6) Which of the following cannot be a variable?
a) __init__
b) in
c) it
d) on
Answer: b
HTML QUESTIONS
7) HTML stands for?
A. Hyper Text Markup Language
B. High Text Markup Language
C. Hyper Tabular Markup Language
D. None of these
Option: A
8)
which of the following tag is used to mark a begining of paragraph ?
A.
<TD>
B.
<br>
C.
<P>
D.
<TR>
Option: C
9) The attribute of <form> tag
A.
Method
B.
Action
C.
Both (a)&(b)
D.
None of these
Option: C
10)
The body tag usually used after
A.
Title tag
B.
HEAD tag
C.
EM tag
D.
FORM tag
Option: B