
Python Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Dumbani Tunthuwa
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A storage location that can hold data
A mathematical function
A loop structure
A data abstraction technique
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is data abstraction?
A method of storing all data in memory
Hiding details of data to focus on relevant parts
Performing complex mathematical calculations
Writing complex algorithms without functions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the assignment operator (=) in Python?
To compare two values
To multiply two numbers
To assign a value to a variable
To divide two numbers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a string in Python?
"Hello World"
42
[1, 2, 3]
True
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following Python code output? print(5 + 10)
15
510
105
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator returns True only if both conditions are true?
or
not
and
else
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a nested conditional?
A conditional inside a loop
A conditional within another conditional
A loop within a function
A function with multiple arguments
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Python Fundamentals

Quiz
•
12th Grade
25 questions
8th Grade (Programming B)

Quiz
•
8th - 12th Grade
30 questions
Python L1 Programming Challenge

Quiz
•
1st - 12th Grade
30 questions
Python Arithmetic Operations and Predefined Functions

Quiz
•
9th - 12th Grade
30 questions
Micro:bit Introduction Quiz

Quiz
•
9th Grade - University
25 questions
HTML, CSS & JS

Quiz
•
11th - 12th Grade
25 questions
Python for Absolute Beginners

Quiz
•
8th - 12th Grade
22 questions
J277 - basic testing and errors

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade