Search Header Logo

Q2 PYTHON CONDITIONALS

Authored by Darwin Vargas

Computers

University

Used 10+ times

Q2 PYTHON CONDITIONALS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

GREATER

SMALLER

ERROR

NONE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code evaluate to?

EVEN

ODD

NONE

ERRO

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to check multiple conditions in Python?

elif

elseif

else if

ifelse

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

GREATER

EQUAL

SMALLER

NONE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code evaluate to?

GREATER

EQUAL

SMALLER

ERROR

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will cause a syntax error?

if x > 5:

if (x > 5):

if x > 5

if x > 5: print("Greater")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

TRUE

FALSE

ERROR

NONE

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?

Discover more resources for Computers