ExamTray App is now Available on Google Play EXAMTRAY android app link

 

TOTAL QS = 20Time [ 00 : 00 : 00 ]
00:00:00

Java Basics: Logical Operators Online Test 1

Instructions

Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Exam/Quiz/Trivia tests your Java Programming Skills on Java Logical Operators or Boolean Operators. Logical operators work with boolean data type values like true or false. You will be tested on Logical AND, OR, NOT, XOR/Exclusive OR, Short Circuit AND/OR operators and their priority/associativity. This test displays answers after finishing the exam for review. You can easily clear Competitive Exams and Job Interview Questions.

Go through Java Theory Notes on Logical Operators before attempting this test.

All the Best

Challenge SCORE

0 / 20

Take This Exam
1) What are the two possible Logical Operator types?
2) Boolean logical operators in Java work with?
3) Bitwise logical operators in Java work with?
4) In general Bitwise logical operators are simply called?
5) What is the input for Logical Operators?
6) What is the output of any Logical operation in Java?
7) Which is the Logical operator in Java that works with a Single Operand?
8) Which among the following is a Logical Unary NOT operator in Java?
9) What is the output of the Java code snippet?
boolean b=false;
b = !b;
System.out.println(b);
10) Which among the following is a Short Circuit AND operator?
11) Which among the following is a Short Circuit OR operator?
12) What is the output of a Logical OR (|) operation if one of the inputs/operands is false?
13) What is the output of Logical AND (&) operation if one of the inputs/operands is false?
14) What is the output of a Logical OR (|) operation if one of the inputs/operands is true?
15) What is the output of a Logical AND (&) operation if one of the inputs/operands is true?
16) What is the output of a Logical AND (&) operation if both inputs/operands are true?
17) What is the output of a Logical OR (|) operation if both the inputs/operands are true?
18) Which is fast among AND (&) and Short Circuit AND(&&) operators in Java?
19) Which is fast among OR(|) and Short Circuit OR (||) operators in Java?
20) Why are Short Circuit AND (&&) and Short Circuit OR (||) operators are fast in Java?