
Python Programming Quiz

Quiz
•
Computers
•
11th Grade
•
Hard
Daniel Bonilla Poveda
Used 2+ times
FREE Resource
65 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? x = 10 y = 5 print(x - y)
A) 5
B) 15
C) 50
D) 10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a basic data type in Python?
A) List
B) Tuple
C) String
D) Function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'if' statement do in programming?
A) Loops through code
B) Makes decisions based on conditions
C) Initializes variables
D) Defines a function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a for loop in programming?
A) To make decisions based on conditions
B) To repeat a block of code multiple times
C) To define functions
D) To break out of a loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid conditional operator in Python?
A) ==
B) >=
C) <<
D) !=
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 7 / 3 in Python?
A) 2
B) 2.33
C) 2.5
D) 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a function in Python?
def
function
method
declare
Create a free account and access millions of resources
Similar Resources on Wayground
63 questions
CSS

Quiz
•
10th Grade - University
64 questions
ôn tập cuối kì 1 k11 22-23

Quiz
•
11th Grade
61 questions
Trắc nghiệm tin 10 - Đồ họa - Python

Quiz
•
11th Grade
60 questions
Информатика

Quiz
•
11th Grade
60 questions
ағымдық Ляззат апай

Quiz
•
11th Grade
65 questions
ÔN TẬP TIN 11 ICT GK2

Quiz
•
11th Grade
60 questions
AQA GCSE Algorithms

Quiz
•
9th - 11th Grade
60 questions
Python Review

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