
Python Iteration and Selection Quiz
Quiz
•
Information Technology (IT)
•
7th Grade
•
Hard
John Heatley
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of using a trace table in Python programming?
To store large amounts of data
To keep track of variable values as a program runs
To create graphics
To speed up the code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a constant in Python, according to naming conventions?
userName
MAX_SCORE
totalMarks
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to write a variable name in camel case?
totalmarks
TotalMarks
totalMarks
TOTALMARKS
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python statement is used for selection (making decisions)?
for
if
def
import
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? ```python x = 5 if x > 3: print("High") else: print("Low") ```
High
Low
5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of iteration in Python?
if x > 10:
for i in range(5):
x = 10
print("Hello")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value will be printed last in the following code? ```python for i in range(3): print(i) ```
0
1
2
3
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Ulangan Harian - BAB : SISTEM KOMPUTER
Quiz
•
7th Grade
23 questions
Программирование Python в Minecraft
Quiz
•
7th Grade
20 questions
Understanding Iteration and Selection
Quiz
•
7th Grade
21 questions
Scratch level 1
Quiz
•
7th Grade
15 questions
Introduction to Cybersecurity Quiz
Quiz
•
7th Grade
20 questions
Computer Basics Quiz
Quiz
•
7th Grade - University
15 questions
SNLT-HP1-B5
Quiz
•
6th - 8th Grade
25 questions
ULANGAN ALGORITMA PEMROGRAMAN KELAS 7 SEMESTER GENAP
Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
20 questions
Morpheme Mastery Quiz for Grade 7
Quiz
•
7th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
