Python Unit 3 Review

Quiz
•
Computers
•
9th Grade
•
Medium

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
Similar Resources on Wayground
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
15 questions
CodeHS: Unit 6 - JavaScript Basics

Quiz
•
9th Grade
20 questions
Python (The Basics)

Quiz
•
6th - 10th Grade
17 questions
"switch" Java Statement - 1

Quiz
•
9th - 10th Grade
22 questions
IST CodeHS Unit 8 JavaScript Review

Quiz
•
9th - 12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade