Programming - Operators

You Are Here :: Home > JAVA > Operators - General Questions

 
19.

Conditional operators return __________ value based on the state of the variables                        


A. TRUE B. a true or a false
C. FALSE D. both a and c




20.

The AND (&) operator is similar to the __________.                        


A. logical AND B. Conditional-AND operator (&&)
C. both a and b D. all the above




21.

The "|" operator always evaluates both of its operands and returns___________ if one or other of its operand is___________.                        


A. true,true B. true,false
C. false,true D. false,false




22.

The _______ operator performs the boolean NOT operation on a single operand or an expression.                        


A. Boolean Negation Operator B. NOT ("!")
C. Boolean operator D. all the above




23.

_________________ checks the boolean status of a current operand or expression and reverses the value of a boolean expression                        


A. NOT(!) B. logical NOT
C. both a and b D. none




24.

Java supports another conditional operator that is known as the _________ operator "?:"                        


A. Unary B. ternary
C. binary D. all the above




« prev

1

2

3

4

5

6

7

8

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on