Python Quiz (More Loops)
Quiz
•
Computers
•
KG - 6th Grade
•
Practice Problem
•
Hard
Jerry Xiao
Used 28+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is the correct syntax of a while loop in Python
while condition:
ㅤㅤstatements
While condition:
ㅤ statements
while conditionㅤ
ㅤstatements
while condition: ㅤ
ㅤstatements;
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is a ‘condition-controlled’ loop?
for
while
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is a ‘count-controlled’ loop?
for
while
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is an incorrect ‘for’ loop?
for var in [1.2.3.4]:
for var in range(1):
for var in range(1,2,3):
for var in range(1,2,3,4,5):
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is an incorrect ‘for’ loop?
for var in range(5,1,-1):
for var in range(1,5,1):
for var in range(1,5,2):
for var in range(1,5,-1):
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Python code?
for num in range(1, 2, 3): ㅤ
print(num)
123
1 2 3
num
1
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Python code?
for num in range(2):
print(num)
0 1
1 2
0 1 2
2
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
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
Tìm hiểu máy tính
Quiz
•
2nd Grade
10 questions
Microcontroller
Quiz
•
11th Grade - University
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
10 questions
Projetos com programação: simulando a natureza
Quiz
•
8th Grade
10 questions
Teclas de acceso rápido
Quiz
•
1st - 10th Grade
10 questions
UAS SISTEM PENDUKUNG KEPUTUSAN SUSULAN
Quiz
•
University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th 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
