• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

DotNet Interview Questions Answers

Question - 31 : - Can you configure a .NET Remoting object via XML file?

Answer - 31 : - Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config. How can you automatically generate interface for the remotable object in .NET with Microsoft tools? Use the Soapsuds tool.

Question - 32 : - How do you validate the controls in an ASP .NET page?

Answer - 32 : - Using special validation controls that are meant for this. We have Range Validator, Email Validator.

Question - 33 : - What are channels in .NET Remoting?

Answer - 33 : - Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.

Question - 34 : -   What is IL?

Answer - 34 : -   IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code (of any language) is compiled to IL. The IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.

Question - 35 : - What’s wrong with a line like this? DateTime.Parse(myString);?.

Answer - 35 : -   Therez nothing wrong with this declaration.Converts the specified string representation of a date and time to its DateTime equivalent.But If the string is not a valid DateTime,It throws an exception.

Question - 36 : - How do you trigger the Paint event in System.Drawing?

Answer - 36 : - Invalidate the current form, the OS will take care of repainting. The Update method forces the repaint. With these events, why wouldn’t Microsoft combine Invalidate and Paint, so that you wouldn’t have to tell it to repaint, and then to force it to repaint? Painting is the slowest thing the OS does, so usually telling it to repaint, but not forcing it allows for the process to take place in the background.

Question - 37 : - Can you configure a .NET Remoting object via XML file?

Answer - 37 : - Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.

Question - 38 : - What is Globalizationa and Localization ?

Answer - 38 : -   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 - 39 : - What is GAC?

Answer - 39 : - The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer. You should share assemblies by installing them into the global assembly cache only when you need to. Assemblies deployed in the global assembly cache must have a strong name. When an assembly is added to the global assembly cache, integrity checks are performed on all files that make up the assembly. The cache performs these integrity checks to ensure that an assembly has not been tampered with, for example, when a file has changed but the manifest does not reflect the change. Use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the .NET Framework SDK or Use Windows Explorer to drag assemblies into the cache. To install a strong-named assembly into the global assembly cache At the command prompt, type the following command: gacutil I In this command, assembly name is the name of the assembly to install in the global assembly cache.

Question - 40 : - What’s a proxy of the server object in .NET Remoting?

Answer - 40 : - It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling.

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners