CPModule 3 Making Decisions

CPModule 3 Making Decisions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Ujian Teori XI PPLG SMK N 2 Padang

Ujian Teori XI PPLG SMK N 2 Padang

11th Grade

20 Qs

XI C- Quiz - Lesson 10 - 14

XI C- Quiz - Lesson 10 - 14

12th Grade

20 Qs

ALAM NG ICT 2 YAN!

ALAM NG ICT 2 YAN!

11th Grade

20 Qs

Functions in C++

Functions in C++

11th Grade

20 Qs

9.1 Homework #3

9.1 Homework #3

9th Grade

20 Qs

PH SIMKMDIG KD 3.1 Menerapkan Logika dan Algoritma Komputer

PH SIMKMDIG KD 3.1 Menerapkan Logika dan Algoritma Komputer

1st - 10th Grade

20 Qs

Visual Basic Assessment

Visual Basic Assessment

11th - 12th Grade

21 Qs

Penilaian Akhir Semester (PAS) Pemrograman Web dan PPL

Penilaian Akhir Semester (PAS) Pemrograman Web dan PPL

12th 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

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?