nerdexam
Scrum

PSD · Question #32

What are two reasons to use mock objects in unit tests?

Sign in or unlock PSD to reveal the answer and full explanation for question #32. The question stem and answer options stay visible for context.

Test Driven Development

Question

What are two reasons to use mock objects in unit tests?

Options

  • AThe behavior of a given object can be emulated to the system under test
  • BThey are machine-generated and eliminate the need to write code by hand
  • CTo increase tight coupling
  • DTDD is impossible without them
  • EIsolating a particular system component for controlled testing

Unlock PSD to see the answer

You've previewed enough free PSD questions. Unlock PSD for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#mock objects#test isolation#unit testing#dependency control
Full PSD Practice