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

Quiz
•
Computers
•
12th Grade
•
Easy
Evan Jackson
Used 2+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
display Hello, world!
print("Hello, world!")
print "Hello, world!"
"Hello, world!"
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the following Python code display?
print("Hello")
print("World")
Hello
World
HelloWorld
Hello World
Hello
World
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What type is the following variable?
x = "Hi there"
float
integer
boolean
string
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the following Python program print?
x = "I am"
y = 6
z = "feet tall"
print(x)
print(y)
print(z)
I am 6 feet tall
I am6feet tall
I am
6
feet tall
x
y
z
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the type of the variable x in the following Python program?
x = input("Enter something: ")
string
integer
float
the type cannot be determined
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Suppose you run the following Python program:
x = input("Enter some text: ")
print(x)
While the program is running, after the prompt has been printed, the user types the following and presses Enter:
Delaware ratified the U.S. Constitution in 1787.
What does the program print?
Delaware ratified the U.S. Constitution in
Delaware
Delaware ratified the U.S. Constitution in 1787.
(The program does not print anything)
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does the following Python program print?
x = 9 + 6 / 3 * 2 - 1
print(x)
9
12
15
21
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Kiểu dữ liệu xâu kí tự trong Python

Quiz
•
10th Grade - University
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
22 questions
Python тілінде циклдар

Quiz
•
9th - 12th Grade
15 questions
Programming python review

Quiz
•
9th - 12th Grade
20 questions
Unit 3 Python TEST

Quiz
•
11th - 12th Grade
20 questions
Python String

Quiz
•
12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade