CS Principles - Unit 3 Quiz

CS Principles - Unit 3 Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

ASK T3-STRUKTUR KOD ARAHAN

ASK T3-STRUKTUR KOD ARAHAN

9th Grade

15 Qs

Subroutines

Subroutines

9th - 11th Grade

25 Qs

CPModule 3 Making Decisions

CPModule 3 Making Decisions

9th - 12th Grade

25 Qs

C++ Pointers Quiz

C++ Pointers Quiz

11th Grade

15 Qs

Latihan Soal USP Informatika

Latihan Soal USP Informatika

9th Grade

20 Qs

Java and game maker conditional statements review

Java and game maker conditional statements review

9th - 12th Grade

22 Qs

CodeHS Functions and Return Values

CodeHS Functions and Return Values

9th - 12th Grade

15 Qs

Unit 4 Test JS

Unit 4 Test JS

9th - 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?