Python Codehs
Quiz
•
Computers
•
7th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python code segment will display “Hello, world!” on the screen?
"Hello, world!"
print "Hello, world!"
print("Hello, world!")
display Hello, world!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python code display?
print("Hello")
print("World")
HelloWorld
Hello
World
Hello World
"Hello"
"World"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is the following variable?
x = "Hi there"
boolean
integer
float
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
x = "I am"
y = 6
z = "feet tall"
print(x)
print(y)
print(z)
I am6feet tall
I am 6 feet tall
I am
6
feet tall
x
y
z
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the variable x in the following Python program?
x = input("Enter a number from 1-10: ")
integer
float
string
The type cannot be determined
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
x = 9 + 6 / 3 * 2 - 1
print(x)
12
9
14
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used for exponentiation (exponents) in Python?
^
(( ))
**
%
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
12 questions
7 сынып 3тоқсан 1-2 сабак
Quiz
•
7th Grade
12 questions
H7.P1&P2.Nova2.Geluid.mhv
Quiz
•
4th - 10th Grade
10 questions
SC025: Control Structures Lecture Quiz
Quiz
•
12th Grade
10 questions
Search
Quiz
•
7th - 8th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
10 questions
Pengenalan HTML
Quiz
•
11th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
10 questions
First Form Software Graded Revision
Quiz
•
7th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
20 questions
Logos
Quiz
•
2nd - 8th Grade
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
18 questions
Company Logos
Quiz
•
6th - 8th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
