Ch. 1.4: What is a Program Made of? Flashcards
What is a programmer-defined identifier?
Variables composed by the programmer.
What is a variable?
A named storage location in the computer’s memory.
What is an example of a preprocessor directive?
include <iostream></iostream>
What is an operator?
Perform operations on pieces of data known as operands. E.g. (*) = multiply, (=) = assigned to
What is punctuation?
Marks the end of a statement. E.g. (;).
What is a keyword?
Have special meaning in C++ can only be used for intended purpose.
What is a line?
A single line as it appears in the body of the program.
What is a statement?
A complete instruction that causes the computer to perform some action.
What are the two types of numeric data used in variables?
Numbers or integers and floating-point numbers.
What variable is “double”?
A double type variable is a 64-bit floating data type. It can contain up to 15 digits in total, including those before and after the decimal point.