Multiple Choice
The pseudocode for the following problem is ____.
Suppose all students in grade 12 at a high school are to be selected for a field trip, but the boys are leaving on the 8:30 a.m. bus and the girls are leaving at 9:00 a.m.
A) If gradeLevel == 12 Then
Display "Enter M for male, or F for female: "
If gender == "M" Then
Display "Your bus leaves at 8:30 a.m."
Else If
Display "Your bus leaves at 9:00 a.m."
End If
End If
B) If gradeLevel == 12; Display "Enter M for male, or F for female: "
If gender == "M" Then;
Display "Your bus leaves at 8:30 a.m."
Else;
Display "Your bus leaves at 9:00 a.m."
End If;
End If
C) If gradeLevel == 12 Then Display "Enter M for male, or F for female: "
Input gender
If gender == "M" Then
Display "Your bus leaves at 8:30 a.m."
Else
Display "Your bus leaves at 9:00 a.m."
End If
End If
D) If gradeLevel >= 12 Then Display "Enter M for male, or F for female: "
If gender == "M"
Display "Your bus leaves at 8:30 a.m."
Else
Display "Your bus leaves at 9:00 a.m."
End
End If
Correct Answer:

Verified
Correct Answer:
Verified
Q25: The simplest selection structure is one in
Q26: Selections can be nested inside other selections.
Q27: In pseudocode, a dual-outcome selection consists of
Q28: Structures can contain other structures, and they
Q29: With a selection structure, your program can
Q31: A selection contained in the scope of
Q32: In JavaScript, braces ({ }) are used
Q33: The following statement concatenates a customer's name:
Q34: On a flowchart, the End If statement
Q35: JavaScript allows using the keywords else if