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:

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:

Answer:



Leave a Reply 8

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


wer

wer

yes
yes
no

f9p

f9p

For me is yes,yes,yes because #define DEBUG is declared.

erm

erm

It’s yes yes yes as f9p said. Tested in console application

wer

wer

Agreed, I missed that line

YouCrackedMeUp

YouCrackedMeUp

Yes, Yes, No
is the answer LogData2 will not be written because it is on RELEASE mode.

JS1985

JS1985

Wrong. #define DEBUG is declared on the very first line

Seamus

Seamus

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
}

}