Python PRIMM L5
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
Matthew Kelsall
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python for i in range(3): print(i) ```
`0 1 2`
`1 2 3`
`0 1 2 3`
`1 2`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```python for i in range(1, 5): print(i * 2) ```
`2 4 6 8`
`1 2 3 4`
`2 3 4 5`
`4 6 8 10`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you iterate over a list of numbers from 0 to 9 using a for loop?
`for i in range(10):`
`for i in range(0, 9):`
`for i in range(1, 10):`
`for i in range(0, 10):`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python for i in range(2, 10, 2): print(i) ```
`2 4 6 8`
`2 3 4 5`
`2 4 6 8 10`
`1 3 5 7 9`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to iterate backwards from 5 to 1 using a for loop, which of the following is correct?
`for i in range(5, 0, -1):`
`for i in range(5, 1, -1):`
`for i in range(5, -1, -1):`
`for i in range(5, 0):`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python for i in range(0, 5, 2): print(i) ```
`0 1 2 3 4`
`0 2 4`
`1 3 5`
`2 4 6`
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
Función CONTAR
Quiz
•
KG - Professional Dev...
10 questions
AVALIAÇÃO | 2º TRIMESTRE |BLOCO 2|
Quiz
•
6th Grade
10 questions
kiểm tra 15 phút tin 7
Quiz
•
6th - 9th Grade
9 questions
MinecraftPython Test 1
Quiz
•
5th - 6th Grade
10 questions
Computer Fundamentals
Quiz
•
2nd - 10th Grade
9 questions
Chromebook S3 Quiz
Quiz
•
6th - 10th Grade
10 questions
[ APJII ] Training FTTH - Fiber to the Home
Quiz
•
KG - University
10 questions
Sprawdź się
Quiz
•
4th - 12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
