
Python Programming Quiz

Quiz
•
Computers
•
7th Grade
•
Medium
Clarisa Guinto
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to display output in Python?
display()
show()
print()
output()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which character is used to insert a newline in Python output?
\t
\n
\r
\b
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of the 'end' parameter in the print function?
None
'\n'
'\t'
' '
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to format a string using f-strings?
print(f'Value: {value}')
print('Value: {value}')
print('Value: %s' % value)
print('Value: {0}' % value)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to represent whole numbers in Python?
float
int
str
bool
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an immutable data type in Python?
list
tuple
set
dict
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to accept user input in Python?
get()
scan()
read()
input()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python list, if

Quiz
•
6th - 12th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
25 questions
Introduction to Python

Quiz
•
KG - University
20 questions
Exploring Python Basics Quiz

Quiz
•
7th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Ch.8 - Introducing Python

Quiz
•
6th Grade - Professio...
30 questions
Python Programming Test 2

Quiz
•
7th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade