Wednesday, September 9, 2009

Asp.Net Interview Questions Part-II

1. What is difference between machine.config and web.config?


2. What is shared and private assembly?

3.  What are asynchronous callbacks?


4.How to write unmanaged code and how to identify whether the code is managed / unmanaged.?


5. How to authenticate users using web.config?


6. What is strong name and which tool is used for this?


7. What is gacutil.exe. Where do we store assemblies?


8.  Should sn.exe be used before gacutil.exe?


9.  What does assemblyinfo.cs file consists of?


10. What is boxing and unboxing?

2 comments:

  1. Q NO 1 :
    Answer :
    Machine.Config:
    - machine.congig file apply settings to all asp.net applications
    - This is automatically installed when you install Visual Studio. Net.
    - machine. config is configuration file for all the application in the IIS
    - This is also called machine level configuration file.
    - Only one machine.config file exists on a server.This file is at the highest level in the configuration hierarchy.
    - There are number of important settings that can be stored in the configuration file. Here are some of the most frequently used configurations, stored conveniently inside Machine.Config file..

    1. Connection strings
    2. Membership
    3. RoleManager
    4. Profile
    5. HttpHandlers


    Web.Config:
    -web.config files apply settings to each web application
    -web.config is a configuration file for a application or folder
    -This is automatically created when you create an ASP.Net web application project.
    -This is also called application level configuration file.
    -This file inherits setting from the machine.config
    - There are number of important settings that can be stored in the configuration file. Here are some of the most frequently used configurations, stored conveniently inside Web.config file.

    1. Database connections
    2. Session States
    3. Error Handling
    4. Security

    regards,
    kprabu
    kprabu.007@gmail.com

    ReplyDelete
  2. Q NO 10:
    Answer:
    Converting a value type to reference type is called Boxing and Converting reference type of value type is Unboxing.

    int i = 1;
    object o = i; // boxing
    int j = (int) o; // unboxing

    ReplyDelete