ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA QUIZ CORE JAVA MCQ Questions CORE JAVA Questions Answer for Interview
English
Hindi
Question No. -
161
Report Bug
Which among the following keyword is used to allocate memory space for an object?
Which among the following keyword is used to allocate memory space for an object?
A.
new
new
B.
for
for
C.
while
while
D.
int
int
Question No. -
162
Report Bug
Which among the following is used to represent behaviour in a class?
Which among the following is used to represent behaviour in a class?
A.
Method
Method
B.
Data members
Data members
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
163
Report Bug
If a method named show( ) is to be invoked using an object ‘ob’ , which among the following is correct?
If a method named show( ) is to be invoked using an object ‘ob’ , which among the following is correct?
A.
ob.show( )
ob.show( )
B.
ob.show
ob.show
C.
show( ).ob
show( ).ob
D.
None of these
None of these
Question No. -
164
Report Bug
An object is called a class factory.
An object is called a class factory.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
165
Report Bug
A class is an instance of an object.
A class is an instance of an object.
A class is an instance of an object.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
166
Report Bug
Java is case sensitive
Java is case sensitive
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
167
Report Bug
A class-name cannot be a keyword
A class-name cannot be a keyword
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
168
Report Bug
The dot operator is used to access members in an object using an object
The dot operator is used to access members in an object using an object
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
169
Report Bug
In programming every object will have a name
In programming every object will have a name
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
170
Report Bug
Which among the following encoding system can represent 65536 characters?
Which among the following encoding system can represent 65536 characters?
A.
ASCII
ASCII
B.
Unicode
Unicode
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
171
Report Bug
Which among the following is not a Token?
Which among the following is not a Token?
A.
Keywords
Keywords
B.
Literals
Literals
C.
Identifiers
Identifiers
D.
Data Type
Data Type
Question No. -
172
Report Bug
Which among the following is a keyword but not a literal?
Which among the following is a keyword but not a literal?
A.
for
for
B.
null
null
C.
true
true
D.
false
false
Question No. -
173
Report Bug
What is the largest possible value that can be stored in short data type?
What is the largest possible value that can be stored in short data type?
A.
215-1
215-1
B.
231-1
231-1
C.
27-1
27-1
D.
263-1
263-1
Question No. -
174
Report Bug
Which among the following is a relational operator?
Which among the following is a relational operator?
A.
+
+
B.
>
>
C.
*
*
D.
/
/
Question No. -
175
Report Bug
The && operator requires which among the following conditions to be satisfied to represent a success for two relations?
The && operator requires which among the following conditions to be satisfied to represent a success for two relations?
A.
Both should be satisfied
Both should be satisfied
B.
Any one should be satisfied.
Any one should be satisfied.
C.
None of them are satisfied.
None of them are satisfied.
D.
None of these
None of these
Question No. -
176
Report Bug
Which among the following is not a logical operator?
Which among the following is not a logical operator?
A.
&&
&&
B.
||
||
C.
!
!
D.
<=
<=
Question No. -
177
Report Bug
Which among the following operators is used to dynamically allocate memory space for an object?
Which among the following operators is used to dynamically allocate memory space for an object?
A.
. (dot)
. (dot)
B.
>
>
C.
==
==
D.
new
new
Explanation
the new keyword used to create object which dynamically allocate the memory required for object.
Question No. -
178
Report Bug
Which among the following is the correct construct for creating an object named ‘book’ of the ‘Library’ class?
Which among the following is the correct construct for creating an object named ‘book’ of the ‘Library’ class?
A.
Library book=new Library;
Library book=new Library;
B.
book =new Library();
book =new Library();
C.
Library() book=new Library();
Library() book=new Library();
D.
Library book=new Library();
Library book=new Library();
Explanation
Library book=new Library(); is correct format to create an object book of Library Class.
Question No. -
179
Report Bug
The member ‘out’ object of the ‘System’ class belongs to which class?
The member ‘out’ object of the ‘System’ class belongs to which class?
A.
System
System
B.
Print
Print
C.
PrintStream
PrintStream
D.
Println
Println
Explanation
The member 'out' belongs to System class which present 'java.lang' package, which imported by default.
Question No. -
180
Report Bug
The statement a%2 will result to what if the value of a is an even number?
The statement a%2 will result to what if the value of a is an even number?
A.
0
0
B.
1
1
C.
Both a and b
Both a and b
D.
None of these
None of these
Explanation
the % (modulo) operator used to find the reminder of number.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad