
Python Quiz - Workbooks 1-5
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
r tingle
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to take user input in Python?
print()
input()
read()
write()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2variable
variable_name
variable-name
variable name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
num1 = 1
num2 = 1
total = num1 + num2
print (total)
4
8
2
16
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? x = 10 if x > 5: print("Greater than 5") else: print("5 or less")
5 or less
Greater than 5
Error
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code? x = int("10") + float("5.5") print(x)
15
15.5
TypeError
ValueError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the loop run in the following code? for i in range(5): print(i)
4
5
6
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to display output in Python?
print()
write()
output()
Both write and print
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
37 questions
Computer Terms
Quiz
•
6th - 12th Grade
35 questions
Code.org Unit 2 Web Development
Quiz
•
6th - 12th Grade
40 questions
MS office 2016
Quiz
•
1st Grade - Professio...
35 questions
Windows 10 Configuration
Quiz
•
1st - 10th Grade
40 questions
Business Letters
Quiz
•
9th - 10th Grade
40 questions
SCRATCH TEST 2
Quiz
•
9th - 12th Grade
40 questions
ICT-Department-Grade4-November
Quiz
•
4th Grade - University
35 questions
QUIS PTS TIK
Quiz
•
10th 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
