More Python Conditionals

More Python Conditionals

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is the correct way to check if x is even? if x / 2 == 0:, if x / 2 == 0:, if x % 2 == 0:, if x % 2 = 0:

Back

if x % 2 == 0:

2.

FLASHCARD QUESTION

Front

Which of the following is the correct way to check if x is divisible by 10? if x / 10 == 0:, if x // 10 = 0:, if x % 10 == 0:, if x % 10 = 0:

Back

if x % 10 == 0:

3.

FLASHCARD QUESTION

Front

Which of the following is the correct way to check if x and y are both positive? Options: if x and y > 0:, if x, y > 0:, if x > 0 and y > 0:, if x > 0, y > 0:

Back

if x > 0 and y > 0:

4.

FLASHCARD QUESTION

Front

Which of the following is the correct way to check if the variable choice is the string "yes"? Options: if choice == "yes":, if choice == yes:, if choice = "yes":, if choice == yes:

Back

if choice == "yes":

5.

FLASHCARD QUESTION

Front

What is output when the code runs? Options: C, B, A, C, B, C, D, C, B

Media Image

Back

C, B

6.

FLASHCARD QUESTION

Front

What is output when the code runs? Options: B, A, C, D

Media Image

Back

B

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?