nerdexam
GIAC

GSSP-NET · Question #8

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET 2005 as its application development platform. You have recently created an application that includes the code…

The correct answer is D. True. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ManSoft Inc. The company uses Visual Studio.NET 2005 as its application development platform. You have recently created an application that includes the code shown below. string str1 = "ABC"; string str2 = "u"; str2 += "Certify"; Console.WriteLine(str1 == str2); Console.WriteLine((Object) str1 == (Object) str2); Console.WriteLine(str1.Equals(str2)); What will be the output of the above code?

Options

  • AFalse
  • BFalse
  • CTrue
  • DTrue

How the community answered

(39 responses)
  • A
    5% (2)
  • B
    10% (4)
  • C
    3% (1)
  • D
    82% (32)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice