ASP.Net Interview Question and Answers

156. What is Difference between Namespace and Assembly?
  Namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.
 
Your Name Your Email-ID
Your Answer
157. What is the difference between early binding and late binding?
  Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.
 
Saurabh Pandey, said May 07, 2014
OverLoading is example of early binding. Overriding is the exaple of late binding.
Your Name Your Email-ID
Your Answer
158. What is reflection?
  All .NET compilers produce metadata about the types defined in the modules they produce. This metadata is packaged along with the module (modules in turn are packaged together in assemblies), and can be accessed by a mechanism called reflection.
The System.Reflection namespace contains classes that can be used to interrogate the types for a module/assembly.
 
Your Name Your Email-ID
Your Answer
159. What namespace does the Web page belong in the .NET Framework class hierarchy?
  System.Web.UI.Page
 
Your Name Your Email-ID
Your Answer
160. What is a bubbled event?
  When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents.
 
Your Name Your Email-ID
Your Answer