Java ProgrammingPrograming & IT Mcqs 100+ MCQ & Answer Java programming | page-08 |Computer Engineering MCQ And Answer January 27, 2025 DSN MARATHI 71. Which is the Logical operator in Java that works with a Single Operand? A. Logical AND B. Logical OR C. Logical Exclusive OR D. Logical NOT Answer Option : D 72. Which among the following is a Logical Unary NOT operator in Java? A. ~ B. ! C. # D. ^ Answer Option : B 73. Which among the following is a Short Circuit AND operator? A. & B. && C. | D. || Answer Option : B 74. Which among the following is a Short Circuit OR operator? A. & B. && C. | D. || Answer Option : D 75. What is the output of a Logical OR (|) operation if one of the inputs/operands is false? A. false B. true C. true or false D. None of the above Answer Option : C 76. What is the output of Logical AND (&) operation if one of the inputs/operands is false? A. false B. true C. true or false D. None of the above Answer Option : B 77. What is the output of a Logical AND (&) operation if one of the inputs/operands is true? A. false B. true C. true of false D. None of the above Answer Option : C 78. What is the output of a Logical AND (&) operation if both inputs/operands are true? A. false B. true C. true or false D. None of the above Answer Option : B 79. What is the output of a Logical OR (|) operation if both the inputs/operands are true? A. true B. false C. true or false D. None of the above Answer Option : A 80. Which is fast among AND (&) and Short Circuit AND(&&) operators in Java? A. AND operator B. Short Circuit AND C. Both work at the same speed D. None of the above Answer Option : B
71. Which is the Logical operator in Java that works with a Single Operand? A. Logical AND B. Logical OR C. Logical Exclusive OR D. Logical NOT Answer Option : D
72. Which among the following is a Logical Unary NOT operator in Java? A. ~ B. ! C. # D. ^ Answer Option : B
73. Which among the following is a Short Circuit AND operator? A. & B. && C. | D. || Answer Option : B
74. Which among the following is a Short Circuit OR operator? A. & B. && C. | D. || Answer Option : D
75. What is the output of a Logical OR (|) operation if one of the inputs/operands is false? A. false B. true C. true or false D. None of the above Answer Option : C
76. What is the output of Logical AND (&) operation if one of the inputs/operands is false? A. false B. true C. true or false D. None of the above Answer Option : B
77. What is the output of a Logical AND (&) operation if one of the inputs/operands is true? A. false B. true C. true of false D. None of the above Answer Option : C
78. What is the output of a Logical AND (&) operation if both inputs/operands are true? A. false B. true C. true or false D. None of the above Answer Option : B
79. What is the output of a Logical OR (|) operation if both the inputs/operands are true? A. true B. false C. true or false D. None of the above Answer Option : A
80. Which is fast among AND (&) and Short Circuit AND(&&) operators in Java? A. AND operator B. Short Circuit AND C. Both work at the same speed D. None of the above Answer Option : B