
Python
Quiz
•
Other
•
10th Grade
•
Practice Problem
•
Medium
Prasoon Jha
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a boolean expression?
True
3 == 4
3 + 4 == 7
3 + 4
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following code print?
Output a
Output b
Output c
It will cause an error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to execute a block of code if the condition in the if statement is false?
else
elif
while
for
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the elif statement in Python?
To execute a block of code if the previous conditions are false
To define a loop
To perform arithmetic operations
To exit from a loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code snippet print?
apple banana cherry
[“apple”, “banana”, “cherry”]
0 1 2
No output
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of following code?
25
7
2.5
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in Python?
function myFunction():
def myFunction():
create myFunction():
function: myFunction():
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
6 questions
Captain America
Quiz
•
KG - Professional Dev...
14 questions
Chapter 1 Vocab
Quiz
•
9th - 12th Grade
13 questions
Level 3 AE06
Quiz
•
1st - 11th Grade
15 questions
US Government and the Economy
Quiz
•
10th Grade
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
10 questions
5. Decision Making to Improve Financial Performance
Quiz
•
8th - 10th Grade
10 questions
First Day Quiz
Quiz
•
9th - 12th Grade
10 questions
Money talk
Quiz
•
10th - 12th Grade
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
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
