
Python Quiz - Workbooks 1-5

Quiz
•
Computers
•
10th Grade
•
Hard
r tingle
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
38 questions
ThPT PTT 10

Quiz
•
10th Grade
38 questions
OCR J277 - 2.3 Defensive Design

Quiz
•
9th - 12th Grade
40 questions
Java Basics Review (And Strings)

Quiz
•
9th - 12th Grade
40 questions
Module 7 FundIT

Quiz
•
10th Grade
35 questions
Program Development - Python: Code Tracing

Quiz
•
8th - 10th Grade
39 questions
Python ((SHIFT))

Quiz
•
10th Grade
43 questions
Bài 4, 6 chủ đề F tin 10

Quiz
•
10th Grade
40 questions
AP Computer Science Principles Practice

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade