Quiz 3 – Easy WCF
Skip to content

Quiz 3

What is the output of the following program ?

C# Hello World


Please click button below to answer the quiz.


© 2015 – 2016, admin. All rights reserved.

7 thoughts on “Quiz 3

  1. Xavier says:

    This example will not display something, because it will end directly at the environment statement, then for me, nothing will be displayed.


  2. Aniket Malvankar says:

    print Hello world text and exit from code.

  3. Pingback: Top 10 Popular & Tricky C# Puzzles in 2015 (Worth Trying !!!) – Easy WCF

  4. chaitanya says:

    Prints hello world and exits because Environment.Exit(0) terminates the process and returns the exit code to the Operating system.

  5. Rajanish says:

    It will print Hello World but we will not be able to see it as Environment.Exit(0) will exit the console app


  6. mark says:

    Code is invalid … you must have a catch after a try in C#

  7. Chris says:

    No you don’t! You can have a try…finally without a catch


Leave a Reply

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