CPModule 3 Making Decisions

CPModule 3 Making Decisions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

Programming: Which Loop?

Programming: Which Loop?

9th - 12th Grade

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

2324tx6

2324tx6

9th - 12th Grade

20 Qs

BAI 26 + 27 TIN 10c1

BAI 26 + 27 TIN 10c1

10th Grade

20 Qs

GAD Review - Game Industry

GAD Review - Game Industry

9th - 12th Grade

22 Qs

Network topologies

Network topologies

8th Grade - University

20 Qs

CMU quiz

CMU quiz

7th - 9th Grade

20 Qs

CPModule 3 Making Decisions

CPModule 3 Making Decisions

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Marcia Bernas

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 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.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Consider the following code:


word = "kangaroo"


if (word == "KANGAROO"):

print ("TRUE")

else:

print ("FALSE")


What is output?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

if (90 < = x <= 100)


it should be rewritten as:

if (90 < = x <= 100):

if (90 < = x and <= 100):

if (90 < = x and x <= 100):

Nothing, the if statement is correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code could be rewritten using:

if (x > 12):

if (x < 34):

not

or

and

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if num1 and num2 are NOT the same.

if (num1 != num2 )

if (num1 == num2 )

if (num1 = num2)

if (num1 < num2 )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Both conditions must be true

and

!=

or

==

not

Create a free account and access millions of resources

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?