Python Quiz (More Loops)

Quiz
•
Computers
•
KG - 6th Grade
•
Hard
Jerry Xiao
Used 27+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Python code?
for num in range(1, 3):
print(num)
0 1
1 2
1 2 3
2 3
9.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the below statements is equal to:
sum = sum + number
sum = sum ++ number
sum += number
sum += sum + number
number += sum
Similar Resources on Wayground
6 questions
Python Quiz 01

Quiz
•
1st - 5th Grade
10 questions
Uji Pemahaman VLOOKUP dan HLOOKUP

Quiz
•
8th Grade
10 questions
9 класс Информатика Одномерный массив данных

Quiz
•
9th - 10th Grade
10 questions
C Programming

Quiz
•
Professional Development
10 questions
CODEHS Looping Unit 5 Review

Quiz
•
9th - 12th Grade
10 questions
Rumus Dasar Excel

Quiz
•
1st Grade
13 questions
Ciclos Python

Quiz
•
University
10 questions
FUNGSI PADA MICROSOFT EXCEL

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
12 questions
3-5 Digital Citizenship: Appropriate Use

Quiz
•
3rd - 5th Grade
10 questions
Keyboard Typing

Quiz
•
4th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
16 questions
Input and Output devices

Quiz
•
5th Grade