Search Header Logo

Python Unit 3 Review

Authored by Allyson Smith

Computers

9th Grade

Used 7+ times

Python Unit 3 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

15

12

27

19

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the final result of the expression 9/ 2 + 4?

0

8.5

7

1.5

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

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

print(name + " needs " + "num " + "books")

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

print(name + ": " + num)

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which one of the statements below will cause an error?

ans = "C at" * 6

ans = "Cat" + 9

ans = "cat" + "dog" + "cat"

ans = ("cat" * 3) + "dog"

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

<class 'str'>

<class 'float'>

catcat

The program crashes and doesn't print anything.

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

str

int

float

number

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Choose the option that correctly prints out the variable(s).

x = "summer" print(int(x))

apples = 4 print("apples")

name = "Jose"

age = 29

print(name + "is " + age)

month = "June" print("My favoorite month is " + month)

Access all questions and much more by creating a free account

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

Already have an account?