Q2 PYTHON CONDITIONALS

Q2 PYTHON CONDITIONALS

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will be the output of the following code?

Media Image

Back

GREATER

2.

FLASHCARD QUESTION

Front

What does the following code evaluate to? Options: EVEN, ODD, NONE, ERRO

Media Image

Back

ODD

3.

FLASHCARD QUESTION

Front

Which keyword is used to check multiple conditions in Python?

Back

elif

4.

FLASHCARD QUESTION

Front

What will be the output of the following code?

Media Image

Back

EQUAL

5.

FLASHCARD QUESTION

Front

What does the following code evaluate to? Options: GREATER, EQUAL, SMALLER, ERROR

Media Image

Back

EQUAL

6.

FLASHCARD QUESTION

Front

Which of the following will cause a syntax error? if x > 5: if (x > 5): if x > 5 if x > 5: print("Greater")

Back

if x > 5

7.

FLASHCARD QUESTION

Front

What will be the output of the following code? Options: TRUE, FALSE, ERROR, NONE

Media Image

Back

TRUE

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