Home C#
C# interview questions
Filter     Display # 
# Article Title Hits
1 Will finally block get executed if the exception had not occurred? 144
2 What is the C# equivalent of C++ catch (…), which was a catch-all statement for any possible except 119
3 Can you have two files with the same file name in GAC? 157
4 So let’s say I have an application that uses MyApp.dll assembly, version 1.0.0.0. There is a securit 143
5 What is delay signing? 144
6 Is there an equivalent of exit() for quitting a C# .NET application? 146
7 Can you prevent your class from being inherited and becoming a base class for some other classes? 139
8 Is XML case-sensitive? 141
9 If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of 126
10 I was trying to use an "out int" parameter in one of my functions. How should I declare the variable 102
11 How do I make a DLL in C#? 119
12 How do I simulate optional parameters to COM calls? 104
13 How do you directly call a native function exported from a DLL? 91
14 How do I simulate optional parameters to COM calls? 81
15 What do you know about .NET assemblies? 96
16 What’s the difference between private and shared assembly? 128
17 What’s a strong name? 95
18 How can you tell the application to look for assemblies at the locations other than its own install? 95
19 How can you debug failed assembly binds? 95
20 Where are shared assemblies stored? 123
21 How can you create a strong name for a .NET assembly? 104
22 Where’s global assembly cache located on the system? 105
23 What's C# ? 115
24 Is it possible to inline assembly or IL in C# code? 108
25 Is it possible to have different access modifiers on the get/set methods of a property? 106
26 Is it possible to have a static indexer in C#? allowed in C#. 128
27 If I return out of a try/finally in C#, does the code in the finally-clause run? 106
28 I was trying to use an out int parameter in one of my functions. How should I declare the variable t 123
29 How does one compare strings in C#? 119
30 How do you specify a custom attribute for the entire assembly (rather than for a class)? 91
31 How do you mark a method obsolete? 106
32 How do you implement thread synchronization (Object.Wait, Notify,and CriticalSection) in C#? 96
33 How can you sort the elements of the array in descending order? 131
34 What’s the .NET collection class that allows an element to be accessed using a unique key? 169
35 What class is underneath the SortedList class? 148
36 Will the finally block get executed if an exception has not occurred?­ 132
37 What’s the C# syntax to catch any possible exception? 155
38 Can multiple catch blocks be executed for a single try statement? 193
39 Explain the three services model commonly know as a three-tier application. 139
40 What is the syntax to inherit from a class in C#? 125
41 Can you prevent your class from being inherited by another class? 115
42 Can you allow a class to be inherited, but prevent the method from being over-ridden? 118
43 Does C# support multiple-inheritance? 122
44 Who is a protected class-level variable available to? 117
45 Are private class-level variables inherited? 120
46 Describe the accessibility modifier “protected internal”. 127
47 What’s the top .NET class that everything is derived from? 120
48 What does the term immutable mean? 110
49 What’s the difference between System.String and System.Text.StringBuilder classes? 115
50 What’s the advantage of using System.Text.StringBuilder over System.String? 158
51 Can you store multiple data types in System.Array? 133
52 What’s the difference between the System.Array.CopyTo() and System.Array.Clone()? 121
 
 

Related links

Related Links:

Related Images

Related Links: