Quiz 2 – Easy WCF
Skip to content

Quiz 2

Can you predict the output for below program ?

C# Program

 

 

 

Please click on ‘Start Quiz’ button to answer the quiz.

 

 

 

 

 

© 2015, admin. All rights reserved.

6 thoughts on “Quiz 2

  1. E says:

    Apologies for being a pedant, but please explain where the comma in the answer comes from!

    Reply
    • admin says:

      Good Catch. This has been corrected.

      Reply
  2. David says:

    If I´m not wrong, the result must be

    6 (space) 16

     

    Are correct?

    Reply
    • admin says:

      Yes, right.

      Reply
  3. B says:

    Although this will display the desired results for some in terms of security and actual math programming with numbers used for mathematical needs I would suggest using class math in . Net frame work. Another point of reference I would put each method in private rather then static . Seeing how the int i and x never change I would declare them as constants . Rember any time using a methods regarding math results use class math in dot. Net . I hope this helps and creates others to explore other net frame work avail abilities as well learn solid understandings Rember  object references would not be suggested wile creating a mathmatical program however this is a basic level application for demonstration purpose I  hope new comers learn about the mentioned differences as a learning tool

    Reply
  4. Pingback: Best 25 .net articles on the web in 2015 (Worth Reading !!!) – CsharpStar

Leave a Reply

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