CS Principles - Unit 3 Quiz

CS Principles - Unit 3 Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Year 8 Python Assessment

Year 8 Python Assessment

9th - 10th Grade

21 Qs

IST P-STEM Unit 1 Hardware and Python Review

IST P-STEM Unit 1 Hardware and Python Review

8th - 12th Grade

20 Qs

Test 3 Review

Test 3 Review

9th - 12th Grade

25 Qs

Code.org CSP Unit 4 Review

Code.org CSP Unit 4 Review

9th - 12th Grade

16 Qs

Python

Python

6th - 10th Grade

17 Qs

Code.org Unit 5 Lesson 15 Assessment

Code.org Unit 5 Lesson 15 Assessment

9th - 12th Grade

15 Qs

Big Idea 3

Big Idea 3

9th - 12th Grade

15 Qs

Python elif and Nested if

Python elif and Nested if

12th Grade

15 Qs

CS Principles - Unit 3 Quiz

CS Principles - Unit 3 Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Courtney Stenzhorn

Used 27+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When do you use an else statement?

To tell what will happen when an if-statement is false

To end an IF statement

To handle string values

To input a variable

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Select all the mistakes (there may be more than one) in the following:

The = should be ==

elseif should be elif

there is no end if

The else should have a :

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT true about all algorithms?

All algorithms can only do number calculations.

All algorithms have clear instructions.

All algorithms stop in a finite amount of time.

All algorithms have an order.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The following code could be rewritten using:

not

or

and

none of the answers

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When should you use an ELIF statement?

To repeat sections of code

To make a follow-up True/False decision

To counter user actions

To get user input

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Write the code to test if the number in the variable text1 is greater than 15.

if (text1 > "15"):

if (text1 < "15"):

if (text1 >= 15):

if (text1 > 15):

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Write the code to test if the number 78 is stored in the variable text1:

if (text1 == "78"):

if (str(text1) == 78):

if (text1 == 78):

if ("text1" == 78):

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?