A) fstream
B) iostream
C) file
D) Both A and B are needed.
E) Both B and C are needed.
Correct Answer
verified
Multiple Choice
A) post test, pretest
B) infinite, finite
C) simple, complex
D) pretest, post test
E) finite, infinite
Correct Answer
verified
Multiple Choice
A) the program must open the file.
B) the file must already exist.
C) the program must define a file stream object that can "point to" (i.e., reference) the file.
D) All of the above are required..
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) total
B) accumulator
C) sentinel
D) counter
E) loop control variable
Correct Answer
verified
Multiple Choice
A) infinite loop
B) null value
C) compiler error
D) unexpected exit
E) system crash
Correct Answer
verified
Multiple Choice
A) sum.
B) loop control variable.
C) total.
D) accumulator.
E) counter.
Correct Answer
verified
Multiple Choice
A) only if the test condition is initially true.
B) forever until the user hits the break key.
C) at least once.
D) until the test condition becomes true.
E) until an exit statement is encountered.
Correct Answer
verified
Multiple Choice
A) infinite
B) pretest
C) sentinel controlled
D) multi test
E) post test
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) counter
B) loop control variable
C) accumulator
D) sentinel
E) total
Correct Answer
verified
Multiple Choice
A) forever until the user hits the break key.
B) exactly once.
C) until the test condition becomes true.
D) at least once.
E) only if the test condition is initially true.
Correct Answer
verified
Multiple Choice
A) the loop body contains just one statement.
B) there is no loop body.
C) the loop body ends when the endwhile statement is encountered.
D) the program will not compile.
E) the program will compile, but not run.
Correct Answer
verified
Multiple Choice
A) simple, complex
B) finite, infinite
C) post test, pretest
D) pretest, post test
E) infinite, finite
Correct Answer
verified
Multiple Choice
A) update.
B) increment.
C) repeat.
D) quit.
E) validate.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) file
B) iostream
C) fstream
D) Both A and B.
E) Both B and C.
Correct Answer
verified
Multiple Choice
A) subtracts one from the value of its operand.
B) must have an lvalue, such as a variable, as its operand.
C) can be used in either prefix or postfix mode.
D) is a unary operator.
E) All of the above are true.
Correct Answer
verified
Showing 21 - 38 of 38
Related Exams