Ch 2 Flashcards

(61 cards)

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
pre-increment
syntax "++ variable"
26
predefined (standard) function
function that is already written and provided as part of the system
27
pre-decriment
syntax "-- variable"
28
precision
max number of significant digits
29
post- increment
syntax "variable ++"
30
post decriment
syntax "variable --"
31
output statement
output the standard output device via "cout" and "
32
operands
numbers in an arithmetic expression
33
null (empty) strings
string containing no characters
34
named constant
memory location whose content is not allowed to change during program execution
35
mixed expression
expression that contains operands with different data types
36
integral expression
expression in which all operands are integers
37
integral
data type that deals with integers or numbers without a decimal
38
input (read) statement
statement that places data into variables via "cin" and ">>"
39
initialized
the 1st time a value is placed in a variable
40
increment operator
++ | - increases value of variable by 1
41
implicit type correction
when value of one data type is automatically changed to another data type
42
identifier
- C++ identifier consists of letters, digits, and the underscore character - must begin with letter or underscore
43
function (subprogram)
a collection of statements that when activated/executed it accomplishes something
44
floating-point notation
form of scientific notation used to represent real numbers
45
floating-point (decimal) expression
expression in which all operands in the expression are floating-point numbers
46
floating point
data type that holds decimal numbers
47
executable statements
statements that perform calculations, manipulate data, create output, accept input, etc
48
enumeration
user defined data type
49
double precision
values of the type "double"
50
decrement operator
"--" decreases the value of a variable by 1
51
declaration statements
statements used to declare things like variables
52
data type
set of values together with a set of operations
53
computer program
sequence of statements whose objective is to accomplish a task
54
compound assignment statement
statements used to write simple assignment statements in a more concise notation
55
collating sequence
predefined ordering for the characters in a set
56
character arithmetic
arithmetic operation on "char" data
57
cast operatior
- type conversion, type casting | - used to explicitly convert one data type to another data type
58
binary operator
operator that has two operands
59
associativity
associativity of arithmetic operations said to be from left to right
60
assignment operator
"=" | - assigns whatever is on the right side of the variable on the left side
61
arithmetic expression
expression constructed using arithmetic operators and numbers