If/Else Statements (C++ Programming)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Joseph Sultan
Used 64+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
11 questions
Execl Quiz
Quiz
•
7th Grade - University
10 questions
Lego Spike - Challenge 1 Quiz
Quiz
•
6th Grade - University
15 questions
PERTANDINGAN KUIZ ASAS SAINS KOMPUTER SMK TANJONG SEPAT 2023
Quiz
•
7th - 9th Grade
10 questions
7.2 Knowledge check
Quiz
•
9th Grade
10 questions
Google Docs - Tables
Quiz
•
9th - 10th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
