ANSWERS KENNESAW STATE UNIVERSITY
COMPREHENSIVE TEST BANK 2026 FULL
QUESTIONS AND SOLUTIONS GRADED A+
⩥ All methods must have a return statement.
True
False? Answer: False: voids dont return a statement
⩥ You must declare and initialize a variable in two separate steps.
True
False? Answer: False: it is one step, you declare and initialize a variable
in one step.
⩥ count++ is equivalent to count = count + 1.
True
False Answer: True
⩥ What type of error is present in the underlined C++ code sample
below?using namespace std;int main(){ dble value = 12; cout << value
<< endl;}
Runtime Error
,Syntax Error
Logical Error
Arithmetic Error? Answer: Syntax Error
⩥ What is a skeleton program?
Invalid code
The simplest valid program possible in a programming language
A pseudocode version of a programming algorithm
Very spooky. Answer: The simplest valid program possible in a
programming language
⩥ Evaluate as an integer: 9 - + 5
-6
4
12
8 Answer: 12
⩥ Evaluate as an integer: (5 + 3 * 2) - 2 % ()
11
-4
12
42 Answer: 11
, ⩥ The equation 5 % 2 results in what value?
2.5
5
2
1 Answer: 1
⩥ In the equation 2 + 8 /4 * 2, the division operation / is evaluated first.
True
False Answer: True
⩥ Logical operators are evaluated AFTER comparison/relational
operators.
True
False Answer: True: the order is Arithmetic, relational/comparison,
logical
⩥ Logical operators are evaluated BEFORE comparison/relational
operators.
True
False Answer: False: the order is Arithmetic, relational/comparison,
logical