C-17-Q019mediumsingle_mcq
If the citizen's age input is 15, the printed line is:
If the citizen's age input is 15, the printed line is:
- a"You are eligible for voting"
- b"You are not eligible for voting"
- cThe program crashes
- dThe age is set to 18
ব্যাখ্যা
For age 15 the condition age >= 18 is false, so the else block runs and prints the not-eligible message. Since 15 is below the threshold, the person does not qualify to vote.