What is an "if" statement?
If/Else Statements (C++ Programming)

Quiz
•
Computers
•
9th Grade
•
Medium
Joseph Sultan
Used 52+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
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 Quizizz
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
13 questions
CTE Information Technology Quiz

Quiz
•
7th - 9th Grade
11 questions
JAVA QUIZ

Quiz
•
1st - 12th Grade
13 questions
KS4 Python While Loops and For Loops

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

Quiz
•
9th Grade - University
11 questions
Control Structures - Selection in Python

Quiz
•
8th Grade - University
12 questions
Java Strings

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

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University