
Quiz 4 Edhesive Review
Authored by Katy Fleming
Computers
9th - 12th Grade
Used 96+ 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
2 mins • 1 pt
Loops are used to _____________ code.
repeat
initialize
test
incriment
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Setting a starting value for a variable is called _____________.
initializing
repeating
testing
incrementing
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is the variable controlling the loop?
int
sum
num
x
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Why do we use 'while' loops?
Because of efficiency.
Because computers can do calculations humans can't.
Because programs need to make decisions.
Because programming is an important skill.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is NOT true about 'while' loops?
Use conditions like if statements
A way of repeating a code
Give us more control over how the program runs
Used to find remainders
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
It should print out:
Next number: 10 Next number: 9 Next number: 8 Next number: 7 Next number: 6 What is wrong?
It should be c = c + 1
Nothing, the code runs as it should.
c = 10 should be c = 1
The c = c - 1 is not inside the loop. This will cause the loop not to stop.
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
1
2
3
4
5
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?