Search Header Logo

Conditional Statements

Authored by Justus Gan

Information Technology (IT)

Professional Development

Used 1+ times

Conditional Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

In an IF statement, the expression is _ _ _ _ _ _ _ if the condition is false.

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

In an IF - ELSE statement if the condition is false, the indented expression under _ _ _ _ will be printed.

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

In an IF - ELIF - ELSE statement, the ELIF keyword allows you to check _ _ _ _ _ _ _ _ conditions.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Complete the following code to check if a number is positive

number is positive

number is more than zero

number > 0

number == > 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the output of the following code be?

num1 and num2 are equal

num1 is greater than num2

num2 is greater than num1

num1 is greater than num2

num2 is greater than num1

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?