Chap 2 (Variables) Flashcards

Develop Python Programming Language

1
Q

Define Assignment

A

A statement that assigns a value to a variable.

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

Define Concatenate

A

To join two operands end to end.

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

Define Comment

A

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.

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

Define Evaluate

A

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

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

Define Expression

A

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

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

Define Floating Point

A

A type that represents numbers with fractional parts.

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

Define Integer

A

A type that represents whole numbers.

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

Define Keyword

A

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

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

Define Mnemonic

A

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

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

Define Modulus Operator

A

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

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

Define Operand

A

One of the values on which an operator operates.

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

Define Operator

A

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

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

Define Rules of Precedence

A

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

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

Define Statement

A

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

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

Define String

A

A type that represents sequences of characters.

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

Define Type

A

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

17
Q

Define Value

A

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

18
Q

Define Variable

A

A name that refers to a value.