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
What does this program print?
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 Wayground
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
20 questions
AQA GCSE Computer Science Paper 1

Quiz
•
9th - 11th Grade
13 questions
Python Recap Challenge

Quiz
•
10th Grade
20 questions
latihan analisis data

Quiz
•
9th - 12th Grade
15 questions
G8 Practice PC

Quiz
•
12th Grade
15 questions
LA1.C1: Introduction to Small Basic

Quiz
•
9th Grade
22 questions
Java Program Parts

Quiz
•
9th Grade
15 questions
G10 CS String Manipulation

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade