
Unit 6 ICS Edhesive
Authored by Margaret McGraw
Computers
9th - 12th Grade
Used 28+ 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
30 sec • 1 pt
A _________ loop has a built in count variable.
for
while
range
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
_____ is information sent to a function.
A parameter
A loop control variable
A range
A count variable
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
When do use a for loop instead of a while loop? Select multiple answers.
You know how many times you want the loop to run.
To do number calculations.
When there is a definite starting and ending point.
To repeat code.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
start = int(input("Enter the starting number: "))
stop = int(input("Enter the ending number: "))
for x in range (start, stop):
print(x)
In the program, x is an example of a ____________.
count variable
flag
loop control variable
input variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output by the following code?
for x in range (10):
print(x, end=" ")
10 9 8 7 6 5 4 3 2 1
0 1 2 3 4 5 6 7 8 9 10
9 8 7 6 5 4 3 2 1 0
0 1 2 3 4 5 6 7 8 9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
start = int(input("Enter the starting number: "))
stop = int(input("Enter the ending number: "))
x = 3
for i in range(start, stop, x):
print (i, end=" ")
What is output if the user enters 11 then18?
11 14 17 20
14 17
11 14 17
14 17 20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A __________ is a command used to repeat code.
loop
conditional
parameter
variable
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?