Python- Codehs 2021 Exam Review

Python- Codehs 2021 Exam Review

Assessment

Flashcard

Computers

KG - Professional Development

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

66 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which Python code segment will display “Hello, world!” on the screen? Options: display Hello, world!, print("Hello world!"), print("Hello, world!"), "Hello, world!"

Back

print("Hello, world!")

2.

FLASHCARD QUESTION

Front

What does the following Python code display?
print("Hello")
print("World")

Back

Hello
World

3.

FLASHCARD QUESTION

Front

What type is the following variable?
x = "Hi there"

Back

string

4.

FLASHCARD QUESTION

Front

What does the following Python program print?
x = "I am"
y = 6
z = "feet tall"
print(x)
print(y)
print(z)

Back

I am
6
feet tall

5.

FLASHCARD QUESTION

Front

What is the type of the variable x in the following Python program?
x = input("Enter something: ")

Back

string

6.

FLASHCARD QUESTION

Front

What does the following Python program print after the user inputs "Delaware ratified the U.S. Constitution in 1787."?
x = input("Enter some text: ")
print(x)

Back

Delaware ratified the U.S. Constitution in 1787.

7.

FLASHCARD QUESTION

Front

What does the following Python program print?
x = 9 + 6 / 3 * 2 - 1
print(x)

Back

12

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?