HOTSPOT
You are building an application in Microsoft Visual Studio 2013.
You have the following code.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
HOTSPOT
You are building an application in Microsoft Visual Studio 2013.
You have the following code.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
yes
yes
no
For me is yes,yes,yes because #define DEBUG is declared.
It’s yes yes yes as f9p said. Tested in console application
Agreed, I missed that line
Yes, Yes, No
is the answer LogData2 will not be written because it is on RELEASE mode.
Wrong. #define DEBUG is declared on the very first line
Hello, passed last week in England, anyway it is not easy, share my test questions here, you can have a look at it: http://www.certificatexam.com/?s=70-483 , wish they can help you a little bit!
Answer is Yes, Yes, Yes.
Tested in VS, see below code
public class Question4
{
public class TestClass
{
[Conditional(“DEBUG”)]
public void LogData()
{
Console.WriteLine(“LogDatal”);
}
public void RunTestClass()
{
this.LogData();
#if (DEBUG)
Console.WriteLine(“LogData2”);
#endif
}
}