p4e chapter 2. Flashcards

1
Q

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

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

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

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

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
6
Q

integer

A

A type that represents whole numbers

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

Keyword

A

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

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

mnemonic

A

A memory aid. We often give 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
9
Q

modulus operator

A

An operator, denoted with a % symbol 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
10
Q

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
11
Q

operator

A

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

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

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
13
Q

statement

A

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

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

string

A

A type that represents sequences of characters.

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

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).

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

value

A

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

17
Q

Variable

A

A name that refers to a value