Python Programming Basics

Python Programming Basics

Assessment

Flashcard

Computers

1st Grade

Easy

Created by

Adham Elmuntser

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Correct syntax for an if statement in Python.

Back

B. if x == 5

2.

FLASHCARD QUESTION

Front

Checking if two variables are equal in Python.

Back

A. x == y

3.

FLASHCARD QUESTION

Front

Output of the following code: x = 5; if x > 3: print("Hello"); else: print("Goodbye")

Back

A. Hello

4.

FLASHCARD QUESTION

Front

Operator used to combine multiple conditions in an if statement.

Back

A. and

5.

FLASHCARD QUESTION

Front

Value of x after the following code: x = 10; x += 5

Back

B. 15

6.

FLASHCARD QUESTION

Front

Correct way to check if a variable is in a list.

Back

B. if x in [1, 2, 3]

7.

FLASHCARD QUESTION

Front

Output of the following code: x = 7; y = 3; print(x % y)

Back

C. 1

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?