
Unit 1 Lesson 2 Iteration Using While Loops
Authored by Salli Childers
Other
6th - 8th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
A _________ is a statement that can either be true or false.
condition
if/else
indentation
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
A ______ statement repeats same code as long as the condition is true.
condition
while
indentation
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Each line of code inside the while loop needs to have spaces at the front of it. We call these spaces ___________?
conditions
while loops
indentations
4.
MULTIPLE CHOICE QUESTION
3 mins • 10 pts
To move a line of code outside of the while loop, you must ________ the spaces/indentation at the front of the line.
add
move over
remove
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
To have a line of code execute multiple times, you can put it inside of a _____ _____
while loop
condition
indentation
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the primary purpose of a while loop in programming?
To execute a block of code a fixed number of times.
To execute a block of code repeatedly as long as a specific condition is true.
To execute a block of code only once.
To execute a block of code randomly.
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is a condition?
A named piece of data
A statement that can be true or false
Circumstances that have to be set up in order for something to happen
Context that is needed for a program to run
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?