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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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).
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic