
Python Codehs
Authored by Thomas Martinez
Computers
7th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
^
(( ))
**
%
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
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
10 questions
AI and Python: Ch.1 Revision
Quiz
•
9th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
15 questions
End of term assessment
Quiz
•
9th Grade
10 questions
TIN 10 - LẦN 1 - STVB 1
Quiz
•
10th Grade
15 questions
Quiz - Pengenalan Sistem Operasi
Quiz
•
12th Grade
10 questions
Internet
Quiz
•
7th - 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