Python Loops Post Test

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Jakobi Gorham
Used 59+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Choose the correct output of the following code.
for i in range(10,15):
print(i)
10
11
12
13
14
10
11
12
13
14
15
11
12
13
14
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What is the output of the following:-
x = "123"
for i in x:
print("a")
x
1
a
1
2
3
x
1
2
3
a
a
a
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The program above
prints all the odd numbers between 1 and 20
prints all even numbers between 1 and 20
print all the odd numbers between 1 and 21
prints all the even numbers between 1 and 21
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A while loop equivalent of the for loop above is
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
1,2,3,4
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
When do you know when you come to the end of the loop?
Its states End loop
The command End is given
The indentation stops
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Final 052224 - 3

Quiz
•
10th Grade
20 questions
Python while loops

Quiz
•
12th Grade
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
15 questions
Input Commands Quiz

Quiz
•
10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade