Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Microsoft .NET Interview Questions and Answers

  Difficulty Level: AllBeginnerIntermediateExperienced/Expert

Ques 1. .NET Stands for?

Ques 2. Name 10 C# keywords.

Ques 3. What is public accessibility?

Ques 4. What is protected accessibility?

Ques 5. What is protected internal accessibility?

Ques 6. What is private accessibility?

Ques 7. What is the default accessibility for a class?

Ques 8. What is the default accessibility for members of an interface?

Ques 9. What is the default accessibility for members of a struct?

Ques 10. Can the members of an interface be private?

Ques 11. Methods must declare a return type, what is the keyword used when nothing is returned from the method?

Ques 12. Class methods to should be marked with what keyword?

Ques 13. A class can have many mains, how does this work?

Ques 14. Does an object need to be made to run main?

Ques 15. Write a hello world console application.

Ques 16. What are the two return types for main?

Ques 17. What is a reference parameter?

Ques 18. What is an out parameter?

Ques 19. Write code to show how a method can accept a varying number of parameters.

Ques 20. What is an overloaded method?

Ques 21. What is recursion?

Ques 22. What is a constructor?

Ques 23. If I have a constructor with a parameter, do I need to explicitly create a default constructor?

Ques 24. What is a destructor?

Ques 25. Can you use access modifiers with destructors?

Ques 26. What is a delegate?

Ques 27. Write some code to use a delegate.

Ques 28. What is a delegate useful for?

Ques 29. Are events synchronous of asynchronous?

Ques 30. Events use a publisher/subscriber model. What is that?

Ques 31. Can a subscriber subscribe to more than one publisher?

Ques 32. What is a value type and a reference type?

Ques 33. Name 5 built in types.

Ques 34. string is an alias for what?

Ques 35. Is string Unicode, ASCII, or something else?

Ques 36. Strings are immutable, what does this mean?

Ques 37. Name a few string properties.

Ques 38. What is boxing and unboxing?

Ques 39. Write some code to box and unbox a value type.

Ques 40. What is a heap and a stack?

Ques 41. What is a pointer?

Ques 42. What does new do in terms of objects?

Ques 43. How do you dereference an object?

Ques 44. In terms of references, how do == and != (not overridden) work?

Ques 45. What is a struct?

Ques 46. Describe 5 numeric value types ranges.

Ques 47. What is the default value for a bool?

Ques 48. Write code for an enumeration.

Ques 49. Write code for a case statement.

Ques 50. Is a struct stored on the heap or stack?

Ques 51. Can a struct have methods?

Ques 52. What is checked { } and unchecked { }?

Ques 53. Can C# have global overflow checking?

Ques 54. What is explicit vs. implicit conversion?

Ques 55. Can assignment operators be overloaded directly?

Ques 56. What do operators is and as do?

Ques 57. What is the difference between the new operator and modifier?

Ques 58. Explain sizeof and typeof.

Ques 59. What doe the stackalloc operator do?

Ques 60. Contrast ++count vs. count++.

©2023 WithoutBook