Ch 2 Flashcards

1
Q

source code

A
  • code written in high level language
  • consists of preprocessor directives and program statements
  • source program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

preprocessor

A
  • program that carries out preprocessor directives

- program that processes statements in a C++ program that begin with a #

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

keyword

A

reserved word

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

walk-through

A

the process of tracing values through a sequence

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

variable

A

memory location whose content may change during program execution

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

unary operator

A

operator with only one operand

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

token

A

smaller individual unit of a program written in any language

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

syntax rules

A

rules that describe which statements are legal/accepted by the programming language as well as what is not legal

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

string

A

sequence of 0 or more characters

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

stream insertion operator

A

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

stream extractor operator

A

”»”

takes information out of the stream and inputs it into a variable

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

statement terminator

A

semi colon

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

source code file (source file)

A

file containing the source code

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

single precision

A

values of the type “float”

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

simple data type

A

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

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

simple assignment statement

A

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

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

semantics

A

set of rules that give meaning to a language

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

semantic rules

A

rules that determine the meaning of the instructions

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

self-documenting identifiers

A

identifiers that describe the purpose of the identifier through the name

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

run-together word

A

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

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

reserved words

A

keywords

- word symbols in a programming language that cannot be changed in any program

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

prompt lines

A

executable statements that inform the user of what to do

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

programming language

A

set of rules, symbols and special words

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

programming

A

process of planning and creating a program

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

pre-increment

A

syntax “++ variable”

26
Q

predefined (standard) function

A

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

27
Q

pre-decriment

A

syntax “– variable”

28
Q

precision

A

max number of significant digits

29
Q

post- increment

A

syntax “variable ++”

30
Q

post decriment

A

syntax “variable –”

31
Q

output statement

A

output the standard output device via “cout” and “

32
Q

operands

A

numbers in an arithmetic expression

33
Q

null (empty) strings

A

string containing no characters

34
Q

named constant

A

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

35
Q

mixed expression

A

expression that contains operands with different data types

36
Q

integral expression

A

expression in which all operands are integers

37
Q

integral

A

data type that deals with integers or numbers without a decimal

38
Q

input (read) statement

A

statement that places data into variables via “cin” and “»”

39
Q

initialized

A

the 1st time a value is placed in a variable

40
Q

increment operator

A

++

- increases value of variable by 1

41
Q

implicit type correction

A

when value of one data type is automatically changed to another data type

42
Q

identifier

A
  • C++ identifier consists of letters, digits, and the underscore character
  • must begin with letter or underscore
43
Q

function (subprogram)

A

a collection of statements that when activated/executed it accomplishes something

44
Q

floating-point notation

A

form of scientific notation used to represent real numbers

45
Q

floating-point (decimal) expression

A

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

46
Q

floating point

A

data type that holds decimal numbers

47
Q

executable statements

A

statements that perform calculations, manipulate data, create output, accept input, etc

48
Q

enumeration

A

user defined data type

49
Q

double precision

A

values of the type “double”

50
Q

decrement operator

A

”–” decreases the value of a variable by 1

51
Q

declaration statements

A

statements used to declare things like variables

52
Q

data type

A

set of values together with a set of operations

53
Q

computer program

A

sequence of statements whose objective is to accomplish a task

54
Q

compound assignment statement

A

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

55
Q

collating sequence

A

predefined ordering for the characters in a set

56
Q

character arithmetic

A

arithmetic operation on “char” data

57
Q

cast operatior

A
  • type conversion, type casting

- used to explicitly convert one data type to another data type

58
Q

binary operator

A

operator that has two operands

59
Q

associativity

A

associativity of arithmetic operations said to be from left to right

60
Q

assignment operator

A

”=”

- assigns whatever is on the right side of the variable on the left side

61
Q

arithmetic expression

A

expression constructed using arithmetic operators and numbers