
Python Programming Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Daniel Bonilla Poveda
Used 3+ times
FREE Resource
Enhance your content in a minute
71 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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
68 questions
Asah Otak IF_09_01
Quiz
•
9th Grade - University
76 questions
IT fundamentals Practice quiz 1
Quiz
•
11th Grade
72 questions
Ôn tập học kì 1
Quiz
•
11th Grade - University
70 questions
DATA OPERATIONS TEST
Quiz
•
10th - 11th Grade
73 questions
Standards and Concepts Review
Quiz
•
11th Grade
72 questions
PLTW IED Sem 1 Review
Quiz
•
9th - 12th Grade
67 questions
El interior del ordenador
Quiz
•
9th - 11th Grade
74 questions
PRETEST 10
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
