ENGR 200 EXAM PREP QUESTIONS WITH
ANSWERS AND EXPLANATIONS
| American Public University
1. Two findings must be interpreted separately. First: In 2 + 3 * 4, multiplication is applied before addition.
Second: A small console program starts executing the statements placed inside int main(). Which option identifies
the two concepts correctly?
A. Both are best explained by operator precedence.
B. The first reflects operator precedence; the second reflects main function.
C. The first reflects main function; the second reflects operator precedence.
D. Neither observation can be classified using an engineering or computing concept.
Correct Answer: B. The first reflects operator precedence; the second reflects main function.
Explanation: The first observation matches operator precedence, whereas the second matches main function. The two
should not be collapsed into one concept.
2. The result is: The statements that actually compute and return the result are written in the function body. Which
explanation fits better than an account based on function decomposition?
A. an expression supplied by the caller for a corresponding function parameter
B. parameter passing in which the function receives its own copy of the argument value
C. the code that specifies a function's return type, name, parameters, and body
D. breaking a program into smaller functions with focused responsibilities
Correct Answer: C. the code that specifies a function's return type, name, parameters, and body
Explanation: The case follows function definition (the code that specifies a function's return type, name, parameters,
and body) rather than function decomposition (breaking a program into smaller functions with focused responsibilities).
3. Which standard term should be used when work demonstrates division of integral operands that discards the
fractional part of the mathematical quotient?
A. constant
B. scope
C. integer division
D. int type
Correct Answer: C. integer division
Explanation: The result should be classified as integer division because that concept means division of integral
operands that discards the fractional part of the mathematical quotient.
,4. Which statement correctly separates reference parameter from argument?
A. reference parameter is a parameter that refers directly to the caller's object and can be used to modify it when
non-const; argument is an expression supplied by the caller for a corresponding function parameter.
B. Both terms refer to a parameter that refers directly to the caller's object and can be used to modify it when
non-const.
C. Both terms refer to an expression supplied by the caller for a corresponding function parameter.
D. reference parameter is an expression supplied by the caller for a corresponding function parameter; argument is a
parameter that refers directly to the caller's object and can be used to modify it when non-const.
Correct Answer: A. reference parameter is a parameter that refers directly to the caller's object and can be used to
modify it when non-const; argument is an expression supplied by the caller for a corresponding function parameter.
Explanation: The concepts differ: reference parameter is a parameter that refers directly to the caller's object and can be
used to modify it when non-const, whereas argument is an expression supplied by the caller for a corresponding function
parameter.
5. Which situation most clearly demonstrates while loop?
A. A running total is updated with each measurement before an average is computed.
B. If the condition is false initially, the body executes zero times.
C. Input is processed until the user enters a sentinel value that makes the condition false.
D. An index runs from 0 through n - 1 to process each array element once.
Correct Answer: C. Input is processed until the user enters a sentinel value that makes the condition false.
Explanation: The selected case illustrates while loop because it reflects a pretest repetition statement that repeats while
its condition remains true.
6. What is the best description of double type?
A. the use of an input stream such as std::cin to read formatted values from the console
B. a floating-point type used for values that may require fractional parts
C. a combination of operands and operators that is evaluated to produce a value
D. the % operator that produces the remainder from integral division
Correct Answer: B. a floating-point type used for values that may require fractional parts
Explanation: double type is a floating-point type used for values that may require fractional parts.
, 7. Which paired description of Professional licensure and Electrical engineering is defensible?
A. Both terms refer to formal authorization to practice regulated engineering work after meeting jurisdictional
education, examination, and experience requirements.
B. Both terms refer to the engineering discipline centered on electrical, electronic, electromagnetic, and
information-processing systems.
C. Professional licensure is the engineering discipline centered on electrical, electronic, electromagnetic, and
information-processing systems; Electrical engineering is formal authorization to practice regulated engineering
work after meeting jurisdictional education, examination, and experience requirements.
D. Professional licensure is formal authorization to practice regulated engineering work after meeting jurisdictional
education, examination, and experience requirements; Electrical engineering is the engineering discipline
centered on electrical, electronic, electromagnetic, and information-processing systems.
Correct Answer: D. Professional licensure is formal authorization to practice regulated engineering work after
meeting jurisdictional education, examination, and experience requirements; Electrical engineering is the engineering
discipline centered on electrical, electronic, electromagnetic, and information-processing systems.
Explanation: The concepts differ: Professional licensure is formal authorization to practice regulated engineering work
after meeting jurisdictional education, examination, and experience requirements, whereas Electrical engineering is the
engineering discipline centered on electrical, electronic, electromagnetic, and information-processing systems.
8. Which option preserves the conceptual difference between initialization and statement?
A. Both terms refer to providing an initial value when an object or variable is created.
B. Both terms refer to a program instruction or declaration that forms an executable or structural unit.
C. initialization is a program instruction or declaration that forms an executable or structural unit; statement is
providing an initial value when an object or variable is created.
D. initialization is providing an initial value when an object or variable is created; statement is a program instruction
or declaration that forms an executable or structural unit.
Correct Answer: D. initialization is providing an initial value when an object or variable is created; statement is a
program instruction or declaration that forms an executable or structural unit.
Explanation: The concepts differ: initialization is providing an initial value when an object or variable is created,
whereas statement is a program instruction or declaration that forms an executable or structural unit.
9. What is the standard term for the equivalence that negating a conjunction becomes a disjunction of negations
and vice versa?
A. nested selection
B. De Morgan transformation
C. boundary condition
D. if-else statement
Correct Answer: B. De Morgan transformation
Explanation: De Morgan transformation refers to the equivalence that negating a conjunction becomes a disjunction of
negations and vice versa.
ANSWERS AND EXPLANATIONS
| American Public University
1. Two findings must be interpreted separately. First: In 2 + 3 * 4, multiplication is applied before addition.
Second: A small console program starts executing the statements placed inside int main(). Which option identifies
the two concepts correctly?
A. Both are best explained by operator precedence.
B. The first reflects operator precedence; the second reflects main function.
C. The first reflects main function; the second reflects operator precedence.
D. Neither observation can be classified using an engineering or computing concept.
Correct Answer: B. The first reflects operator precedence; the second reflects main function.
Explanation: The first observation matches operator precedence, whereas the second matches main function. The two
should not be collapsed into one concept.
2. The result is: The statements that actually compute and return the result are written in the function body. Which
explanation fits better than an account based on function decomposition?
A. an expression supplied by the caller for a corresponding function parameter
B. parameter passing in which the function receives its own copy of the argument value
C. the code that specifies a function's return type, name, parameters, and body
D. breaking a program into smaller functions with focused responsibilities
Correct Answer: C. the code that specifies a function's return type, name, parameters, and body
Explanation: The case follows function definition (the code that specifies a function's return type, name, parameters,
and body) rather than function decomposition (breaking a program into smaller functions with focused responsibilities).
3. Which standard term should be used when work demonstrates division of integral operands that discards the
fractional part of the mathematical quotient?
A. constant
B. scope
C. integer division
D. int type
Correct Answer: C. integer division
Explanation: The result should be classified as integer division because that concept means division of integral
operands that discards the fractional part of the mathematical quotient.
,4. Which statement correctly separates reference parameter from argument?
A. reference parameter is a parameter that refers directly to the caller's object and can be used to modify it when
non-const; argument is an expression supplied by the caller for a corresponding function parameter.
B. Both terms refer to a parameter that refers directly to the caller's object and can be used to modify it when
non-const.
C. Both terms refer to an expression supplied by the caller for a corresponding function parameter.
D. reference parameter is an expression supplied by the caller for a corresponding function parameter; argument is a
parameter that refers directly to the caller's object and can be used to modify it when non-const.
Correct Answer: A. reference parameter is a parameter that refers directly to the caller's object and can be used to
modify it when non-const; argument is an expression supplied by the caller for a corresponding function parameter.
Explanation: The concepts differ: reference parameter is a parameter that refers directly to the caller's object and can be
used to modify it when non-const, whereas argument is an expression supplied by the caller for a corresponding function
parameter.
5. Which situation most clearly demonstrates while loop?
A. A running total is updated with each measurement before an average is computed.
B. If the condition is false initially, the body executes zero times.
C. Input is processed until the user enters a sentinel value that makes the condition false.
D. An index runs from 0 through n - 1 to process each array element once.
Correct Answer: C. Input is processed until the user enters a sentinel value that makes the condition false.
Explanation: The selected case illustrates while loop because it reflects a pretest repetition statement that repeats while
its condition remains true.
6. What is the best description of double type?
A. the use of an input stream such as std::cin to read formatted values from the console
B. a floating-point type used for values that may require fractional parts
C. a combination of operands and operators that is evaluated to produce a value
D. the % operator that produces the remainder from integral division
Correct Answer: B. a floating-point type used for values that may require fractional parts
Explanation: double type is a floating-point type used for values that may require fractional parts.
, 7. Which paired description of Professional licensure and Electrical engineering is defensible?
A. Both terms refer to formal authorization to practice regulated engineering work after meeting jurisdictional
education, examination, and experience requirements.
B. Both terms refer to the engineering discipline centered on electrical, electronic, electromagnetic, and
information-processing systems.
C. Professional licensure is the engineering discipline centered on electrical, electronic, electromagnetic, and
information-processing systems; Electrical engineering is formal authorization to practice regulated engineering
work after meeting jurisdictional education, examination, and experience requirements.
D. Professional licensure is formal authorization to practice regulated engineering work after meeting jurisdictional
education, examination, and experience requirements; Electrical engineering is the engineering discipline
centered on electrical, electronic, electromagnetic, and information-processing systems.
Correct Answer: D. Professional licensure is formal authorization to practice regulated engineering work after
meeting jurisdictional education, examination, and experience requirements; Electrical engineering is the engineering
discipline centered on electrical, electronic, electromagnetic, and information-processing systems.
Explanation: The concepts differ: Professional licensure is formal authorization to practice regulated engineering work
after meeting jurisdictional education, examination, and experience requirements, whereas Electrical engineering is the
engineering discipline centered on electrical, electronic, electromagnetic, and information-processing systems.
8. Which option preserves the conceptual difference between initialization and statement?
A. Both terms refer to providing an initial value when an object or variable is created.
B. Both terms refer to a program instruction or declaration that forms an executable or structural unit.
C. initialization is a program instruction or declaration that forms an executable or structural unit; statement is
providing an initial value when an object or variable is created.
D. initialization is providing an initial value when an object or variable is created; statement is a program instruction
or declaration that forms an executable or structural unit.
Correct Answer: D. initialization is providing an initial value when an object or variable is created; statement is a
program instruction or declaration that forms an executable or structural unit.
Explanation: The concepts differ: initialization is providing an initial value when an object or variable is created,
whereas statement is a program instruction or declaration that forms an executable or structural unit.
9. What is the standard term for the equivalence that negating a conjunction becomes a disjunction of negations
and vice versa?
A. nested selection
B. De Morgan transformation
C. boundary condition
D. if-else statement
Correct Answer: B. De Morgan transformation
Explanation: De Morgan transformation refers to the equivalence that negating a conjunction becomes a disjunction of
negations and vice versa.