Skip to main content

How To Think Like a Computer Scientist C++ Edition The Pretext Interactive Version

Section 2.11 Glossary

Glossary Glossary

variable.
A named storage location for values. All variables have a type, which determines which values it can store.
value.
A letter, or number, or other thing that can be stored in a variable.
type.
A set of values. The types we have seen are integers(int in C++) and characters ( char in C++).
keyword.
A reserved word that is used by the compiler to parse programs. Examples we have seen include int, void and endl.
statement.
A line of code that represents a command or action. So far, the statements we have seen are declarations, assignments, and output statements.
declaration.
A statement that creates a new variable and determines its type.
assignment.
A statement that assigns a value to a variable.
expression.
A combination of variables, operators and values that represents a single result value. Expressions also have types, as determined by their operators and operands.
operator.
A special symbol that represents a simple computation like addition or multiplication.
operand.
One of the values on which an operator operates.
precedence.
The order in which operations are evaluated.
composition.
The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.

Reading Questions Reading Questions

1.

2.

3.

You have attempted 1 of 4 activities on this page.