

For Loops
Interactive Video
•
Information Technology (IT)
•
7th Grade
•
Practice Problem
•
Hard
John Streety
Used 9+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a basic for loop do when you use 'range(5)'?
Prints a statement five times
Counts from 1 to 5
Counts from 1 to 6
Prints a statement six times
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you use 'range(2, 100, 2)' in a for loop, what will it do?
Count from 2 to 101 by twos
Count from 2 to 99 by twos
Count from 2 to 98 by twos
Count from 2 to 100 by twos
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a for loop behave when using 'range(100, -2, -2)'?
Counts down from 100 to -2
Counts up from 100 to -2
Counts up from 100 to 0
Counts down from 100 to 0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using a list in a for loop?
To print numbers
To iterate over and print each element in the list
To add elements to the list
To count the number of elements
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you print elements of a list with a message in a for loop?
The message is printed once
Each element is printed with the message
Only the first element is printed
The list is printed as a whole
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?
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
7th grade ELA Vocabulary Review
Quiz
•
7th - 8th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Path and Ortho Greek bases
Quiz
•
6th - 8th Grade
10 questions
Mean, Median, Mode, and Range
Quiz
•
7th Grade
24 questions
7th grade STAAR Reading Review
Quiz
•
7th Grade
23 questions
Mean median mode and range
Quiz
•
7th Grade