Chapter 2 Flashcards

1
Q

Arithmetic expression

A

An expression constructed using arithmetic operators and numbers

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

Assignment operator

A

=; assigns whatever is on the right side to the variable on the left side

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

Associativity

A

the associativity of arithmetic operators is said to be from left to right

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

Binary operator

A

an operator that has two operands

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

Cast operator

A

also known as type conversion or type casting - used to explicitly convert one data type to another data type

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

Character arithmetic

A

arithmetic operation on char data

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

Collating sequence

A

a predefined ordering for the characters in a set

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

Compound assignment statement

A

statements that are used to write simple assignment statements in a more concise notation

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

Computer program

A

A sequence of statements whose objective is to accomplish a task

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

Data type

A

A set of values together with a set of operations

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

Declaration statements

A

Statements that are used to declare things, such as variables

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

Decrement operator

A

–; decreases the value of a variable by 1

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

Double precision

A

Values of type double

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

Enumeration

A

A user-defined data type

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

Executable statements

A

statements that perform calculations, manipulate data, create output, accept input, and so on

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

Floating-point

A

A data type that deals with decimal numbers

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

Floating-point expression

A

An expression in which all operands in the expression are floating-point numbers

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

Floating-point notation

A

A form of scientific notation used to represent real numbers

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

Function

A

A collection of statements; when activated, or executed, it accomplishes something

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

Identifier

A

A C++ identifier consists of letters, digits, and the underscore character (_); it must begin with a letter or underscore

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

Implicit type coercion

A

When a value of one data type is automatically changed to another data type

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

Increment operator

A

++; increases the value of a variable by 1

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

Initialized

A

The first time a value is placed in the variable

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

Input statement

A

a statement that places data into variables using cin and&raquo_space;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Integral
a data type that deals with integers, or numbers, without a decimal part
26
Integral expression
an expression in which all operands are integers
27
Keyword
a reserved word
28
Mixed expression
an expression that has operands of different data types
29
Named constant
a memory location whose content is not allowed to change during program execution
30
Null string
a string containing no characters
31
Operands
numbers appearing in an arithmetic expression
32
Output statement
an output on the standard output device via cout and
33
Post-decrement
has the syntax variable--
34
Post-increment
has the syntax variable++
35
Pre-decrement
has the syntax ?-variable
36
pre-increment
has the syntax ++variable
37
precision
the maximum number of significant digits
38
predefined function
a function that is already written and provided as part of the system
39
preprocessor
a program that carries out preprocessor directives
40
programming
the process of planning and creating a program
41
programming language
a set of rules, symbols, and special words
42
prompt lines
executable statements that inform the user what to do
43
reserved words
also known as keywords - word symbols in a programming language that cannot be redefined in any program
44
run-together word
an identifier that is composed of two or more words that are combined without caps or underscores
45
self-documenting identifiers
identifiers that describe the purpose of the identifier through the name
46
semantic rules
rules that determine the meaning of the instructions
47
semantics
a set of rules that gives meaning to a language
48
simple assignment statement
a statement that uses only the assignment operator to assign values to the variable on the left side of the operator
49
simple data type
the variable or named constant of that type can store only one value at a time
50
single precision
values of type float
51
source code
consists of the preprocessor directives and program statements
52
source code file
a file containing source code
53
statement terminator
the semicolon
54
stream extraction operator
>>; takes information from a stream and puts it into a variable
55
stream insertion operator
56
string
a sequence of zero or more characters
57
syntax rules
rules that describe which statements are legal, or accepted by the programming language, and which are not legal
58
token
the smallest individual unit of a program written in any language
59
unary operator
an operator that has only one operand
60
variable
a memory location whose content may change during program execution
61
walk-through
the process of tracing values through a sequence