Search Header Logo

CS Python Fundamentals Unit 3 Review

Authored by Scott Chamberlain

Computers

9th - 12th Grade

Used 28+ times

CS Python Fundamentals Unit 3 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

Which statement in Python is used to test for multiple conditions of a boolean statement?

else if

elif

elseIf

elsif

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the problem with the following block of code?

== should be =

missing endif after the last print

missing : after else

choice should be "choice"

3.

MULTIPLE SELECT QUESTION

45 sec • 3 pts

Select ALL of the following statements that are TRUE about ALL algorithms:

Algorithms only apply to number calculations

Algorithm instructions must be in a specific order

Algorithms must be written in full sentences

Algorithms should run in a finite amount of time

Algorithms must produce a desired result

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement requires all parts to be true in order to become true?

and

or

not

else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

For what value of x would the following block of code print "Great"?

1

10

9

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if the number in the variable num1 is less than or equal to 10.

if (num1 < 10):

if (num1 <= 10):

if (num1 >= 10):

if ("num1" <= 10):

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if the number 99 is stored in the variable var1:

if ( var1 == "99"):

if (str(var1) == 99):

if (“var1” == 99):

if (var1 == 99):

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?