Quiz – 8 – Easy WCF
Skip to content

Quiz – 8

Predict the output for below simple C# program:

Please click on below button to start the Quiz


© 2015 – 2016, admin. All rights reserved.

4 thoughts on “Quiz – 8

  1. Mike Tuersley says:

    I’m afraid your quiz is incorrect. The print out would be:

    Ha

    169

    They would NOT be concatenated.

    Reply
    • admin says:

      It is correct. It will print Ha 169 and won’t concatenate. So the quiz option to be selected is ‘none of the above’.

      Reply
  2. Christopher Singleton says:

    Console.WriteLine always follows your cursor to the next line. This would definitely give you:

    Ha

    Ha

    Because they are concatenated, both the H and a come together.

    Hence, the answer is none of the above.

    Reply
    • admin says:

      SOrry, The answer is ‘None’ because you will get Ha 169.

      Reply

Leave a Reply

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