Single Choice Moderate

Qtrue || false gives:

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

Choose the Best Option

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

  • A true
  • B false
  • D null
Correct Answer

Explanation

Correct Answer Explanation:

OR returns true if at least one operand is true. Since one is true, the result is true.

Why the other options are incorrect:

  • Option B: OR needs only one true to give true.
  • Option C: Java booleans aren't 0/1.
  • Option D: null isn't a boolean result.

Share This Question

Challenge a friend or share with your study group.