• Thread Rating
    Rate this Thread
    Double click on boxes to rate this thread
  • ASP.Net Interview Questions Part4
  • 31. What are the ways to keep assemblies in to global assemby cache?
    a. 3 ways.
    1. using windows installer
    2. using global assembly cache tool
    3. using windows explorer

    32. what is advantage of windows installer ?
    a. This should be used in the deployment time. this provides reference counting of an assembly.

    33. what is a strong name?
    a. when you want to place assembly in global assembly cache you should give strong name to that assembly. It contains assembly name, its version, public key and digital signature.This is used to uniquely identify an assembly, and to perform integrity checks on assembly. It ensures that no one can create a subsequent version of an assembly.

    34. what are the advantages of global assembly cache?
    a. 1. assemblies placed in GAC can be shared by multiple applications.
    2. It provides security.
    3. It provides a way to keep multiple versions of same assembly on the same machine.

    35. can we place the contents of an assembly into different files?
    a. Yes.

    36. what are the differences between Ado and Ado.net
    a.) Ado:
    1. It supports connected model
    2. xml support is less
    3. It uses record set
    1. It supports disconnected model
    2. xml support is more
    3. it uses data set

    37. What are the basic objects needed for Ado.Net
    a.) There are 5 main objects.
    1. Connection object: used to open a connection to the database
    2. command object: used to perform operations on database
    3. datareader object: used to read data in forward only read only manner from database
    4. DataAdapter: Acts as a bridge between Dataset and Dataset
    5. Dtaset: In-Memory container for all your data.

    38. What are the arguments of a connection object?
    a.) 1. server : this is used to specify the server name.
    2. InitialCatalog: This is used to specify the database name
    3. usedID: specifies the user id
    4. password: specifies the user password.

    39. Which method is used to release resources on connection object?
    a.) Dispose() method.

    40. What are the namespaces required to use Ado.net
    a.) System
    System.Data.SqlClient (or) System.Data.OleDb (OR) system.Data.Odbc (OR) system.Data.OracleClient.
    By Sri - Sep 04 2009 Reply » Save » Print »

Login to post your reply