6
QuizMultiple Choice

Resources for Programmers — Unit test

Question 6 of 25 • Introduction to Information Technology - EL3701

A program reads as follows:if age 2: print (“free admission”)elif 2 age 12: print (“children’s admission is $5”)elif 12 age 22: print (“student admission is $8”)elif age 22: print (“general admission is $10”)If the age of the ticket buyer is entered as 13, how many steps would the program run through before executing?

Question illustration
Answer
A
1
B
2
C
3
D
4
Previous
Next