C# .NET quiz and interview questions

Comprehensive C# quiz and questions from basic to advanced level that help you to review your C# knowledge and become the master of C#. Please read the following question carefully and select the correct anwser, you have to make your choice before going to the next question.

Hot and trending quiz topics for C# .NET

Formatting

This quiz covers most common string formatting and datetime formatting methods

Multithreading

This topic covers threading common issues, best practices and how to implement multi-threading application correctly

Events & Callbacks

An event can be used to provide notifcations. You can subscribe to an event if you are interested in those notifcations. You can also create your own events and raise them to provide notifcations when something interesting happens  

Recent added questions

  • What is the valid result of s?

    string s = String.Format("It is now {0:d} at {0:t}", DateTime.Now);

     

  • Using multiple threads can neither improve responsiveness, nor enable you to make use of multiple processors

  • A thread can be seen as a virtualized CPU

  • What is the ouput?

    int integerNumber;
    integerNumber = 17843;
    Console.WriteLine(integerNumber.ToString("F", 
                            CultureInfo.InvariantCulture));

     

  • You are using a multicast delegate with multiple subscribers. You want to make sure that all subscribers are notifed, even if an exception is thrown. What do you do?

  • You have declared an event on your class, and you want outside users of your class to raise this event. What do you do?

  • You have a private method in your class and you want to make invocation of the method possible by certain callers. What do you do?

  • You can customize events by adding a custom event accessor and by directly using the underlying delegate type.
     

View all C# .NET quiz questions

© 2017 QuizBucket.org