Machine-translated by Google. Questions are authored in English.
Top

Discussion

Assertion: on-target testing can be dispensed with if unit tests on the host all pass. Reason: the same source code is compiled in both cases.

  • A.both the assertion and the reason are true but the reason does not explain the assertion
  • B.the assertion is true but the reason given for it is false
  • C.the assertion is false although the reason offered is a true statement in itself
  • D.both the assertion and the reason are true and the reason explains the assertion

Answer: C

The source may be the same but the compiler, the word width, the alignment, the timing and every register access differ, and none of that is exercised on the host. Host tests are fast feedback on logic and no substitute for running on the part.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.