Which code should you use?

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

microsoft-exams

4 thoughts on “Which code should you use?

  1. #if DEBUG
    Console.WriteLine(“Entering Debug Mode”);
    #else
    Console.WriteLine(“Enterin Release Mode”);
    #endif

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.