Single Choice Moderate

Q! operator:

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

Choose the Best Option

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

  • A Reverses boolean value
  • B Adds numbers
  • C Compares
  • D Multiplies
Correct Answer

Explanation

Correct Answer Explanation:

! (logical NOT) reverses (negates) a boolean value. !true = false, !false = true.

Why the other options are incorrect:

  • Option B: Adding uses +.
  • Option C: Comparing uses ==, <, >, etc.
  • Option D: Multiplying uses *.

Share This Question

Challenge a friend or share with your study group.