Python Variables

Python Variables

Assessment

Flashcard

Computers

7th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a variable?

Back

A location in memory that we use to store data.

2.

FLASHCARD QUESTION

Front

What rule is the following variable name BREAKING: 1st_Name

Back

Only use text for the start of the variable name - no numbers at start

3.

FLASHCARD QUESTION

Front

The correct way to write a variable in Python? Options: my_variable = 10, my Variable = 10, myVariable is 10, myVariable: 10

Back

my_variable = 10

4.

FLASHCARD QUESTION

Front

What will this code output?
print("confusion")

Back

confusion

5.

FLASHCARD QUESTION

Front

What will this code output?
a = 4
b = 6
c = 1
d = 2
print(6 / d)

Back

3

6.

FLASHCARD QUESTION

Front

Assign a variable named high score with a value of 50

Back

high_score = 50

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?