You need to write a console application that meets the following requirements:
If the application is compiled in Debug mode, the console output must display Entering debug mode.
If the application is compiled in Release mode, the console output must display Entering release
mode.
Which code should you use?

A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
Programmatically detecting Release/Debug mode (.NET)
Boolean isDebugMode = false;
#if DEBUG
isDebugMode = true;
#endif
http://stackoverflow.com/questions/654450/programmatically-detecting-release-debug-mode-net
D
0
0
A similar quest implies that there is no such constraint as RELEASE (unless explicitly defined by the user). Hence the RELEASE branch should never pass. What is different here?
0
0
If you see syntax highlighting in B answer, TRACE is defined for current buid settings. May be B then?
0
0
Sorry, no. TRACE exist for Release too.
0
0
No correct answer
0
0
there is no one correct answer
0
0
the question doesnt imply release is defined. if not there is no correct answer.
0
0