WorksheetsLoops - code.org
Total questions: 10
Worksheet time: 8mins
What type of loop is this?
a variable loop
a for loop
a while loop
What type of loop is this?
a while loop
a for loop
a variable loop
What is a repetitive portion of an algorithm that repeats a specific number of times or until a given condition is met?
iteration
variable
list
What occurs when the ending condition will never evaluate to true?
a list
a variable
an infinite loop
What letter do computer scientists use to mean a variable in programming?
an x
a y
an i
What does steps ++ mean?
steps + a variable
steps + 1
steps = 1
steps + 11
What allows us to test solutions or run experiments in a way that is usually cheaper, safer, and often times faster?
a simulation
a trial
an experiment
What will show up in the console log when this program is run?
0 1 2 3 4
1 2 3
1 2 3 4
0 1 2 3
A job placement agency helps match job seekers with potential employers. The agency would like to design a simulation in order to help predict the likely job placement outcomes for job seekers based on historical trends and patterns. Which of the following is most likely to be a benefit of the simulation?
The computer simulation will be able to include more details and complexity than the real-world job placement process.
The computer simulation could test hypotheses about patterns in the job placement process that are costly or time consuming to observe in reality.
The computer simulation will be able to precisely predict the real-world outcomes for each job seeker.
Which of the following is the same loop just written differently? There are two answers.
for the variable i, while i is less than 4, add one to the variable and move forward once
for the variable i, if i is greater than 4, move forward 4 times and add one to the variable
