PYTHON CONDITIONALS Q3

PYTHON CONDITIONALS Q3

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

16 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is the correct way to write a nested if statement?

Back

Media Image

2.

FLASHCARD QUESTION

Front

What will be the output of the following code? Options: True, False, Error, None

Media Image

Back

True

3.

FLASHCARD QUESTION

Front

What does the following code output if a = 3 and b = 5? Options: a is greater, a is equal to b, a is smaller, Error

Media Image

Back

a is smaller

4.

FLASHCARD QUESTION

Front

What is the output of the following code? Options: True, False, Error, None

Media Image

Back

False

5.

FLASHCARD QUESTION

Front

What does the following code output if 'y = 0'? Options: True, False, Error, None

Media Image

Back

False

6.

FLASHCARD QUESTION

Front

What will the following code output if value = 100? Options: Non-zero value, Zero value, Error, None

Media Image

Back

Non-zero value

7.

FLASHCARD QUESTION

Front

What will the following code output if num = 5? Options: Less than 10, Greater than 0, Less than 10 and Greater than 0, 10 or more

Media Image

Back

Less than 10 and Greater than 0

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