Which Python code segment will display “Hello, world!” on the screen?

CodeHS Python Unit 3 Review

Quiz
•
Computers
•
7th - 12th Grade
•
Medium
Elizabeth Houston
Used 22+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"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
Similar Resources on Wayground
10 questions
Python Variables

Quiz
•
7th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
15 questions
Grade 12-Python selection&iteration

Quiz
•
11th - 12th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
10 questions
Year 7 Python Lesson 1 Recap

Quiz
•
8th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade