Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

Form 4 - CSEC Information Technology Quiz

Form 4 - CSEC Information Technology Quiz

10th Grade - University

30 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

Python - Chapter 3 Practice Quiz

Python - Chapter 3 Practice Quiz

12th Grade

25 Qs

2-semestr  Yakuniy Nazorat

2-semestr Yakuniy Nazorat

10th Grade

25 Qs

Computer Science Examination Paper A - Allowed Items

Computer Science Examination Paper A - Allowed Items

12th Grade

33 Qs

функция рус

функция рус

11th Grade

30 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Easy

Created by

Amna Yakeen

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?