
Learning Outcomes
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Patrick Toner
Used 1+ times
FREE Resource
Enhance your content in a minute
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)
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?
Similar Resources on Wayground
10 questions
Ai BG-Q#
Quiz
•
Professional Development
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Azure Cloud computing
Quiz
•
Professional Development
13 questions
GRAND OPENING INTERNSHIP EXERCISE 2024
Quiz
•
Professional Development
10 questions
CORSO G_SUITE parte seconda
Quiz
•
Professional Development
11 questions
SENA
Quiz
•
University - Professi...
10 questions
How are you doing?
Quiz
•
Professional Development
10 questions
AWS ACF Módulo 1 - Visão geral dos conceitos de nuvem
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
