C++ -- Chapter 2
double
An example of a floating point data type is
Prompt lines
Executable statements that inform the user what to do
True
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right
Syntax
Rules of programming language tell you which statements are legal, or accepted by the programming language.
True
Suppose a = 5. After the execution of the statement: ++a; the value of a is now 6
alpha = 50
Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement: alpha *= beta; executes, what is the results?
beta = beta - 1; alpha = beta;
Suppose that alpha and beta are int variables. The statement: alpha = -- beta; is equivalent to the statements...
sum = 15
Suppose that sum and num are int and sum = 5 and num = 10. Statement: sum += num; executes to...
False
The escape sequence \r moves the insertion point to the beginning of the next line
13
The expression: static_case<int>(6.9) + static_cast<int>(7.9) evaluates to...