Variables Flashcards

1
Q

Name that represents a value in the computer’s memory

A

Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

References

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Assignment statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The = sign is known as the ____

A

Assignment operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the following:

> > > width = 10 [Enter]

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Used to categorize values in memory

A

Data types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A number that is written into a programs code

A

Numeric literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the program output?

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

A

Bob Jones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A function that is defined within another function

A

Nested function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

User or end user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly