Zybooks L2 Flashcards

1
Q

assignment statement

A

assigns a variable with a value, such as x = 5

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

= is not equals

A

In programming, = is an assignment of a left-side variable with a right-side value

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

incrementing the variable

A

Increasing a variable’s value by 1, as in x = x + 1
If x was originally 6, x is assigned with 6 + 1, or 7

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

identifier/ name

A

a sequence of letters (a-z, A-Z), underscores (_), and digits (0–9), and must start with a letter or an underscore.

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

reserved words/ keyword

A

words that are part of the language and cannot be used as a programmer-defined name (i.e. ‘and’, ‘true)

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

object

A

represents a value and is automatically created by the interpreter when executing a line of code. For example, executing x = 4 creates a new object to represent the value 4.

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

garbage collection

A

unused objects are automatically deleted to free up memory space, typically once printed

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

type()

A

built-in function finds the type of an object?

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