Unit 5: Conditionals Review

Unit 5: Conditionals Review

9th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Conditionals Unit Quiz

Conditionals Unit Quiz

9th Grade - University

15 Qs

Python Basics - yr 9

Python Basics - yr 9

9th - 12th Grade

18 Qs

String Quiz

String Quiz

9th - 12th Grade

15 Qs

Basic Python Coding

Basic Python Coding

11th - 12th Grade

15 Qs

Loops

Loops

5th - 12th Grade

16 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

Python Basics & Syntax

Python Basics & Syntax

10th - 12th Grade

20 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Unit 5: Conditionals Review

Unit 5: Conditionals Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Jennifer Brockman

Used 29+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

What will be the output of this program?

0

5

True

nothing will print

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

0

5

True

Nothing will print

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?