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. -
201
Report Bug
Which among the following class do not belong to the java.lang package?
Which among the following class do not belong to the java.lang package?
A.
System
System
B.
String
String
C.
Math
Math
D.
Scanner
Scanner
Question No. -
202
Report Bug
Which among the following function returns the absolute value of a number?
Which among the following function returns the absolute value of a number?
A.
Math.absoulute( )
Math.absoulute( )
B.
Math.neutral( )
Math.neutral( )
C.
Math.abs( )
Math.abs( )
D.
Math.positive( )
Math.positive( )
Question No. -
203
Report Bug
Which among the following will yield -1 for negative number and 1 for positive number for a number stored in a variable a?
Which among the following will yield -1 for negative number and 1 for positive number for a number stored in a variable a?
A.
Math.abs(a)*a
Math.abs(a)*a
B.
Math.abs(a) / a
Math.abs(a) / a
C.
Math.ceil(a) / Math.floor(a)
Math.ceil(a) / Math.floor(a)
D.
None of these
None of these
Question No. -
204
Report Bug
Which among the following gives the next mathematical integer?
Which among the following gives the next mathematical integer?
A.
Math.floor( )
Math.floor( )
B.
Math.ceil( )
Math.ceil( )
C.
Math.random( )
Math.random( )
D.
All of these
All of these
Question No. -
205
Report Bug
What is the return type of Math.min(1,2.0f)?
What is the return type of Math.min(1,2.0f)?
A.
float
float
B.
double
double
C.
int
int
D.
long
long
Question No. -
206
Report Bug
Which among the following expression will return a random integer between 5 and 10 both inclusive?
Which among the following expression will return a random integer between 5 and 10 both inclusive?
A.
5+(int)(Math.random()*6)
5+(int)(Math.random()*6)
B.
5+(int)(Math.random()*10)
5+(int)(Math.random()*10)
C.
5+Math.random()*6
5+Math.random()*6
D.
5+Math.random()*10
5+Math.random()*10
Question No. -
207
Report Bug
Which among the following function is equivalent to Math.sqrt(a)?
Which among the following function is equivalent to Math.sqrt(a)?
A.
Math.cbrt(a);
Math.cbrt(a);
B.
Math.pow(a,1/2)
Math.pow(a,1/2)
C.
Math.pow(a,1/2.0);
Math.pow(a,1/2.0);
D.
Math.
Math.
Question No. -
208
Report Bug
What value will Math.sqrt(-9) return?
What value will Math.sqrt(-9) return?
A.
-3.0
-3.0
B.
3.0
3.0
C.
NaN
NaN
D.
None of these
None of these
Question No. -
209
Report Bug
What value will Math.sqrt(Math.ceil(8.1)) return?
What value will Math.sqrt(Math.ceil(8.1)) return?
A.
9.0
9.0
B.
9
9
C.
3.0
3.0
D.
4.0
4.0
Question No. -
210
Report Bug
It is possible to find the square root of a number using the Math.pow() function.
It is possible to find the square root of a number using the Math.pow() function.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
211
Report Bug
Math.sqrt() function is used to find the square of a number.
Math.sqrt() function is used to find the square of a number.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
212
Report Bug
Math.abs() function is used to round off a real number to the nearest integer.
Math.abs() function is used to round off a real number to the nearest integer.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
213
Report Bug
Math. rint(12.5) will return 12.0.
Math. rint(12.5) will return 12.0.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
214
Report Bug
Math.ceil() and Math.floor() are same.
Math.ceil() and Math.floor() are same.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
215
Report Bug
NaN stands for Not a Number, which is received when you pass a negative number to the Math.sqrt() function.
NaN stands for Not a Number, which is received when you pass a negative number to the Math.sqrt() function.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
216
Report Bug
Math.round() function returns an int value if the parameter is float data type and long value if the parameter is of double data type.
Math.round() function returns an int value if the parameter is float data type and long value if the parameter is of double data type.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
217
Report Bug
You cannot find the cube root of a number in Java.
You cannot find the cube root of a number in Java.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
218
Report Bug
Math.random( ) returns a random number between 0 and 1 in decimal.
Math.random( ) returns a random number between 0 and 1 in decimal.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
219
Report Bug
Math.max( ) returns the number having maximum number of digits.
Math.max( ) returns the number having maximum number of digits.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
220
Report Bug
How often is the inner loop of a nested loop run?
How often is the inner loop of a nested loop run?
A.
Forever
Forever
B.
One fewer time than the main loop
One fewer time than the main loop
C.
Each time the main loop is run
Each time the main loop is run
D.
One more time than the main loop
One more time than the main loop
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