
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
60 questions
midterm test programming

Quiz
•
9th - 12th Grade
62 questions
Ôn Tập Python Cơ Bản

Quiz
•
11th Grade
68 questions
Computer science Study Guide

Quiz
•
9th - 12th Grade
68 questions
On_HK2_Python_M11

Quiz
•
11th Grade
62 questions
Net+ 10.4 Switch Security

Quiz
•
11th Grade
70 questions
ID and Access Management

Quiz
•
10th Grade - University
68 questions
ôn giữa kì 11

Quiz
•
11th Grade
62 questions
Câu hỏi về lập trình

Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade