Single Choice Moderate

Q|| means:

ID: #25906 MCQ Quiz - Class 8 - Decision Control Structure 3 views
Question Info
#25906Q ID
ModerateDifficulty
MCQ Quiz - Class 8 - Decision Control StructureTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A OR
  • B AND
  • C NOT
  • D XOR
Correct Answer

Explanation

Correct Answer Explanation:

|| is logical OR — returns true if at least ONE of the operands is true.

Why the other options are incorrect:

  • Option B: AND uses &&, not ||.
  • Option C: NOT uses !.
  • Option D: XOR uses ^ in Java (bitwise/logical exclusive OR).

Share This Question

Challenge a friend or share with your study group.