Python Variables

Python Variables

Assessment

Flashcard

Computers

7th - 12th Grade

Hard

Created by

Noha Bayoumi

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?

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

Back

Total_Bill, No_Diners, Share

8.

FLASHCARD QUESTION

Front

The correct way to write a variable in Python?

Back

myVariable = 10