CodeHS Python Unit 3 Review

CodeHS Python Unit 3 Review

7th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Codehs

Python Codehs

7th - 12th Grade

10 Qs

Introduction to Python

Introduction to Python

9th Grade

10 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Basic Python Coding

Basic Python Coding

11th - 12th Grade

15 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

CodeHS Python Variables

CodeHS Python Variables

7th - 12th Grade

10 Qs

CodeHS Python Unit 3 Review

CodeHS Python Unit 3 Review

Assessment

Quiz

Computers

7th - 12th Grade

Medium

Created by

Elizabeth Houston

Used 22+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?