.NET Framework Interview Questions

Here are list of .NET Framework Interview Questions. To get the answer of these .NET Framework Interview Question, click here.

Protected by Copyscape Duplicate Content Protection Tool
  1. What are Web services?
  2. What are session management techniques in .NET?
  3. What is MVC (Model View Controller) pattern?
  4. How to use trace in libraray classes (like BAL, DAL)?
  5. What is gacutil.exe?
  6. What is boxing and unboxing?
  7. What provider ADO.NET use by default?
  8. Difference between Response.Expires and Response.ExpiresAbsolute?
  9. What is CLR (Common Language Runtime)?
  10. Write a function into Javascript that will toggle display a HTML element.
  11. When to use String and StringBuilder class?
  12. Which statement is correct in terms of try catch finally block?
  13. String is a value type or reference type?
  14. List few ValueTypes variables.
  15. What is the use of RCW & CCW?
  16. What is StringCollection?
  17. Where reference and value types variables are stored?
  18. What is Singleton pattern?
  19. What does apsx stand for?
  20. What is CTS?
  21. What is CLS?
  22. What is MSIL?
  23. What is Satellite Assembly?
  24. What is RSS?
  25. What is application domain?
  26. What is Remoting in .NET?
  27. What is Property?
  28. Can you assign GridView.DataSource = DataReader()?
  29. Can a DataAdapter.Fill method take DataTable as parameter or it works only for DataSet?
  30. What is typed dataset ?
  31. Can you place two .dll files with the same name in GAC (Global Assembly Cache)?
  32. What's the difference between private and shared assembly?
  33. What is the location of Global Assembly Cache on the system.
  34. What is JIT (Just-in-time) Compiler ?
  35. What is Managed and Unmanaged code?
  36. What is the difference between Namespace and Assembly?
  37. What is Manifest?
  38. What is Metadata?
  39. What is CODE Access security?
  40. What’s difference between System.SystemException and System.ApplicationException?
  41. What is multi-threading?
  42. Which namespace threading contains?
  43. What the way to stop a long running thread ?
  44. What is the diffeernce between Overload and Override?
  45. How many web.configs can an application have?
  46. Where do you store connection string?
  47. What is abstract class
  48. What are the collection classes?
  49. list the object-oriented concepts
  50. What is difference between interface inhertance and class inheritance?
  51. What are Abstract base classes?
  52. When is web.config called?
  53. What does connection string consist of?
  54. What is a runtime host?
  55. What inheritance does VB.NET support?
  56. Differences between application and session ?
  57. What is web application virtual directory
  58. If cookies is disabled in client browser, will session tracking work?
  59. What is a Process, Session and Cookie?
  60. Explain serialization?
  61. What is the difference between overloading and overriding ? how can this be .NET?
  62. Explain friend and protected friend?
  63. What is isPostback property?
  64. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?
  65. How to retrieve the last error occured in the application?
  66. How to clear the last error occured in the application?
  67. when we do the searchpattern in

    Directory.GetFiles(DirectoryPath, Filter)

    it will show the 5.docx files two times.
  68. Whats MSIL, and why should my developers need an appreciation of it if at all?
  69. Can I use the Win32 API from a .NET Framework program?
  70. What are Dead letter queues?
  71. what are the various ways of hosting a WCF service?
  72. can we force garbage collector to run?
  73. What is the difference between debug build and release build?
  74. Difference between String and Stringbuilder reference types?
  75. How do you configure the SOAP (Simple Object Access Protocol) to associate with particular web method?
  76. Your Web site processes book orders. One of the application methods contains the following code segment.XmlDocument doc = newXmlDocument();doc.LoadXml(“<book><discount>10</discount>”+”<title>Dictionary</title></book>”);You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal?
  77. Garbage Collection (GC) is a one of the data structure collection in .NET Framework.

    While creating Web Service through visual studio template, which namespaces are include automatically?
  78. What is the primary purpose of Namespace property, which is used in WebServices attribute?
  79. Which page is used to display the link of webmethods in ASP.NET web services?
  80. What are the three main section of SOAP (Simple Object Access Protocol) message?
  81. For SOAP (Simple Object Access Protocol) message formatting what is the purpose of Encoded value?
  82. Which method is used to serialize an object into an XML document from Xmlserializer class?
  83. What value can be used when setting the direction of the SOAP header?
  84. Which is a true statement for BeforeSerialize stage of an in-coming request message occurs?
  85. What is true for namespace in .NET Framework?
  86. What is Manifest?
  87. whats the similarilty & difference between .dll extension and .exe extension files?
  88. If I write System.exit (0); at the end of the try block, will the finally block still execute ?
  89. What is the difference between Master- Detail view and MVG?
  90. Difference between VB.NET and C#.
  91. Name a feature which is common to all .NET languages?
  92. Most Important Questions in Interview
  93. What event can you subscribe to if you want to display information from SQL Print statements?
  94. Advantages of Crystal Reports
  95. What is the Difference between Web.config and Machine.config?
  96. What’s the difference between Response.Write() andResponse.Output.Write()?
  97. From the following which datatype is not supported in RangeValidator?
  98. What is the Global.asax used for?
  99. What does the "EnableViewState" property do? Why would I want it on or off?
  100. What is GC in NET Framework?
  101. What is the common language runtime (CLR)?
  102. What is the common type system (CTS)?
  103. What is the Microsoft Intermediate Language (MSIL)?
  104. What is managed code and managed data?
  105. What is strong name?
  106. What is portable executable (PE)?
  107. What is Code Access Security (CAS)?
  108. Which namespace is the base class for .net Class library?
  109. What is serialization in .NET?
  110. What is Deserialization in .NET?
  111. What is exception handling?
  112. What are the contents of assembly?
  113. What are the different types of assemblies?
  114. What is the difference between a private assembly and a shared assembly?
  115. How to find methods of a assembly file, without using ILDASM?
  116. What is the difference between ref & out parameters?
  117. What is the difference between Array and Arraylist?
  118. What is Jagged Arrays?
  119. What are indexers?
  120. What is Interop Services?
  121. What is RCW?
  122. What is CCW?
  123. What is Pinvoke?
  124. What is side-by-side Execution?
  125. How you will Hide Column(s) in the Windows Forms DataGridView Control?
  126. What is the CAS ? .How to implement CAS ?
  127. What is an application domain?
  128. In which Event all the Controls will be loaded(in asp.net)?
  129. Machine.config will be created automatically when you
  130. In a connection-oriented socket, Which Protocal is used to establish a session (connection) between two IP address endpoints.
  131. Which Account type choose to minimize security risks?
  132. In Which method to stops running thread ?
  133. which of the following encoding type the largest file size?
  134. Where does global.asax Live?
  135. Which property of textbox cannot be change at run time?
  136. ________ is new type introduced in C#4.0?
  137. How can we access COM object in C#4.0?
  138. ________is one of the new feature added in C# 4.0 ?
  139. How many classes can a single .NET DLL contain?
  140. How many .NET languages can a single .NET DLL contain?
  141. Webservices support data reader.
  142. Can we have two files with the same file name in GAC?
  143. Difference between String and StringBuilder class?
  144. Does ADO.NET supports automatic connection pooling?
  145. Does CLR impose a strict versioning policy for the private assembly?
  146. How .NET Framework 2.0 tackles the unhandled exceptions?
  147. What are the differences between .NET Framework 3.0 and 3.5?
  148. What is Runtime Host ?
  149. In how many ways you can deploy an Asp.Net Application?
  150. This serves as a wrapper for a globally unique identifier (GUID) for a COM class…
  151. This is generalized Clipboard format containing view of the data, and a storage medium indicator…
  152. This Contains values that are used to create buttons on a toolbar…
  153. This Enum is used with TextFieldParser Object to determine either fields are delimited or fixed width…
  154. This namespace provides classes to run the Assembly Registration tool from managed code…
  155. This namespace is used for constructing the communication pipeline between a host application and an add-in…
  156. To manage installer of custom componenet the namespace used is,…
  157. Which one is faster ?
  158. System.Collections.Specialized Namespace contains…
  159. HybridDictionary Class implements…
  160. IOrderedDictionary elements can be accessed with,…
  161. Hashtable with the key and the value strongly typed to be strings rather than objects is with class,
  162. ColorPalette Class provided colors are…
  163. ColorMatrix Class is…
  164. ColorMode specifies…
  165. Scan0 is used to…
  166. ColorChannelFlag Enumeration is in…
  167. With which class you can compare types of images ? With which property ?
  168. Base interface to know all contracts used for communication between auto updated components is…
  169. This represents a symbol binder for managed code…
  170. With which enum you can know whether a calendar is solar-based, lunar-based, or lunisolar-based…
  171. This class defines the period of daylight saving time…
  172. Web.config info get stored in...
  173. Culture-specific display of digit(number)s can be achieved with...
  174. Which method is used to serialize an object into an XML document from Xmlserializer class?
  175. can we assign Null value to Struct variable.
  176. What is the difference between a Struct and a Class?
  177. What is the .NET collection class that allows an element to be accessed using a unique key?
  178. What does the term immutable mean?
  179. Can you store multiple data types in System.Array?
  180. What exactly a Constructor is doing ?
  181. If a method is marked as protected internal who can access it?
  182. Why is Global.asax is used for ?
  183. What are Jagged Arrarys ?
  184. WHat is HttpModule
  185. What are the major processes that handle a request in Dot Net ?
  186. What is the use of System.Web namespace?
  187. Which casing should be used to declare name of class, as per the Microsoft coding standard?
  188. Which casing should be used to declare name of interface, method and Namespace, as per the Microsoft coding standard?
  189. Which casing should be used to declare name of Parameter, as per the Microsoft coding standard?
  190. How do we store the same named assemblies in GAC? Whether its possible?
  191. Can you please tell me about the typed dataset?
  192. What is the class to access FTP?
  193. Tell me a method to access a COM dll in .NET?
  194. What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?
  195. Why string is called Immutable data Type?
  196. How does assembly versioning work?
  197. How does CAS work?
  198. What's the difference between the Debug class and Trace class?
  199. What is the difference between the value-type variables and reference-type variables in terms of garbage collection?
  200. What's the advantage of using System.Text.StringBuilder over System.String?
  201. What's a satellite assembly?
  202. Describe the difference between a Thread and a Process?
  203. What is the difference between an EXE and a DLL?
  204. What is strong-typing versus weak-typing?
  205. How do you generate a strong name?
  206. What is the difference between a Debug and Release build?
  207. Explain the importance and use of each, Version, Culture and PublicKeyToken for an assembly.
  208. How to install a strong named assembly to GAC at command prompt?
  209. What is GAC?
  210. How to create Key Pair?
  211. What do you mean by ActiveX components?
  212. Which namespace in .NET is used in networking programming?
  213. What is the name of C# command line compiler?
  214. What is an Assembly in .NET?
  215. What is the base class for all .NET classes?
  216. Why HashTable is used?
  217. Which namespace is used to create a multi-threaded application?
  218. What is the role of compiler?
  219. What is the namespace to use LINQ to XML?
  220. What are the elements inside an assembly?
  221. what is Reflection?
  222. what namespace is used for the controls in a mobile web application?
  223. Which assembly is used for Mobile web application?
  224. Which file sets the environment variables for Visual Studio?
  225. Which namespace provides classes for Regular Expression?
  226. What is the use of System.SystemException namespace?
  227. Which class is the base class of all the exception classes?
  228. Which namespace is used to work with RSS feeds in .NET?
  229. Which namespace is used to create an Exception Tree?
  230. How can we open the disassembler from Dot Net Command prompt ?
  231. Sorting on a Datatable
  232. What is a DependencyProperty and How to implement it?
  233. What is Covariance and Contravariance ?
  234. What is equivalent for regsvr32.exe in .NET?
  235. Which design pattern is implemented in the below code snippet?



    using System;



    public class MyClass

    {

    private static MyClass instance;



    private MyClass() {}



    public static MyClass Instance

    {

    get

    {

    if (instance == null)

    {

    instance = new MyClass();

    }

    return instance;

    }

    }

    }
  236. Which NameSpace is used to get the information of events about the system, devices like Hard disk serial No, Operating System and Processor?
  237. What are the Expansions of MSIL, JIT, CLR, CTS, CLS, RCW?
  238. Which namespace contains the classes that required to serialize an object? Explain Object Serialization?
  239. Explain how to retrieve resources using ResourceManager class?
  240. What is code security? What are the types?
  241. Define Principal object?
  242. Explain declarative and imperative security?
  243. Define context menu?
  244. Explain the similarities and differences between arrays and collections?
  245. What is break mode? What are the options to step through code?
  246. How do we step through code?
  247. What are the debugging windows available?
  248. In .NET, which namespace contains classes used to

    a)Create a localized application?

    b)Develop Web Forms?

    c)Create Web server controls?

    d)Access Sql Server?

    e)Read a File?
  249. What is the concept of Automatic Memory Management in ASP.NET?
  250. What are the ways to retain variables between requests?
  251. Explain how to dynamically clone a menu in .NET?
  252. What are Merge module projects?
  253. Describe XCOPY deployment. Under what conditions is it useful? When can it not be used?
  254. Define the list of properties, methods and events included in SmtpClient class in the Framework?
  255. What is Network Load Balancing?
  256. How can you change priority and what the levels of priority are provided by .NET?
  257. What is an application pool?
  258. How can you bind the debug failed assembly?
  259. What is the Difference between Compiler and Translator?
  260. In which way you can copy the COM component to the server and register?
  261. Can we create web application with out web.config file?
  262. Which is an example of Pascal Casing ?
  263. Which class defines the methods for implementing drawings, shapes, writing

    strings in a GUI based application?
  264. What will be the output of this program?

    using System;

    class Class2

    {

    Class2()

    {

    static int i;

    i++;

    Console.WriteLine(i);

    }



    static void Main()

    {

    Class2 a = new Class2();

    Class2 b = new Class2();

    }

    }
  265. Can classes be marked as protected or private ?
  266. Do events have a return type?
  267. Which encoding does not allow Chinese or Arabic characters?
  268. What are the differences between an interface and an abstract class.
  269. Which dll is known as the dll for microsoft .NET runtime ?
  270. What is the difference between casting and boxing?
  271. Which of these files are in the Config folder of the .net Framework?
  272. Which class is used to represent the Exceptions thrown by the CLR?
  273. Which of these classes is not derived from MemberInfo class?
  274. How you load dynamic assembly? How will create assemblies at run time?
  275. What is PInvoke?
  276. What is XSL?
  277. Differences between Window and Web Forms
  278. Which of these collections can be made as readonly?
  279. What is the difference between .NET 1.1,2.0,3.0,3.5 and 4.0 ?
  280. Which of these collections uses keys to uniquely identify the data?
  281. What is difference between out and ref in c#?
  282. What is .NET Framework?
  283. What is CLS?
  284. Which of these is a valid path declaration?
  285. Differences between method overloading and method overriding
  286. Which namespace defines the collection classes?
  287. Difference between an Assembly and DLL
  288. OOP .NET Interview question :- What is Polymorphism?
  289. What is MSIL?
  290. Difference between Finalize and Dispose methods ?
  291. How many classes a dll can contain?
  292. What is Serialization?
  293. Can abstract class have constructors?
  294. Difference between String.Empty and ""
  295. Difference between Environment.MachineName, SystemInformation.ComputerName

    and Dns.GetHostName
  296. What will be the output of this code?



    using System;



    class A

    {

    class B

    {

    public string str = "welcome";

    }

    }



    class Demo

    {

    static void Main()

    {

    B Obj = new B();

    Console.WriteLine(Obj.str);

    }

    }
  297. How can you specify the framework version targetted by your application?
  298. Which controls cannot be placed on an MDI Form?
  299. Difference between imperative and interrogative code.
  300. Difference between a Class and Component?
  301. Difference between event and delegate?
  302. Is versioning applicable to private assemblies?
  303. What is Application Domain?
  304. What is Constructor Chaining?
  305. How many languages a .NET DLL can contain?
  306. Which of the following namespaces spans across multiple assemblies?
  307. What does a method's signature consist of?
  308. What is an assembly manifest?
  309. What is an application manifest?
  310. Which is true regarding the Delegates ?(select all that apply)



    a)They can be written in a class as well as in a structure.



    b)They can be static



    c)They are not inherited
  311. You are creating emp class whose objects need to be sorted when in an ArrayList collection. How can you do that?
  312. Which of these gives us the method name that throws the current exception?
  313. Which of these classes can be used to write string data?
  314. Which of these components can be used for printing?
  315. Difference between lock and Monitor.Enter()
  316. How can you write to a File System?
  317. How can you store decimals data precisely from .NET?
  318. Can you install multiple assemblies together?
  319. Difference between Assembly.LoadFrom() and Assembly.LoadFile() methods?
  320. Is MSIL a high/low/middle level language?
  321. Can we use static constructors to initialize non static members?
  322. Which Constructor gets fired first Static or Non-Static while creating an object of a class?
  323. Difference between Globalization and Localization ?
  324. Which debugging window can be used to view the variables in current and previous statements?
  325. On which of these locations, we cannot create a breakpoint?
  326. What are listeners?
  327. Which of these editors allows us to perform searches on the target machine for

    a Registry key or Windows Installer components?
  328. What are merge modules?
  329. .NET and Java J2ee Design pattern interview question :- What is the difference between Template and Strategy pattern?
  330. How the garbage collector knows when to collect garbage ?
  331. What is the difference between ASP.NET and VB.NET?
  332. What is an application domain?
  333. What is the difference between a strong and weak named assemblies?
  334. What are the different types of assemblies in .net?

Protected by Copyscape Duplicate Content Check