C# interview questios
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#
7. Which keyword is used of specify a class that cannot inherit by other class
8. Can you create the instance for abstract classes
9. Can we use Friend Classes or functions in Cthe way we use it in C++
10. How we can use inheritance and polymorphisms in cprogramming?
11. How to find exceptions in database
12. How can objects be late bound in .NET?
13. Where we can use DLL made in C#.Net
14. What Datatypes does the RangeValidator Control support?
15. Constructor is the method which is implicitly created when ever a class is instantiated. Why?
16. Why multiple Inheritance is not possible in C#?
17. Why strings are immutable?
18. This is a Regular expression built for parsing string in vb.net and passed to Regex class. Dim are As Regex = New Regex(”,(?=([^”"]*”"[^”"]*”")*(?![^”"]*”"))”) What is Cequivalent for this regular expression.
19. How to convert ocx into DLL
20. What is the main difference between pointer and delegate with examples?
21. What is object pooling
22. How do I read the information from web.config file?
23. What is the default Function arguments?
24. What is XML Schema?
25. How can I check whether a dataset is empty or not in C#.net
26. Is it possible to inherit a class that has only private constructor?
27. How do you choose 1 entry point when Cproject has more Main( ) method?
28. The compiler throws an error if XML comments is not well formed
29. Which of the following is not a Creserved keyword
30. By declaring a base class function as virtual we allow the function to be overridden in subclasses
31. Which of the following can not be declared as virtual
32. Sealed class can be inherited
33. Which of the following statements is not true for interfaces
34. It is not permitted to declare modifier on the members in an interface definition
35. Interface members can not be declared as
36. Which method is implicitly called when an object is created
37. Which of the following statement is invalid with regards to constructor
38. Constructors can not be static
39. It is perfectly legitimate to throw exceptions from catch and finally blocks
40. It is not possible for a delegate to wrap more than 1 methos
41. In Cevents are actually a special form of delegates
42. Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
43. How are the attributes specified in C#
44. For performing repeated modification on string which class is preferred
45. In order to use stringbuilder in our class we need to refer
46. Which of the following is not a member of stringbuilder
47. Which method is actually called ultimately when Console.WriteLine( ) is invoked
48. What happens when you create an arraylist as ArrayList Arr=new ArrayList()
49. What is the output of Vectors.RemoveAt(1)
50. GetEnumerator( ) of Ienumerable interface returns
51. How do you add objects to hashtable
52. If A.equals(B) is true then A.getHashcode & B.getHashCode must always return same hash code
53. The assembly class is defined in
54. What is the first step to do anything with assembly
55. How do you load assembly to running process
56. Assemblies cannot be loaded side by side
57. Application Isolation is assured using
58. Where does the version dependencies recorded
59. How do you refer parent classes in C#
60. Which attribute you generally find on top of main method
61. How do you make a class not instantiable
62. In a multilevel hierarchy how are the constructors are called
63. Which utility is used to create resource file
64. What is the extension of a resource file
65. A shared assembly must have a strong name to uniquely identify the assembly
66. Public policy applies to
67. Stream object can not be initialized
68. Which of the following has stream as the base class
69. Which class use to Read/Write data to memory
70. To Configure .Net for JIT activation what do you do
71. Which method is used by COM+ to ascertain whether class can be pooled
72. How do you import Activex component in to .NET
73. Net Remoting doesn’t allow creating stateless & stateful Remote objects
74. Windows services created by Capp run only
75. The Ckeyword int maps to which .NET type
76. What is an indexer in C#
77. In the following cases which is not function overloading
78. How to implement multiple inheritence in C#
79. In Ca technique used to stream the data is known as
80. Can static methods be overridable?
81. What is the use of fixed statement
82. What is the order of destructors called in a polymorphism hierarchy
83. How can you sort the elements of the array in descending order
84. Is it possible to Override Private Virtual methods
85. What does the volatile modifier do
86. What is the Cequivalent of System.Single
87. A single line comments are implemented by
88. Code running under the control of CLR is often referred as
89. Platform specific code is obtained when
90. Intermediate Language also facilitates language interoperability
91. Which are the important features of IL
92. NET interfaces are not derived from IUnknown & they do not have associated GUID’s
93. Code written in C cannot used in which of the languages
94. It is not possible to debug the classes written in other .Net languages in a Cproject.
95. Which of the following is not a subclass of Value Type class
96. Which of the following is not a subclass of reference type
97. Which is .NET s answer to Memory Management
98. .NET run time relies on the object reference counts to manage memory
99. What are Namespaces
100. Which of the following keyword is used along with Main function in C#



No comments:
Post a Comment