ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA OPERATORS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
Math.abs( ) is used to find the absolute value of a number
Math.abs( ) is used to find the absolute value of a number
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
02
Report Bug
The return type of Math.sqrt( ) function is float.
The return type of Math.sqrt( ) function is float.
The return type of Math.sqrt( ) function is float.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
The return type of Math.sqrt( ) is Double
Question No. -
03
Report Bug
Which among the following is a relational operator?
Which among the following is a relational operator?
A.
+
+
B.
>
>
C.
*
*
D.
/
/
Question No. -
04
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. -
05
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. -
06
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. -
07
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.
Question No. -
08
Report Bug
Which among the following operators is used to check the two operands are equal or not?
Which among the following operators is used to check the two operands are equal or not?
A.
Equals
Equals
B.
=
=
C.
==
==
D.
None of these
None of these
Explanation
== (Relational Operator) is used to compare two operands are equal or not, whether '=' is used to assign the value from right side expression to left.
Question No. -
09
Report Bug
Which among the following forms of operators works with three operands?
Which among the following forms of operators works with three operands?
A.
Unary
Unary
B.
Binary
Binary
C.
Ternary
Ternary
D.
None of these
None of these
Explanation
Ternary operator takes three arguments (operands) to perform the operation. it is also known as conditional operator which used ? : symbol to represent this.
Question No. -
10
Report Bug
The sign && means
The sign && means
A.
Logical OR
Logical OR
B.
Bitwise OR
Bitwise OR
C.
Logical AND
Logical AND
D.
Bitwise AND
Bitwise AND
1
2
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