Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) repeated as long as the condition is True.
B) repeated until the condition becomes True.
C) done once if the condition is True.
D) always done at least once, then repeated if the condition is True.
E) always skipped.
Correct Answer
verified
Multiple Choice
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) finite, infinite
B) infinite, finite
C) simple, complex
D) pretest, post test
E) post test, pretest
Correct Answer
verified
Multiple Choice
A) is a unary operator.
B) subtracts one from the value of its operand.
C) must have an lvalue, such as a variable, as its operand.
D) can be used in either prefix or postfix mode.
E) All of the above are True.
Correct Answer
verified
Multiple Choice
A) initialization
B) test
C) repeat
D) validate
E) update
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) counter
B) accumulator
C) sentinel
D) total
E) loop control variable
Correct Answer
verified
Multiple Choice
A) there is no loop body.
B) the loop body ends when the endwhile statement is encountered.
C) the loop body contains just one statement.
D) the program will not compile.
E) the program will compile, but not run.
Correct Answer
verified
Multiple Choice
A) make sure the file already exists.
B) create a file stream object that will "point to" (i.e. reference) the file.
C) open the file.
D) do all of the above.
E) do B and C, but not A.
Correct Answer
verified
Multiple Choice
A) + and -
B) ++ and --
C) binary and unary
D) arithmetic and relational
E) conditional and relational
Correct Answer
verified
Multiple Choice
A) repeat.
B) validate.
C) update.
D) quit.
E) increment.
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) new data type
B) new keyword
C) constant
D) variable
E) operator
Correct Answer
verified
Multiple Choice
A) exactly once.
B) at least once.
C) only if the test condition is initially True.
D) until the test condition becomes True.
E) forever until the user hits the break key.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Showing 1 - 20 of 40
Related Exams