Python Variables

Python Variables

Assessment

Flashcard

Computers

7th - 12th Grade

Easy

Created by

Noha Bayoumi

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

8 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 symbol is used in python to assign values to a variable?

Back

=

3.

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

4.

FLASHCARD QUESTION

Front

What rule is the variable name 'StudentNo.' breaking?

Back

No special symbols other than the underscore

5.

FLASHCARD QUESTION

Front

What is the variable name in the following script?

Media Image

Back

name

6.

FLASHCARD QUESTION

Front

Meaningful name for keeping a record of someone's high score? Options: s, hs, score, highScore

Back

highScore

7.

FLASHCARD QUESTION

Front

Looking at the following code, what are the names of the variables: Options: TotalBill, No_Diners, Share, Total_Bill, No_Diners, Share, print, format, input, float, int, input

Media Image

Back

Total_Bill, No_Diners, Share

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?