Conditional Statements Warm-Up

Quiz
•
Computers
•
10th Grade
•
Medium
Chris Barnabei
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Boolean expression in AP pseudocode?
`5 + 3`
`x > 10`
`print("Hello")`
`x = 5`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following pseudocode: ``` IF x > 5 THEN DISPLAY("Greater") ELSE DISPLAY("Smaller or Equal") ``` What will be displayed if `x` is 5?
`Greater`
`Smaller or Equal`
`Error`
`Nothing`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of nested conditionals, what will the following pseudocode output if `x = 3` and `y = 4`? ``` IF x > 2 THEN IF y < 5 THEN DISPLAY("Condition Met") ELSE DISPLAY("Condition Not Met") ELSE DISPLAY("Outer Condition Not Met") ```
`Condition Met`
`Condition Not Met`
`Outer Condition Not Met`
`Error`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly describes the flow of conditional logic?
The ELSE block is executed only if the IF condition is true.
The IF block is executed only if the ELSE condition is true.
The ELSE block is executed if the IF condition is false.
The IF block is executed regardless of the condition.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the pseudocode below, what is the final value of `z` if `x = 2` and `y = 3`? ``` z = 0 IF x < y THEN z = z + 1 IF y > 2 THEN z = z + 2 ELSE z = z - 1 ```
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following pseudocode if `a = 4` and `b = 6`? ``` IF a < b THEN IF a + b > 10 THEN DISPLAY("Sum is large") ELSE DISPLAY("Sum is small") ELSE DISPLAY("a is not less than b") ```
`Sum is large`
`Sum is small`
`a is not less than b`
`Error`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Boolean expression will correctly evaluate to true if `x` is between 1 and 10, inclusive?
`x > 1 AND x < 10`
`x >= 1 AND x <= 10`
`x > 1 OR x < 10`
`x >= 1 OR x <= 10`
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze the following pseudocode and determine the output if `n = 7`: ``` IF n MOD 2 = 0 THEN DISPLAY("Even") ELSE IF n MOD 3 = 0 THEN DISPLAY("Divisible by 3") ELSE DISPLAY("Odd") ```
`Even`
`Divisible by 3`
`Odd`
`Error`
Similar Resources on Wayground
10 questions
Algoritma dan flowchart

Quiz
•
1st - 10th Grade
13 questions
S3 SDD Unit 2 KC 2

Quiz
•
7th Grade - University
12 questions
Pretest - Webinar1 Kelas Industri Hummasoft

Quiz
•
10th Grade
10 questions
AP CSP Worksheet 2

Quiz
•
9th - 12th Grade
12 questions
Computer Science

Quiz
•
7th - 12th Grade
9 questions
Java nested if program

Quiz
•
10th - 11th Grade
10 questions
Ôn tập tuần 1 Python

Quiz
•
9th - 12th Grade
10 questions
Списки Python + Pygame

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade