Single Choice
Moderate
QUsing = instead of == in condition is:
ID: #25940
MCQ Quiz - Class 8 - Decision Control Structure
3 views
Question Info
#25940Q 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:
Confusing = (assignment) with == (comparison) is one of the most COMMON beginner errors. Always use == in conditions.
Why the other options are incorrect:
- Option B: It's not correct — it's a mistake.
- Option C: It's the opposite of best practice.
- Option D: In Java, it may cause a compile error for non-boolean expressions.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic