Python Iteration and Selection Quiz

Python Iteration and Selection Quiz

7th Grade

20 Qs

quiz-placeholder

Similar activities

Excel 7-klass 01.02.2025

Excel 7-klass 01.02.2025

7th Grade

15 Qs

GRADE 4 ICT QUIZ 1 1ST SEM 2025-2026

GRADE 4 ICT QUIZ 1 1ST SEM 2025-2026

4th Grade - University

20 Qs

Computer basics

Computer basics

7th Grade - University

15 Qs

IT/CS Review Quizzizz

IT/CS Review Quizzizz

6th Grade - University

15 Qs

KUIZ DELIMA 2.0 MURID

KUIZ DELIMA 2.0 MURID

6th - 8th Grade

20 Qs

G4-Microprocessors and Their Uses

G4-Microprocessors and Their Uses

4th Grade - University

15 Qs

soal informatika bab 3 kelas 7

soal informatika bab 3 kelas 7

7th Grade - University

20 Qs

MENGENAL CANVA

MENGENAL CANVA

7th Grade

20 Qs

Python Iteration and Selection Quiz

Python Iteration and Selection Quiz

Assessment

Quiz

Information Technology (IT)

7th Grade

Practice Problem

Hard

Created by

John Heatley

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

print

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?