You are on page 1of 3

C# interview questions

Technical C# interview questions


1. Describe namespaces and their purpose.
2. What is the purpose of a constructor?
3. Describe the GAC and where it is located.
4. The strings in a C# are immutable. Why is this?
5. Describe DLL Hell and how .NET solves it.
6. How do you overload a method?
7. In order to prevent a class from being inherited, what do you do?
8. For a C# console application, what is the execution point?
9. How, without escaping each backslash, do you initiate a string?
10. Describe the difference between a struct and a class.
11. Describe a singleton.
12. What advantages does C# have over C++ or Java?
13. What is the purpose of a destructor?
14. What is the purpose of encapsulation?
15. In a C# program, what types of errors can occur?
16. Describe the difference between public, static and void.
17. What is the purpose of statement in C#?
18. Describe the difference between ref and out parameters.
19. Are you able to use this within a static method?
20. Describe the difference between constants and read-only.
21. Define value types and reference types.
22. Describe Custom Control and User Control.
23. Describe sealed classes in C#.
24. Is it possible for a private virtual method to be overridden?
25. Describe the differences between System.String and System.Text.StringBuilder classes.
26. To sort elements of the array in descending order, what should you do?
27. Describe the difference between an interface and abstract class.
28. Define circular references.
29. What are some commonly used types of exceptions in .Net?
30. Describe how to use nullable types in .Net.
31. Is C# code considered managed or unmanaged code?
32. Is it possible for multiple catch blocks to be executed?
33. What is the purpose of assert()?
34. What would your reasons be for using untrusted verification?
35. Describe the benefits of using MVC.
36. Describe the complete flow of MVC.
37. What differences are there between each version of MVC?
38. Is it possible to map multiple URLs to the same action?
39. Using hyperlink, how can we navigate from one view to another?
40. Describe the difference between tempdata, viewdata and viewbag.
41. In MVC, how can we do validations?
42. Is it possible to display all errors in one go?
43. For MVC, how do you implement windows authentication?
44. Describe the difference between ActionResult and ViewResult.
45. In AJAX, what kind of events can be tracked?
46. Describe the different types of results in MVC.
Personal C# interview questions
47. Describe yourself professionally in a few words.
48. In our industry, what are some important trends that you see?
49. What are your reasons for leaving your previous/present job?
50. Your resume shows that you may be over-qualified for this position. What is your opinion of
this?
51. What do you feel is an appropriate salary for this position?
52. How do you remain abreast of new developments in technology?
53. If your previous manager was in the room with us, what do you think he would have to say
about you?
Scenario interview questions
54. Would you describe yourself as a problem solver? If so, why? Can you give any example
The company interview questions
55. What do you know about our company and our products?
56. Why do you want to work for this organization?
Career C# interview questions
57. In two or three years from now, what do you see yourself doing?
58. Describe three of your accomplishments over the past few years that you are most proud of.
59. So far, how successful do you feel have you been?
60. What long-term goals do you have?

You might also like