LO13_Lesson 5

Quiz
•
Computers
•
10th Grade
•
Medium
Samantha Cassia
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is iteration known as?
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following best describes the purpose of a for loop?
A for loop is for doing something an indeterminate number of times.
A for loop is doing something an infinite number of times.
A for loop is for doing something a fixed number of times.
A for loop is for doing something three times.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following best describes the while loop?
A loop that always executes at least once, regardless of the condition.
A loop that repeats a block of code as long as a specified condition is true.
A loop that executes a specific number of times.
A loop that is used exclusively for iterating over elements in a list.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the range() function do in a for loop?
Creates a copy of the list
Filters elements in a list
Reverses the order of elements
Generates a sequence of numbers
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How many times does the following program print the word ‘computer’:
word= "computer"
for num in range(1,6):
print(word)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following programs prints ten lines?
for i in range(10):
print("hi")
for i = 1 to 10:
print("hi")
for i in 1 - 10:
print("hi")
for i from 0 to 9:
print("hi")
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Review 2023-01-12

Quiz
•
9th - 12th Grade
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
10 questions
Python Loops

Quiz
•
9th - 12th Grade
12 questions
Loops

Quiz
•
9th - 12th Grade
9 questions
AP CS A Quiz 4 Practice

Quiz
•
9th - 12th Grade
15 questions
Hangman Game - Programming Questions

Quiz
•
7th - 11th Grade
15 questions
Input Commands Quiz

Quiz
•
10th Grade
12 questions
Errors in Python

Quiz
•
9th - 12th Grade
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