Search Header Logo

Python Programming Quiz

Authored by Amna Yakeen

Information Technology (IT)

9th - 12th Grade

Used 1+ times

Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A fixed value

A container to store data

A Python module

A keyword

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output? x = 7 x = x + 3 print(x)

7

3

10

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does ‘sequence’ mean in programming?

Skipping steps

Steps in random order

Steps in logical order

Mixing loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of structure is used in this code? if score >= 50: print("Pass") else: print("Fail")

Loop

Selection

String

Syntax

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop run? for i in range(4): print(i)

3

4

5

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this list contain? fruits = ["apple", "banana", "cherry"] print(fruits[1])

apple

banana

cherry

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will name[2] return if name = "Amna"?

m

n

a

A

Access all questions and much more by creating a free account

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

Already have an account?