Python Chapter
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following string:
h = "Hello", which code results in an error?
print (h)
print(h.lower())
h = 's'
print(h+1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
Good Bye
Welcome
An error message
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the input() function return?
an integer value
a string value
a float value
all of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after the following code is run?
19
20
21
22
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statements evaluate True and without errors?
"unbothered".isupper()
"Monroe High School".istitle()
5.isdigit()
"animal".islower()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement sets the variable t to a value of "Total Credits: 25"?
t = "Total Credits:" + 25
t = "Total Credits:" + str(25)
t = input("Total Credits:" + str(25))
print("Total Credits", "25")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is "print" used for?
To input
To make strings
To display output
Non of the above
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
16 questions
ICT 9 Q4 M5
Quiz
•
9th Grade
15 questions
PSU Quiz
Quiz
•
10th Grade
20 questions
Typing words on keyboard (musical instruments)
Quiz
•
KG - Professional Dev...
20 questions
Python Function - 3
Quiz
•
12th Grade
16 questions
Data, Information, Knowledge Yr12-1
Quiz
•
12th Grade
15 questions
TTS2233 Chapter 1
Quiz
•
8th - 10th Grade
20 questions
Quiz Analisis Data
Quiz
•
10th Grade
15 questions
Data Collection
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
