Ch 2 Flashcards
source code
- code written in high level language
- consists of preprocessor directives and program statements
- source program
preprocessor
- program that carries out preprocessor directives
- program that processes statements in a C++ program that begin with a #
keyword
reserved word
walk-through
the process of tracing values through a sequence
variable
memory location whose content may change during program execution
unary operator
operator with only one operand
token
smaller individual unit of a program written in any language
syntax rules
rules that describe which statements are legal/accepted by the programming language as well as what is not legal
string
sequence of 0 or more characters
stream insertion operator
”
stream extractor operator
”»”
takes information out of the stream and inputs it into a variable
statement terminator
semi colon
source code file (source file)
file containing the source code
single precision
values of the type “float”
simple data type
variable or named constant of that type that can only store one value at a time
simple assignment statement
statement that uses only the assignment operator to assign values to the variable on the left side of the operator
semantics
set of rules that give meaning to a language
semantic rules
rules that determine the meaning of the instructions
self-documenting identifiers
identifiers that describe the purpose of the identifier through the name
run-together word
identifier composed of two or more words that are combined without caps or underscores
reserved words
keywords
- word symbols in a programming language that cannot be changed in any program
prompt lines
executable statements that inform the user of what to do
programming language
set of rules, symbols and special words
programming
process of planning and creating a program