ENGR 200 EXAM 1 QUESTIONS WITH ANSWERS
AND EXPLANATIONS
| American Public University
1. How should operator precedence and namespace be distinguished?
A. operator precedence is the rules that determine the order in which operators are grouped when parentheses do not
override it; namespace is a named scope used to organize identifiers and reduce naming conflicts.
B. operator precedence is a named scope used to organize identifiers and reduce naming conflicts; namespace is the
rules that determine the order in which operators are grouped when parentheses do not override it.
C. Both terms refer to the rules that determine the order in which operators are grouped when parentheses do not
override it.
D. Both terms refer to a named scope used to organize identifiers and reduce naming conflicts.
Correct Answer: A. operator precedence is the rules that determine the order in which operators are grouped when
parentheses do not override it; namespace is a named scope used to organize identifiers and reduce naming conflicts.
Explanation: The concepts differ: operator precedence is the rules that determine the order in which operators are
grouped when parentheses do not override it, whereas namespace is a named scope used to organize identifiers and
reduce naming conflicts.
2. A pointer-null check on the left of && prevents dereferencing when the pointer is null. Which technical concept
is operating most directly?
A. conditional expression
B. if statement
C. short-circuit evaluation
D. switch statement
Correct Answer: C. short-circuit evaluation
Explanation: The situation is a direct example of short-circuit evaluation, which is evaluation in which the right
operand of && or || may be skipped when the left operand determines the result.
3. Which description would an engineer accept for arithmetic operators?
A. the use of an input stream such as std::cin to read formatted values from the console
B. a preprocessor instruction that makes declarations from a header available to the translation unit
C. operators such as +, -, *, /, and % used to form numeric expressions
D. the rules that determine the order in which operators are grouped when parentheses do not override it
Correct Answer: C. operators such as +, -, *, /, and % used to form numeric expressions
Explanation: arithmetic operators is operators such as +, -, *, /, and % used to form numeric expressions.
4. A review produces two observations: (1) A value is accepted only if it is at least the lower bound and no greater
than the upper bound. (2) The expression pressure >= limit evaluates to a boolean result. Which interpretation
keeps the underlying concepts distinct?
A. The first reflects logical AND; the second reflects relational operator.
B. Neither observation can be classified using an engineering or computing concept.
C. Both are best explained by logical AND.
D. The first reflects relational operator; the second reflects logical AND.
Correct Answer: A. The first reflects logical AND; the second reflects relational operator.
Explanation: The first observation matches logical AND, whereas the second matches relational operator. The two
should not be collapsed into one concept.
,5. Which case best represents scope rather than a related concept?
A. count++ advances a loop counter after an iteration.
B. A variable declared inside a block cannot be used by code outside that block after the block ends.
C. After a calculation, total = total + value updates the running total.
D. The expression 17 % 5 produces 2.
Correct Answer: B. A variable declared inside a block cannot be used by code outside that block after the block
ends.
Explanation: The selected case illustrates scope because it reflects the region of a program in which a declared name
can be referred to.
6. A team must explain two different effects. One shows that An engineer pursuing independent responsibility for
public-facing design work investigates the jurisdiction requirements for professional licensure. Another shows that
An engineer selects a microcontroller and writes low-level code for an automated device. Which pairing is correct?
A. The first reflects Computer engineering; the second reflects Professional licensure.
B. Both are best explained by Professional licensure.
C. Neither observation can be classified using an engineering or computing concept.
D. The first reflects Professional licensure; the second reflects Computer engineering.
Correct Answer: D. The first reflects Professional licensure; the second reflects Computer engineering.
Explanation: The first observation matches Professional licensure, whereas the second matches Computer engineering.
The two should not be collapsed into one concept.
7. Compare these cases: A counter is created with the value zero before it is used in an accumulation loop.
Separately, A program uses #include <iostream> before using standard stream declarations. Which paired
explanation is most accurate?
A. Neither observation can be classified using an engineering or computing concept.
B. The first reflects initialization; the second reflects include directive.
C. Both are best explained by initialization.
D. The first reflects include directive; the second reflects initialization.
Correct Answer: B. The first reflects initialization; the second reflects include directive.
Explanation: The first observation matches initialization, whereas the second matches include directive. The two
should not be collapsed into one concept.
8. Which example would be the strongest illustration of Linker?
A. An arithmetic instruction is fetched, decoded, and executed by this hardware component.
B. Compilation succeeds, but the build fails because a declared function has no matching definition to link.
C. A large simulation needs enough temporary memory to store its current data structures during execution.
D. Source files remain available on a solid-state drive after the computer is shut down.
Correct Answer: B. Compilation succeeds, but the build fails because a declared function has no matching definition
to link.
Explanation: The selected case illustrates Linker because it reflects a build tool that combines compiled units and
resolves references among separately compiled code and libraries.
, 9. A student is contrasting constant with double type. Which comparison is correct?
A. constant is a floating-point type used for values that may require fractional parts; double type is a named value
that should not be modified after initialization.
B. Both terms refer to a floating-point type used for values that may require fractional parts.
C. constant is a named value that should not be modified after initialization; double type is a floating-point type used
for values that may require fractional parts.
D. Both terms refer to a named value that should not be modified after initialization.
Correct Answer: C. constant is a named value that should not be modified after initialization; double type is a
floating-point type used for values that may require fractional parts.
Explanation: The concepts differ: constant is a named value that should not be modified after initialization, whereas
double type is a floating-point type used for values that may require fractional parts.
10. Which interpretation better fits Maintenance staff request tool-free access to a component that requires
frequent replacement. than an account centered on Verification?
A. checking whether the completed solution actually meets the intended user need in its real context
B. an outcome or capability desired by people or organizations affected by the system
C. checking whether the implemented system satisfies stated specifications or requirements
D. the identification and evaluation of hazards using likelihood and consequence to guide mitigation
Correct Answer: B. an outcome or capability desired by people or organizations affected by the system
Explanation: The case follows Stakeholder need (an outcome or capability desired by people or organizations affected
by the system) rather than Verification (checking whether the implemented system satisfies stated specifications or
requirements).
11. Select the term that best names the standard entry point at which execution of a hosted C++ program begins.
A. main function
B. scope
C. statement
D. increment operator
Correct Answer: A. main function
Explanation: main function refers to the standard entry point at which execution of a hosted C++ program begins.
12. What is the best description of loop counter?
A. a repetition statement that commonly groups initialization, test, and update for counted iteration
B. a repetition structure in which one loop is contained inside another
C. a loop that checks its continuation condition after the body executes
D. a variable used to track the number or position of iterations
Correct Answer: D. a variable used to track the number or position of iterations
Explanation: loop counter is a variable used to track the number or position of iterations.
AND EXPLANATIONS
| American Public University
1. How should operator precedence and namespace be distinguished?
A. operator precedence is the rules that determine the order in which operators are grouped when parentheses do not
override it; namespace is a named scope used to organize identifiers and reduce naming conflicts.
B. operator precedence is a named scope used to organize identifiers and reduce naming conflicts; namespace is the
rules that determine the order in which operators are grouped when parentheses do not override it.
C. Both terms refer to the rules that determine the order in which operators are grouped when parentheses do not
override it.
D. Both terms refer to a named scope used to organize identifiers and reduce naming conflicts.
Correct Answer: A. operator precedence is the rules that determine the order in which operators are grouped when
parentheses do not override it; namespace is a named scope used to organize identifiers and reduce naming conflicts.
Explanation: The concepts differ: operator precedence is the rules that determine the order in which operators are
grouped when parentheses do not override it, whereas namespace is a named scope used to organize identifiers and
reduce naming conflicts.
2. A pointer-null check on the left of && prevents dereferencing when the pointer is null. Which technical concept
is operating most directly?
A. conditional expression
B. if statement
C. short-circuit evaluation
D. switch statement
Correct Answer: C. short-circuit evaluation
Explanation: The situation is a direct example of short-circuit evaluation, which is evaluation in which the right
operand of && or || may be skipped when the left operand determines the result.
3. Which description would an engineer accept for arithmetic operators?
A. the use of an input stream such as std::cin to read formatted values from the console
B. a preprocessor instruction that makes declarations from a header available to the translation unit
C. operators such as +, -, *, /, and % used to form numeric expressions
D. the rules that determine the order in which operators are grouped when parentheses do not override it
Correct Answer: C. operators such as +, -, *, /, and % used to form numeric expressions
Explanation: arithmetic operators is operators such as +, -, *, /, and % used to form numeric expressions.
4. A review produces two observations: (1) A value is accepted only if it is at least the lower bound and no greater
than the upper bound. (2) The expression pressure >= limit evaluates to a boolean result. Which interpretation
keeps the underlying concepts distinct?
A. The first reflects logical AND; the second reflects relational operator.
B. Neither observation can be classified using an engineering or computing concept.
C. Both are best explained by logical AND.
D. The first reflects relational operator; the second reflects logical AND.
Correct Answer: A. The first reflects logical AND; the second reflects relational operator.
Explanation: The first observation matches logical AND, whereas the second matches relational operator. The two
should not be collapsed into one concept.
,5. Which case best represents scope rather than a related concept?
A. count++ advances a loop counter after an iteration.
B. A variable declared inside a block cannot be used by code outside that block after the block ends.
C. After a calculation, total = total + value updates the running total.
D. The expression 17 % 5 produces 2.
Correct Answer: B. A variable declared inside a block cannot be used by code outside that block after the block
ends.
Explanation: The selected case illustrates scope because it reflects the region of a program in which a declared name
can be referred to.
6. A team must explain two different effects. One shows that An engineer pursuing independent responsibility for
public-facing design work investigates the jurisdiction requirements for professional licensure. Another shows that
An engineer selects a microcontroller and writes low-level code for an automated device. Which pairing is correct?
A. The first reflects Computer engineering; the second reflects Professional licensure.
B. Both are best explained by Professional licensure.
C. Neither observation can be classified using an engineering or computing concept.
D. The first reflects Professional licensure; the second reflects Computer engineering.
Correct Answer: D. The first reflects Professional licensure; the second reflects Computer engineering.
Explanation: The first observation matches Professional licensure, whereas the second matches Computer engineering.
The two should not be collapsed into one concept.
7. Compare these cases: A counter is created with the value zero before it is used in an accumulation loop.
Separately, A program uses #include <iostream> before using standard stream declarations. Which paired
explanation is most accurate?
A. Neither observation can be classified using an engineering or computing concept.
B. The first reflects initialization; the second reflects include directive.
C. Both are best explained by initialization.
D. The first reflects include directive; the second reflects initialization.
Correct Answer: B. The first reflects initialization; the second reflects include directive.
Explanation: The first observation matches initialization, whereas the second matches include directive. The two
should not be collapsed into one concept.
8. Which example would be the strongest illustration of Linker?
A. An arithmetic instruction is fetched, decoded, and executed by this hardware component.
B. Compilation succeeds, but the build fails because a declared function has no matching definition to link.
C. A large simulation needs enough temporary memory to store its current data structures during execution.
D. Source files remain available on a solid-state drive after the computer is shut down.
Correct Answer: B. Compilation succeeds, but the build fails because a declared function has no matching definition
to link.
Explanation: The selected case illustrates Linker because it reflects a build tool that combines compiled units and
resolves references among separately compiled code and libraries.
, 9. A student is contrasting constant with double type. Which comparison is correct?
A. constant is a floating-point type used for values that may require fractional parts; double type is a named value
that should not be modified after initialization.
B. Both terms refer to a floating-point type used for values that may require fractional parts.
C. constant is a named value that should not be modified after initialization; double type is a floating-point type used
for values that may require fractional parts.
D. Both terms refer to a named value that should not be modified after initialization.
Correct Answer: C. constant is a named value that should not be modified after initialization; double type is a
floating-point type used for values that may require fractional parts.
Explanation: The concepts differ: constant is a named value that should not be modified after initialization, whereas
double type is a floating-point type used for values that may require fractional parts.
10. Which interpretation better fits Maintenance staff request tool-free access to a component that requires
frequent replacement. than an account centered on Verification?
A. checking whether the completed solution actually meets the intended user need in its real context
B. an outcome or capability desired by people or organizations affected by the system
C. checking whether the implemented system satisfies stated specifications or requirements
D. the identification and evaluation of hazards using likelihood and consequence to guide mitigation
Correct Answer: B. an outcome or capability desired by people or organizations affected by the system
Explanation: The case follows Stakeholder need (an outcome or capability desired by people or organizations affected
by the system) rather than Verification (checking whether the implemented system satisfies stated specifications or
requirements).
11. Select the term that best names the standard entry point at which execution of a hosted C++ program begins.
A. main function
B. scope
C. statement
D. increment operator
Correct Answer: A. main function
Explanation: main function refers to the standard entry point at which execution of a hosted C++ program begins.
12. What is the best description of loop counter?
A. a repetition statement that commonly groups initialization, test, and update for counted iteration
B. a repetition structure in which one loop is contained inside another
C. a loop that checks its continuation condition after the body executes
D. a variable used to track the number or position of iterations
Correct Answer: D. a variable used to track the number or position of iterations
Explanation: loop counter is a variable used to track the number or position of iterations.