Search⌘ K
AI Features

Quiz

Explore key concepts in unit testing for D, including bug analysis, test-driven development, and exception checks. This quiz helps reinforce your grasp of testing principles and prepares you for contract programming in D.

We'll cover the following...
Technical Quiz
1.

When a program that is built by the ‐unittest switch is started, its unit test blocks are executed first. Only if all of the unit tests pass does the program execution continue with main().

If a program is built by the -unittest switch, its unit test blocks are executed _____.

A.

before the execution of the main() function

B.

after the execution of the main() function

C.

when unittest blocks are called from the main() function

D.

at the end of the program


1 / 4
...