Chapter 2 Flashcards

1
Q

describes data that consists of numbers and can be used in arithmetic operations.

A

Numeric

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

describes data that is non numeric.

A

String

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

a whole number in code.

A

integer

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

a number with decimal places

A

floating-point

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

floating-point numbers

A

Real numbers

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

a specific numeric value

A

numeric constant

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

a specific group of characters enclosed within quotation marks

A

string constant

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

can contain alphabetic characters, numbers, and punctuation.

A

Alphanumeric values

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

a literal numeric or string value.

A

unnamed constant

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

a statement that provides a data type, an identifier, and, optionally, an initial value.

A

declaration

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

a variable that can hold digits, have mathematical operations performed on it, and usually can hold a decimal point and a sign indicating positive or negative.

A

numeric variable

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

can hold text that includes letters, digits, and special characters such as punctuation marks.

A

string variable

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

is the feature of some programming languages that prevents assigning values of an incorrect data type.

A

type-safety

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

a program component’s name.

A

identifier

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

the steps that are repeated for each set of input data of a program.

A

Detail loop tasks

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

hold the steps you take at the end of the program to finish the application.

A

End-of-job tasks

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

a diagram that illustrates modules’ relationships to each other.

A

hierarchy chart

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

written explanations that are not part of the program logic but that serve as documentation for those reading the program.

A

program comments

19
Q

documentation within a coded program.

A

Internal documentation

20
Q

documentation that is outside a coded program.

A

External documentation

21
Q

contains information that expands on what appears in another flowchart symbol; it is most often represented by a three-sided box that is connected to the step it references by a dashed line.

A

annotation symbol

22
Q

programs that contain meaningful identifiers that describe their purpose.

A

Self-documenting

23
Q

a list of every variable name used in a program, along with its type, size, and description.

A

data dictionary

24
Q

a variable that you use to hold intermediate results during a program’s execution.

A

temporary variable (or work variable)

25
a message that is displayed on a monitor to ask the user for a response and perhaps explain how that response should be formatted.
prompt
26
the act of repeating input back to a user either in a subsequent prompt or in output.
Echoing input
27
An expression that is either true or false.
Boolean Expression.
28
True and False belong to the class ______
bool
29
x != y means....
x is not equal to y
30
x >= y means...
x is greater than or equal to y
31
what sign is used to signify that two items are equal in python?
==
32
The three logical operators in python.
and or not
33
When the evaluation of a logical expression stops because the overall value is already known, it is called ____________ the evaluation.
Short-Circuiting
34
The sequence of statements within a compound statement.
body
35
An expression whose value is either True or False.
boolean expression
36
One of the alternative sequences of statements in a conditional statement.
branch
37
A conditional statement with a series of alternative branches.
chained conditional
38
A statement that controls the flow of execution depending on some condition.
conditional statement
39
A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.
compound statement
40
Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior.
guardian pattern
41
One of the operators that combines boolean expressions: and, or, and not.
logical operator
42
A conditional statement that appears in one of the branches of another conditional statement.
nested conditional
43
A list of the functions that are executing, printed when an exception occurs.
traceback
44
When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the expression without needing to evaluate the rest of the expression.
short circuit