• +91 9723535972
  • info@interviewmaterial.com

DotNet Interview Questions and Answers

DotNet Interview Questions and Answers

Question - 101 : -   Changes to which portion of version number indicates an incompatible change?

Answer - 101 : -   Major or minor. Changes to the major or minor portion of the version number indicate an incompatible change. Under this convention then, version 2.0.0.0 would be considered incompatible with version 1.0.0.0. Examples of an incompatible change would be a change to the types of some method parameters or the removal of a type or method altogether. Build. The Build number is typically used to distinguish between daily builds or smaller compatible releases. Revision. Changes to the revision number are typically reserved for an incremental build needed to fix a particular bug. You'll sometimes hear this referred to as the "emergency bug fix" number in that the revision is what is often changed when a fix to a specific bug is shipped to a customer.

Question - 102 : - How to set the debug mode?

Answer - 102 : -   Debug Mode for ASP.NET applications - To set ASP.NET appplication in debugging mode, edit the application's web.config and assign the "debug" attribute in < compilation > section to "true" as show below: < configuration >   < system.web >     < compilation defaultLanguage="vb" debug="true" / > .... ... .. < / configuration > This case-sensitive attribute 'debug tells ASP.NET to generate symbols for dynamically generated files and enables the debugger to attach to the ASP.NET application. ASP.NET will detect this change automatically, without the need to restart the server. Debug Mode for ASP.NET Webservices - Debugging an XML Web service created with ASP.NET is similar to the debugging an ASP.NET Web application.

Question - 103 : -   What is the property available to check if the page posted or not?

Answer - 103 : -   The Page_Load event handler in the page checks for IsPostBack property value, to ascertain whether the page is posted. The Page.IsPostBack gets a value indicating whether the page is being loaded in response to the client postback, or it is for the first time. The value of Page.IsPostBack is True, if the page is being loaded in response to the client postback; while its value is False, when the page is loaded for the first time. The Page.IsPostBack property facilitates execution of certain routine in Page_Load, only once (for e.g. in Page load, we need to set default value in controls, when page is loaded for the first time. On post back, we check for true value for IsPostback value and then invoke server-side code to update data).

Question - 104 : - Which are the abstract classes available under system.xml namespace?

Answer - 104 : -   The System.XML namespace provides XML related processing ability in .NET framework. XmlReader and XMLWriter are the two abstract classes at the core of .NET Framework XML classes: 1.  XmlReader provides a fast, forward-only, read-only cursor for processing an XML document stream. 2. XmlWriter provides an interface for producing XML document streams that conform to the W3C's XML standards. Both XmlReader and XmlWriter are abstract base classes, which define the functionality that all derived classes must support.

Question - 105 : - Is it possible to use multipe inheritance in .net?

Answer - 105 : -   Multiple Inheritance is an ability to inherit from more than one base class i.e.  ability of a class to have more than one superclass, by inheriting from different sources and thus combine separately-defined behaviors in a single class. There are two types of multiple inheritance: multiple type/interface inheritance and multiple implementation inheritance. C# & VB.NET supports only multiple type/interface inheritance, i.e. you can derive an class/interface from multiple interfaces. There is no support for multiple implementation inheritance in .NET. That means a class can only derived from one class.

Question - 106 : - What are the derived classes from xmlReader and xmlWriter?

Answer - 106 : -   Both XmlReader and XmlWriter are abstract base classes, which define the functionality that all derived classes must support. There are three concrete implementations of XmlReader:        1.XmlTextReader        2.XmlNodeReader        3.XmlValidatingReader There are two concrete implementations of XmlWriter:        1.XmlTextWriter        2.XmlNodeWriter XmlTextReader and XmlTextWriter support reading data to/from text-based stream, while XmlNodeReader and XmlNodeWriter are designed for working with in-memory DOM tree structure. The custom readers and writers can also be developed to extend the built-in functionality of XmlReader and XmlWriter.

Question - 107 : -   What is managed and unmanaged code?

Answer - 107 : -   The .NET framework provides several core run-time services to the programs that run within it - for example exception handling and security. For these services to work, the code must provide a minimum level of information to the runtime. i.e., code executing under the control of the CLR is called managed code. For example, any code written in C# or Visual Basic .NET is managed code. Code that runs outside the CLR is referred to as "unmanaged code." COM components, ActiveX components, and Win32 API functions are examples of unmanaged code.

Question - 108 : - How you deploy .NET assemblies?

Answer - 108 : - One way is simply use xcopy. others are use and the setup projects in .net. and one more way is use of nontuch deployment.

Question - 109 : - What is Globalizationa and Localization ?

Answer - 109 : -   Globalization is the process of creating an application that meets the needs of users from multiple cultures. It includes using the correct currency, date and time format, calendar, writing direction, sorting rules, and other issues. Accommodating these cultural differences in an application is called localization.Using classes of System.Globalization namespace, you can set application's current culture.This can be achieved by using any of the following 3 approaches.       1.      Detect and redirect       2.      Run-time adjustment       3.      Using Satellite assemblies

Question - 110 : - Whate are Resource Files ? How are they used in .NET?

Answer - 110 : -   Resource files are the files containing data that is logically deployed with an application.These files can contain data in a number of formats including strings, images and persisted objects. It has the main advantage of If we store data in these files then we don't need to compile these if the data get changed. In .NET we basically require them storing culture specific informations by localizing application's resources. You can deploy your resources using satellite assemblies.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners