Python Codehs
Quiz
•
Computers
•
7th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
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
13 questions
Structured information_E
Quiz
•
6th - 12th Grade
8 questions
Sieci komputerowe
Quiz
•
6th - 12th Grade
15 questions
Computer Care and Safety
Quiz
•
7th Grade
10 questions
Kuis Hardware Komputer
Quiz
•
10th Grade
11 questions
Revision CHECKPOINT 2
Quiz
•
7th Grade
10 questions
IGCSE Comp Sci - Security revision
Quiz
•
9th - 11th Grade
10 questions
Arithmetic Operators in C
Quiz
•
12th Grade
10 questions
LIST - 1 - PYTHON 11
Quiz
•
11th 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
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Understanding Computer Systems and Components
Quiz
•
9th Grade
11 questions
The Importance and Uses of Presentation Software
Quiz
•
8th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
10 questions
Microsoft Word Ribbon basics
Quiz
•
3rd - 8th Grade
8 questions
Canadian History
Lesson
•
9th - 12th Grade
