C# Interview Questions

C# Interview Questions 5

  1. What is the difference between shadow and override
  2. You have an event handler called MyEvent and you want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?
  3. Which debugging window allows you to see the methods called in the order they were called?
  4. Which debugging window allows you to see all the name and values of all the variables in scope?
  5. What is wrapper class?is it available in c#?
  6. What is protected internal class in C#

C# Interview Questions 4

Can DateTime variables be null?
A1: No, because it is a value type (Struct)

Q2: Describe the Asp.net Page Life Cycle?
A2: http://msdn2.microsoft.com/en-us/library/ms178472.aspx

C# Interview Questions 3

What does \a character do?
On most systems, produces a rather annoying beep.

Can you create enumerated data types in C#?
Yes.

What’s different about switch statements in C#?
No fall-throughs allowed.

C# Interview Questions 2

Explain the differences between Server-side and Client-side code?
Server side code executes on the server.For this to occur page has to be submitted or posted back.Events fired by the controls are executed on the server.Client side code executes in the browser of the client without submitting the page.

C# Interview Questions 1

What are indexers? What are their advantages over arrays?
An indexer enables you to treat an object like an array.It helps you to acces the arrays in a class using the class name. Indexer enables you to use bracket notation ([]) with an object to set and get a value from an object.They encapsulate method calls into more convenient representation of value access and value setting.