• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

DotNet Interview Questions Answers

Question - 141 : - Can the validation be done in the server side? Or this can be done only in the Client side?

Answer - 141 : - Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.

Question - 142 : - How ASP .NET different from ASP?

Answer - 142 : - Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.

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

Answer - 143 : -   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 - 144 : - What’s Singleton activation mode?

Answer - 144 : - A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.

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

Answer - 145 : - 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 - 146 : - How to manage pagination in a page?

Answer - 146 : -   Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.

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

Answer - 147 : -   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 - 148 : - How do you define the lease of the object?

Answer - 148 : - By implementing ILease interface when writing the class code.

Question - 149 : -   When was .NET announced?

Answer - 149 : -   Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET.  

Question - 150 : - How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

Answer - 150 : -   The using() pattern is useful because it ensures that Dispose() will always be called when a disposable object (defined as one that implements IDisposable, and thus the Dispose() method) goes out of scope, even if it does so by an exception being thrown, and thus that resources are always released.

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners