CPModule 3 Making Decisions

CPModule 3 Making Decisions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

Sets

Sets

11th Grade

21 Qs

TestJava65_01

TestJava65_01

12th Grade

20 Qs

EMPOWERMENT ONLINE QUIZ BEE 2

EMPOWERMENT ONLINE QUIZ BEE 2

11th Grade

20 Qs

Bài tập về chương trình con

Bài tập về chương trình con

11th Grade

20 Qs

مراجعة-علوم الحاسب-نهاية ف2

مراجعة-علوم الحاسب-نهاية ف2

11th Grade

20 Qs

PTS PWPB Kelas 11 Sem 1

PTS PWPB Kelas 11 Sem 1

11th Grade

21 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

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?