• +91 9723535972
  • info@interviewmaterial.com

DotNet Interview Questions and Answers

DotNet Interview Questions and Answers

Question - 161 : - What security measures exist for .NET Remoting in System.Runtime.Remoting?

Answer - 161 : - None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.

Question - 162 : - What is a formatter?

Answer - 162 : - A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.

Question - 163 : - Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?

Answer - 163 : - Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.

Question - 164 : - What’s SingleCall activation mode used for?

Answer - 164 : - If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.

Question - 165 : - What’s Singleton activation mode?

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

Question - 166 : - How do you define the lease of the object?

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

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

Answer - 167 : - 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 - 168 : - How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

Answer - 168 : - the Soapsuds tool.

Question - 169 : - Write a simple Windows Forms MessageBox statement.

Answer - 169 : - System.Windows.Forms.MessageBox.Show


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners