Python Unit 3 Review

Python Unit 3 Review

9th Grade

20 Qs

quiz-placeholder

Similar activities

CodeHS: Unit 6 - JavaScript Basics

CodeHS: Unit 6 - JavaScript Basics

9th Grade

15 Qs

Python (The Basics)

Python (The Basics)

6th - 10th Grade

20 Qs

CSE_CodeHS_intro_python_unit_3_5

CSE_CodeHS_intro_python_unit_3_5

9th - 12th Grade

15 Qs

Python Variables and Properties

Python Variables and Properties

9th - 12th Grade

16 Qs

CodeHS - Intro to Python - Basics and Console Interaction

CodeHS - Intro to Python - Basics and Console Interaction

9th Grade - Professional Development

20 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Python Unit 3 Review

Python Unit 3 Review

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Allyson Smith

Used 7+ times

FREE Resource

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)

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?