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
Q

Integral

A

a data type that deals with integers, or numbers, without a decimal part

26
Q

Integral expression

A

an expression in which all operands are integers

27
Q

Keyword

A

a reserved word

28
Q

Mixed expression

A

an expression that has operands of different data types

29
Q

Named constant

A

a memory location whose content is not allowed to change during program execution

30
Q

Null string

A

a string containing no characters

31
Q

Operands

A

numbers appearing in an arithmetic expression

32
Q

Output statement

A

an output on the standard output device via cout and

33
Q

Post-decrement

A

has the syntax variable–

34
Q

Post-increment

A

has the syntax variable++

35
Q

Pre-decrement

A

has the syntax ?-variable

36
Q

pre-increment

A

has the syntax ++variable

37
Q

precision

A

the maximum number of significant digits

38
Q

predefined function

A

a function that is already written and provided as part of the system

39
Q

preprocessor

A

a program that carries out preprocessor directives

40
Q

programming

A

the process of planning and creating a program

41
Q

programming language

A

a set of rules, symbols, and special words

42
Q

prompt lines

A

executable statements that inform the user what to do

43
Q

reserved words

A

also known as keywords - word symbols in a programming language that cannot be redefined in any program

44
Q

run-together word

A

an identifier that is composed of two or more words that are combined without caps or underscores

45
Q

self-documenting identifiers

A

identifiers that describe the purpose of the identifier through the name

46
Q

semantic rules

A

rules that determine the meaning of the instructions

47
Q

semantics

A

a set of rules that gives meaning to a language

48
Q

simple assignment statement

A

a statement that uses only the assignment operator to assign values to the variable on the left side of the operator

49
Q

simple data type

A

the variable or named constant of that type can store only one value at a time

50
Q

single precision

A

values of type float

51
Q

source code

A

consists of the preprocessor directives and program statements

52
Q

source code file

A

a file containing source code

53
Q

statement terminator

A

the semicolon

54
Q

stream extraction operator

A

> > ; takes information from a stream and puts it into a variable

55
Q

stream insertion operator

A
56
Q

string

A

a sequence of zero or more characters

57
Q

syntax rules

A

rules that describe which statements are legal, or accepted by the programming language, and which are not legal

58
Q

token

A

the smallest individual unit of a program written in any language

59
Q

unary operator

A

an operator that has only one operand

60
Q

variable

A

a memory location whose content may change during program execution

61
Q

walk-through

A

the process of tracing values through a sequence