Python Print Statements and Operators Review

Python Print Statements and Operators Review

9th Grade

20 Qs

quiz-placeholder

Similar activities

Meats Review

Meats Review

9th - 12th Grade

19 Qs

Name the Harry Potter Characters

Name the Harry Potter Characters

KG - University

18 Qs

Holiday Trivia

Holiday Trivia

9th Grade - University

20 Qs

PLTW - IED - Reverse Engineering and the 3 Analyses

PLTW - IED - Reverse Engineering and the 3 Analyses

9th - 12th Grade

20 Qs

The Video game quiz

The Video game quiz

KG - University

21 Qs

College Degrees Recap

College Degrees Recap

9th - 12th Grade

15 Qs

Food Allergies

Food Allergies

6th - 12th Grade

16 Qs

2.01 MAWD Quiz A

2.01 MAWD Quiz A

9th Grade - University

23 Qs

Python Print Statements and Operators Review

Python Print Statements and Operators Review

Assessment

Quiz

Specialty

9th Grade

Hard

Created by

JASON SAMMONS

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the final result of the expression 4 + 5 * 3?

27

12

21

19

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the final result of the expression 7 / 2 + 6?

0

9.5

9

0.875

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Choose the print statement below that will cause an error. Assume that num has the value 6, and name has the value "Isabella".

print(name + ":")

print(num)

print(name + " wants " + "num " + "candies")

print(name + ": " + str(num))

print(name + ": " + num)

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which one of the statements below will cause an error?

ans = "hi" * 8

ans = "hi" + 9

ans = "hi" + "hi" + "hi"

ans = ["a" * 4] + "b"

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What does the following program print? a = "hi" b = 4 c = a * b print(type(c))

The program crashes and doesn’t print anything.

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Suppose you have a variable defined a = "4". What is the variable type of a?

str

int

float

number

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Choose the option that correctly prints out the variable(s). x = "codesh" print(int(x)) num = 8 print("num") name = "Alyx" age = 32 print(name + " is " + age) language = "Python" print("I'm learning " + language)

x = "codesh" print(int(x))

num = 8 print("num")

name = "Alyx" age = 32 print(name + " is " + age)

language = "Python" print("I'm learning " + language)

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?