If/Else Statements (C++ Programming)

Quiz
•
Computers
•
9th Grade
•
Medium
Joseph Sultan
Used 61+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is an "if" statement?
Lines of code activated when conditions are met
Executes a written line of code.
Stops the code if certain requirements are not met
Repeats a command until a statement is true.
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is an "Else" statement?
Assigns a value to a variable
Adds another command the code will execute
Runs the statement coded if anything else in the code does not run as anticipated.
A function that is performed if the "if" statement is not satisfied
3.
FILL IN THE BLANK QUESTION
30 sec • 5 pts
The _____ is executed once and only once
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Where do you write an "if/else" statement?
Global Space
Void Setup
Void Code
Void Loop
5.
DRAW QUESTION
30 sec • Ungraded
Circle the global space
6.
DRAW QUESTION
30 sec • Ungraded
Circle one example of an "if/else" statement.
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
If an "if" statement is activated when a button is pressed, then the "else" statement will activate when...
the LED does not turn on
the button is not pressed
the LED turns on
the circuit does not power.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
python IF part1

Quiz
•
9th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
10 questions
Python IF Statements

Quiz
•
9th - 12th Grade
15 questions
Y7 Python Mid Point

Quiz
•
7th - 12th Grade
15 questions
End of term assessment

Quiz
•
9th Grade
10 questions
Programming Basics

Quiz
•
9th - 10th Grade
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
12 questions
Control Structure

Quiz
•
9th Grade - 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
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th 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