Search Header Logo

CB30: Unit 3 Quiz Review

Computers

9th - 12th Grade

Used 21+ times

CB30: Unit 3 Quiz Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output if kangaroo is the input?

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an if-then statement used for?

When you need something to happen when the if condition is false

As a variable for a function

To allow programs to make decisions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can the following code be rewritten:

if (75 <= y <= 100):

if (75 <= y and <= 100):

if 75 <= y and <= 100):

if (75 <= y and y <= 100):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true when a is 4 and b is 8?

a < b and a == b

a < b and a != b

a > b or a == b

b <= a or a > b

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code could be rewritten using:

if (num1 == 17):

if ( num2 < 20):

not

or

and

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To test if x is less than or equal to y:

if (x __ y):

>

<

<=

>=

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For if statements to work in Python you must ________________ them.

indent

make decisions about

add an else to

use input commands with

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?