You need to use different databases during the developm…

You are creating an application that reads from a database.
You need to use different databases during the development phase and the testing phase by using conditional
compilation techniques.
What should you do?

You are creating an application that reads from a database.
You need to use different databases during the development phase and the testing phase by using conditional
compilation techniques.
What should you do?

A.
Configure the Define TRACE constant setting in Microsoft Visual Studio.

B.
Specify the /define compiler option.

C.
Run the Assembly Linker tool from the Windows Software Development Kit (Windows SDK).

D.
Decorate the code by using the [assembly:AssemblyDelaySignAttribute(true)] attribute.

Explanation:
You can specify the compiler settings for your application in several ways:
* The property pages
* The command line
* #CONST (for Visual Basic) and #define (for C#)
Note: You can have either the Trace or Debug conditional attribute turned on for a build, or both, or neither.
Thus, there are four types of build: Debug, Trace, both, or neither. Some release builds for production
deployment might contain neither; most debugging builds contain both.
Incorrect answers:
Not A: TRACE is used to enable tracing. It is not used for conditional compilation.
How to: Compile Conditionally with Trace and Debug
https://msdn.microsoft.com/en-us/library/64yxa344(v=vs.110).aspx



Leave a Reply 1

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