Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

NEXORA

NEXORA

12th Grade

25 Qs

Test8

Test8

9th - 12th Grade

30 Qs

Asesment Tengah Semester Algoritma dan Array

Asesment Tengah Semester Algoritma dan Array

12th Grade - University

25 Qs

QUIZ Edublock Python

QUIZ Edublock Python

9th Grade

30 Qs

soal uh 9

soal uh 9

9th Grade - University

25 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

25 Qs

Seatwork #4

Seatwork #4

12th Grade - University

25 Qs

Arduino

Arduino

10th Grade - University

35 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?