CSE 1321 Quiz 3 - Selection
Structures actual questions
with complete solutions
2025-2026
The ________ statement is used to make simple decisions in a
program . - answer if
A Boolean expression is one that is either: - answer true or false
Which of the following expressions will determine whether x is less
than or equal to y? - answer x <= y
Which one of the following is the not equal operator? - answer !=
The ________ statement lets the value of a variable or expression
determine where the program will branch to. - answer switch
What will be displayed to the console after the following code is
executed?
grade ← 70
IF (grade < 60) THEN
PRINT("You failed.")
END IF
PRINT ("Your grade is " + grade) - answer Your grade is 70
Structures actual questions
with complete solutions
2025-2026
The ________ statement is used to make simple decisions in a
program . - answer if
A Boolean expression is one that is either: - answer true or false
Which of the following expressions will determine whether x is less
than or equal to y? - answer x <= y
Which one of the following is the not equal operator? - answer !=
The ________ statement lets the value of a variable or expression
determine where the program will branch to. - answer switch
What will be displayed to the console after the following code is
executed?
grade ← 70
IF (grade < 60) THEN
PRINT("You failed.")
END IF
PRINT ("Your grade is " + grade) - answer Your grade is 70