What does this program print?
Unit 5: Conditionals Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jennifer Brockman
Used 29+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Must be red
Must be green
I like skittles
Green is the best
Must be green
Green is the best
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you round the number held in the variable euler to 2.71?
euler = 2.71828
round(euler, 2)
round(euler)
round(euler, 3)
round(3, euler)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why should you use round when you compare two numbers that have type float?
If you don’t, Python will only compare the whole part and discard the decimal part.
Sometimes numbers can be rounded in unexpected ways based on how Python computes them. Therefore, it is best to use round in order to make sure both numbers are rounded the same way.
You should always use round when you compare two numbers, even if they are of type int.
You don’t have to, but it’s good style. All of the comparisons will still work out the same way.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print to the screen when the following program is run?
<type 'int'>
<type 'float'>
<type 'bool'>
<type 'str'>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print to the screen when the following program is run?
<type 'int'>
<type 'float'>
<type 'bool'>
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this program?
0
5
True
nothing will print
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0
5
True
Nothing will print
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
15 questions
Unit 4 Conditionals Assignment

Quiz
•
11th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Unit 3 Python TEST

Quiz
•
11th - 12th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st 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