
Learning Outcomes

Quiz
•
Computers
•
Professional Development
•
Medium
Patrick Toner
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A loop repeats an action until a condition is met. What is a loop?
A sequence of instructions that is continually repeated until a certain condition is reached.
A single execution of a set of instructions.
A type of variable used in programming.
A method to store data in a database.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a basic Python loop (using for) to repeat a simple task. Goal: You will write a basic Python loop (using for) to repeat a simple task. Example: Print your name 3 times.
for i in range(3): print('Your Name')
while i < 3: print('Your Name')
print('Your Name' * 3)
repeat 3 times: print('Your Name')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: A loop is a piece of code that runs again and again until we tell it to ____.
stop
start
pause
continue
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A for loop is used to:
Iterate over a sequence of elements
Define a function
Store data in a variable
Terminate a program
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do? for i in range(5): print('Hello, world!')
Prints 'Hello, world!' 5 times
Prints 'Hello, world!' 4 times
Prints 'Hello, world!' 6 times
Does not print anything
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code example, what does 'range(5)' do?
Creates a list of numbers: 0, 1, 2, 3, 4
Creates a list of numbers: 1, 2, 3, 4, 5
Creates a list of numbers: 0, 1, 2, 3, 4, 5
Creates a list of numbers: 1, 2, 3, 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Change the code to print your name 3 times. for i in range(3): print("Your Name")
for i in range(3):\n print("Your Name")
for i in range(3):\n print("My Name")
for i in range(3):\n print("Your Name" * 3)
for i in range(3):\n print("My Name" * 3)
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Presentation Software

Quiz
•
10th Grade - Professi...
8 questions
OWA Part 1

Quiz
•
Professional Development
10 questions
04 - Python - Lists

Quiz
•
University - Professi...
15 questions
Fundamentals I. Final de módulo

Quiz
•
Professional Development
10 questions
Chapter 1 SDM

Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language

Quiz
•
Professional Development
11 questions
Java Fundamentals

Quiz
•
Professional Development
10 questions
Senz AIoT Savants - ML & C++

Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade