Single Choice Moderate

Qif(c=='a'||c=='e'...) checks:

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

Choose the Best Option

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

  • A Vowel
  • B Consonant
  • C Digit
  • D Special char
Correct Answer

Explanation

Correct Answer Explanation:

Chaining c equal to a, e, i, o, u with OR checks if character is a vowel.

Why the other options are incorrect:

  • Option B: Consonants would be checked by NOT vowel.
  • Option C: Digits are 0-9, different check.
  • Option D: Special chars are !, @, # etc.

Share This Question

Challenge a friend or share with your study group.