Variables Flashcards Preview

Intro to Python 2021 > Variables > Flashcards

Flashcards in Variables Deck (15)
Loading flashcards...
1
Q

Name that represents a value in the computer’s memory

A

Variable

2
Q

When a variable represents a value in the computers memory, we say that the variable ____ the value.

A

References

3
Q

You use an _____ to create a variable and make it reference a piece of data.

A

Assignment statement

4
Q

The = sign is known as the ____

A

Assignment operator

5
Q

Describe the following:

> > > width = 10 [Enter]

A

The statement creates a variable named width and assigns it the value 10

6
Q

When the variable begins with lowercase letters and the first character of the second and subsequent words is written in uppercase

A

camelCase

7
Q

Process in which the Python interpreter automatically removes a value in a memory that is no longer reference by a variable

A

Garbage collection

8
Q

Used to categorize values in memory

A

Data types

9
Q

When an integer is stored in memory, it is classified as an ___

A

int

10
Q

When a real number is stored in memory, it is classified as a ___

A

float

11
Q

A number that is written into a programs code

A

Numeric literal

12
Q

What is the program output?

> > > first_name = Bob
last_name = Jones
print(first_name, last_name)

A

Bob Jones

13
Q

The ____ function always returns the user’s input as a string, even if the user enters numeric data.

A

input

14
Q

A function that is defined within another function

A

Nested function

15
Q

Any hypothetical person that is using a program and providing input for it

A

User or end user