1.The body of a while statement does not execute if the loop-continuation condition is false.
A) True
B) False
2.The setw parameterized stream manipulator sets the minimum field width in characters for the next value to be displayed.
A) True
B) False
3.A do...while loop will not execute if its loop continuation condition is false before the loop is started.
A) True
B) False
4.Sentinel-controlled repetition terminates when ________.
A) the application terminates
B) the sentinel value is encountered
C) the user enters -1
D) None of the above.
5.Assuming that variables value1 and value2 are both declared as ints,which of the following statements causes the result of the calculation to be truncated?
A)double result = static_cast(value1) / value2
B)double result = value2 + static_cast(value1)
C) double result = value1 / value2
D) All of the above.
6.Sentinel-controlled repetition is also called ________ repetition.
A) definite
B) indefinite
C) infinite
D) Both b and c.
7.Fatal logic errors __________.
A) are detected by the compiler.
B) cause the application to crash.
C) can be caused by division by zero.
D) Both b and c.
8.When a double containing the value 2.718 is cast to an int, the int will contain the value _______?
A) 2.7
B) 3
C) 2
D) a double can not be cast to an int.
9.When an int is divided by a double, the result is ___________.
A) a double value
B) an int value
C) a syntax error
D) a fatal logic error
10.The initial value of the control variable is one of the four essential elements of counter-controlled repetition.
A) True
B) False
11.In the for statement header, the expressions are separated by commas (,).
A) True
B) False
12.The following code varies the control variable in increments of 6 from 6 to 66: for ( int i = 6; i <= 66; i += 6 );
A) True
B) False
13.The pow function is declared in the math library, which is accessed by including the