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

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
Tywania Griffin
Used 169+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
27
12
21
19
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final result of the expression 7 / 2 + 6?
0
9.5
9
0.875
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 • 1 pt
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 • 1 pt
What does the following program print?
a = "hi"
b = 4
c = a * b
print(class(c))
<class 'str'>
<class 'int'>
<class 'float'>
The program crashes and doesn’t print anything.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 • 1 pt
Choose the option that correctly prints out the variable(s).
x = "codehs"
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
Similar Resources on Quizizz
15 questions
Python and Algorithms

Quiz
•
12th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
21 questions
Basic Python Console Operations

Quiz
•
10th Grade - University
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
17 questions
Python Input and Arithmetic Quiz

Quiz
•
9th Grade - University
15 questions
Python Programming

Quiz
•
5th Grade - University
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University