PrepAway - Latest Free Exam Questions & Answers

You need to use different databases during the development phase and the testing phase by using conditional co

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?

PrepAway - Latest Free Exam Questions & Answers

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.
How to: Compile Conditionally with Trace and Debug
https://msdn.microsoft.com/en-us/library/64yxa344(v=vs.110).aspx

6 Comments on “You need to use different databases during the development phase and the testing phase by using conditional co

  1. Lord Vader says:

    no typo answer is C.

    The /define option has the same effect as using a #define preprocessor directive except that the compiler option is in effect for all files in the project. A symbol remains defined in a source file until an #undef directive in the source file removes the definition. When you use the /define option, an #undef directive in one file has no effect on other source code files in the project.




    0



    1

Leave a Reply