
Python Flashcard - ForLoops CS1
Flashcard
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Heather Luman
FREE Resource
Student preview

8 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the starting value of the variable i in the for loop if we use the range function with two parameters? for i in range(3, 10):
Back
3
2.
FLASHCARD QUESTION
Front
What does the second parameter in the range function indicate? Example: for i in range(3, 10): print(i)
Back
Ending value for 'I'
3.
FLASHCARD QUESTION
Front
In this example where the loop goes from 1 to 9 in two step increments, what is the last number to be printed? for i in range(1, 9, 2): print(i)
Back
7
4.
FLASHCARD QUESTION
Front
In this example, what is the last number to print? for i in range(10, 0, -1): print(i)
Back
1
5.
FLASHCARD QUESTION
Front
In a for loop where the loop counts up to 100 by twos, what is last value to print? for i in range(0, 100, 2): print(i)
Back
98
6.
FLASHCARD QUESTION
Front
Which for loop prints the numbers 3, 5, 7, 9? Options: for i in range(3, 10, 2): print(i), for i in range(3, 9, 2): print(i), for i in range(9): print(i), for i in range(3,9): print(i)
Back
for i in range(3, 10, 2): print(i)
7.
FLASHCARD QUESTION
Front
Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others? for i in range(0, 5):, for i in range(5):, for i in range(0, 5, 1):, for i in range(5, 0, 1):
Back
for i in range(5, 0, 1):
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
7 questions
Photosynthesis
Flashcard
•
10th Grade
9 questions
Advantages of Cloud Storage
Flashcard
•
9th - 10th Grade
7 questions
Earthquake
Flashcard
•
9th Grade
3 questions
Escort Service in Marina Dubai
Flashcard
•
KG
6 questions
PROBABILITY DISTRIBUTION
Flashcard
•
11th Grade
5 questions
Il Trecento
Flashcard
•
KG
13 questions
GRECO verbo 1ac24-25
Flashcard
•
9th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade