Dot Net

  Home  Microsoft .Net Technologies  Dot Net


“Learn Dot Net with hundreds of Dot Net Interview Questions and Answers”



116 Dot Net Questions And Answers

103⟩ Tell me about Secure Socket Layer? How to make use of the technology?

Secure Sockets Layer (SSL) and Transport Layer Security (TLS), its successor, are cryptographic protocols which provide secure communications on the Internet. There are slight differences between SSL 3.0 and TLS 1.0, but the protocol remains substantially the same. The term “SSL” as used here applies to both protocols unless clarified by context.

 242 views

106⟩ ASP.NET interview questions only?

1. How does ASP page work?

2. How ASP.NET page works?

3. What are the contents of cookie?

4. How do you create a permanent cookie?

5. What is ViewState? What does the “EnableViewState” property do? Whay would I want it on or off?

6. Give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

7. Describe the role of global.asax?

8. How can you debug your.NET application?

9. How do you deploy your ASP.NET application?

10. Where do we store our connection string in ASP.NET application?

11. Explain security types in ASP.NET?

12. Where do we store our connection string in ASP.NET application?

13. Explain different Authentication modes in ASP.NET?

14. How.NET has implemented security for web applications?

15. How to do forms authentication in ASP.NET?

16. Explain authentication levels in.NET?

17. Explain authorization levels in.NET?

18. How can you debug an ASP page, without touching the code?

19. How can you handle Exceptions in ASP.NET?

20. How can you handle UnManaged Code Exceptions in ASP.NET?

 218 views

107⟩ How does output caching work in ASP.NET?

Output caching is a powerful technique that increases request/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable.

To make a response eligible for output caching, it must have a valid expiration/validation policy and public cache visibility. This can be done using either the low-level OutputCache API or the high-level @ OutputCache directive. When output caching is enabled, an output cache entry is created on the first GET request to the page. Subsequent GET or HEAD requests are served from the output cache entry until the cached request expires.

The output cache also supports variations of cached GET or POST name/value pairs.

The output cache respects the expiration and validation policies for pages. If a page is in the output cache and has been marked with an expiration policy that indicates that the page expires 60 minutes from the time it is cached, the page is removed from the output cache after 60 minutes. If another request is received after that time, the page code is executed and the page can be cached again. This type of expiration policy is called absolute expiration - a page is valid until a certain time.

 229 views

108⟩ Explain how Viewstate is being formed and how it’s stored on client in .NET?

The type of ViewState is System.Web.UI.StateBag, which is a dictionary that stores name/value pairs. ViewState is persisted to a string variable by the ASP.NET page framework and sent to the client and back as a hidden variable. Upon postback, the page framework parses the input string from the hidden variable and populates the ViewState property of each control. If a control uses ViewState for property data instead of a private field, that property automatically will be persisted across round trips to the client. (If a property is not persisted in ViewState, it is good practice to return its default value on postback.)

 203 views

109⟩ Explain assemblies in .NET?

Assemblies are similar to dll files. Both has the reusable pieces of code in the form of classes/ functions. Dll needs to be registered but assemblies have its own metadata.

 218 views

110⟩ Explain Difference between Panel and GroupBox classes using .NET?

Panel and Group box both can used as container for other controls like radio buttons and check box.

the difference in panel and group box are Panel

1) In case of panel captions cannot be displayed

2) Can have scroll bars.

Group box

1) Captions can be displayed.

2) Cannot have a scroll bar

 217 views

111⟩ How many types of exception handlers are there in .NET?

From

MSDN>gt; “How the Runtime Manages Exceptions”

http://msdn.microsoft.com/library/default.asp? url=/library/en-us/cpguide/html/cpconexceptionsoverview.asp

The exception information table represents four types of exception handlers for protected blocks:

A finally handler that executes whenever the block exits, whether that occurs by normal control flow or by an unhandled exception.

A fault handler that must execute if an exception occurs, but does not execute on completion of normal control flow.

A type-filtered handler that handles any exception of a specified class or any of its derived classes.

A user-filtered handler that runs user-specified code to determine whether the exception should be handled by the associated handler or should be passed to the next protected block.

 205 views

112⟩ What are different methods of session maintenance in ASP.NET?

3 types:

In-process storage.

Session State Service.

Microsoft SQL Server.

In-Process Storage

The default location for session state storage is in the ASP.NET process itself.

Session State Service

As an alternative to using in-process storage for session state, ASP.NET provides the ASP.NET State Service. The State Service gives you an out-of-process alternative for storing session state that is not tied quite so closely to ASP.NET’s own process.

To use the State Service, you need to edit the sessionState element in your ASP.NET application’s web.config file:

You’ll also need to start the ASP.NET State Service on the computer that you specified in the stateConnectionString attribute. The .NET Framework installs this service, but by default it’s set to manual start up. If you’re going to depend on it for storing session state, you’ll want to change that to automatic start up by using the Services MMC plug-in in the Administrative Tools group.

If you make these changes, and then repeat the previous set of steps, you’ll see slightly different behavior: session state persists even if you recycle the ASP.NET process.

 209 views

113⟩ List of ASP.NET interview questions only?

1. What is a static class?

2. What is static member?

3. What is static function?

4. What is static constructor?

5. How can we inherit a static variable?

6. How can we inherit a static member?

7. Can we use a static function with a non-static variable?

8. How can we access static variable?

9. Why main function is static?

10. How will you load dynamic assembly? How will create assesblies at run time?

11. What is Reflection?

12. If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) in my application?

13. How do you create threading in.NET? What is the namespace for that?

14. What do you mean by Serialize and MarshalByRef?

15. What is the difference between Array and LinkedList?

16. What is Asynchronous call and how it can be implemented using delegates?

17. How to create events for a control? What is custom events? How to create it?

18. If you want to write your own dot net language, what steps you will you take care?

19. Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

20. How dot net compiled code will become platform independent?

 202 views

114⟩ What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

In a interface class, all methods are abstract without implementation where as in an abstract class some methods we can define concrete. In interface, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers. Interface and abstract class are basically a set of rules which u have to follow in case u r using them(inheriting them).

 224 views

115⟩ What is CLR in .NET?

CLR(Common Language Runtime) is the main resource of .Net Framework. it is collection of services like garbage collector, exception handler, jit compilers etc. with the CLR cross language integration is possible.

 206 views