Chapter 2 - Variables Flashcards

1
Q

A statement that assigns a value to a variable.

A

Assignment

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

To join two operands end to end.

A

Concatenate

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

Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.

A

Comment

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

To simplify an expression by performing the operations in order to yield a single value.

A

Evaluate

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

A combination of variables, operators, and values that represents a single result value.

A

Expression

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

A type that represents numbers with fractional parts.

A

Floating Point

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

A type that represents whole numbers.

A

Integer

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

A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as variable names.

A

Keyword

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

A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable.

A

Mnemonic

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

An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.

A

Modulus Operator

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

One of the values on which an operator operates.

A

Operand

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

A special symbol that represents a simple computation like addition, multiplication, or string concatenation.

A

Operator

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

The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.

A

Rules of Precedence

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

A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement.

A

Statement

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

A type that represents sequences of characters.

A

String

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

A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).

A

Type

17
Q

One of the basic units of data, like a number or string, that a program manipulates.

A

Value

18
Q

Variable

A

A name that refers to a value.