| 1 |
In Java, && and ` |
|
| 2 |
In an if-else statement, the else block executes only when the if condition is false. |
True |
| 3 |
Java allows an if statement without the else part. |
True |
| 4 |
The ^ operator in Java is used for exponentiation. |
False |
| 5 |
Unary minus operator can be used to negate the value of a variable in Java. |
True |
| 6 |
a += b is equivalent to a = a + b in Java. |
True |
| 7 |
In Java, the binary number system uses base 10. |
False |
| 8 |
The number 1010 in binary is equivalent to 10 in decimal. |
True |
| 9 |
& and ` |
` are logical operators in Java. |
| 10 |
In Java, a >> 2 shifts the binary bits of a to the left by 2 positions. |
False |