Full width home advertisement

Travel the world

Climb the mountains

Post Page Advertisement [Top]



ASP.NET QUESTIONS

51) What’s the difference between Response.Write() andResponse.Output.Write()?

               a) Response.Output.Write() allows you to flush output
 
               b) Response.Output.Write() allows you to buffer output

              c) Response.Output.Write() allows you to write formatted output (ANS)

              d) Response.Output.Write() allows you to stream output


52) Why is Global.asax is used 

               a) Implement application and session level events (ANS)

               b) Declare Global variables
 
               c) No use

53) There can be more than 1 machine.config file in a system

               a) True (ANS)

               b) False

54) What is the extension of a web user control file ?

               a) .Asmx
               b) . Ascx (ANS)
               c) .Aspx

55) What is the default session out time

               a) 20 Sec

               b) 20 Min (ANS)
 
               c) 1 hr

56) Which of the following is true ?

               a) IsPostBack is a method of System.UI.Web.Page class
 
               b) IsPostBack is a method of System.Web.UI.Page class
 
              c) IsPostBack is a readonly property of System.Web.UI.Page class (ANS)

57) It is possible to set Maximum length for a text box through code
 
              a) True (ANS)

              b) False

58) The number of forms that can be added to a aspx page is
 
              a) 2

              b) 3
 
              c) 1 (ANS)

              d) More than 3 

59) How do you manage states in asp.net application

               a) Session Objects
               b) application Objects
               c) Viewstate
               d) Cookies
               e) All of the above (ANS)

60) The interface used by ASP.Net to create Unique Id’s?

               a) AppDomainsetup
 
               b) System.UI.Naming.Container (ANS)

               c) IAsyncResult

               d) customFormatter

61) Which property of the session object is used to set the local identifier ?

               a) SessionId
 
              b) LCID (ANS)

              c) Item
 
              d) Key

62) Select the caching type supported by ASP.Net

               a) Output Caching

               b) DataCaching

               c) Both a & b (ANS)           

               d) None of the above

63) Where is the default Session data is stored in ASP.Net

               a) InProcess (ANS)

               b) StateServer 
               c) SQL Server
    d) All of the above

 64) How do you disable client side validation ?

               a) Set the language property to C#
               b) Set the Runat property to server
               c) Set the ClientTarget property to Downlevel (ANS)
               d) Set the inherits property to codeb

 65) Select the validation control used for “PatternMatching”

a)    FieldValidator
              b) RegularExpressionValidator (ANS)
              c) RangeValidator 
              d) PatternValidator

  66) How do you trace the application_End event on runtime?
 
              a) By Debugging
              b) By Tracing 
              c) Can not be done (ANS)

67) Who can access Session state variables

               a) All Users of an application

               b) A Single session (ANS)
 
              c) All users within a single tunnel

68) Select the type Processing model that asp.net simulate

              a) Event-driven (ANS)

              b) Static

              c) Linear
 
              d) TopDown

69) Does the “EnableViewState” allows the page to save the users input on a form
 
              a) Yes (ANS)

               b) No

70) Web Controls Supports CSS

               a) True (ANS)

               b) False

71) Session Object classes are defined in which of the following namespace?

               a) System.Web.UI

               b) System.Web.SessionState

               c) System.Web

72) Which DLL translate XML to SQL in IIS

               a) SQLISAPI.dll (ANS)

               b) SQLXML.dll

               c) LISXML.dll

               d) SQLIIS.dll

73) What is the default authentication mode for IIS

               a) Windows

               b) Anonymous (ANS)
 
               c) Basic Authentication

               d) None


74) Which of the following is not a valid state management tool?

              a) Querystate (ANS)

              b) Hidden Form Field

              c) Application State

              d) Cookies

75) What is the maximum number of cookies that can be allowed to a web site

               a) 1

b) 10

               c) 20
   
               d) 30
 
               e) More than 30

76) Select the control which does not have any visible interface

               a) Datalist
 
               b) DropdownList
 
               c) Repeater (ANS)
   
               d) Datagrid


77) How do you explicitly kill a user’s session ?

               a) Session.Close ( )

               b) Session.Discard ( )
 
              c) Session.Abandon (ANS)
 
              d) Session.End

78) Why do we use XMLSerializer class

               a) Remoting
 
               b) WebServices (ANS)
  
               c) Xml documentary Files

79) What does Response.End will do?

a)      It will stop the server process (ANS)

              b) It will stop the client process

              c) None of the above

80) Which control supports paging

               a) Repeater
 
               b) Datagrid (ANS)
  
               c) Both
 
               d) None

 81) Where do you store the information about the user locale

               a) System.user
 
               b) System.web
 
               c) System.Drawing

               d) System.Web.UI.Page.Culture (ANS)

  82) What is the purpose of code behind ?
 
              a) To separate different sections of a page in to different files

              b) To merge HTML layout and code in to One file
 
              c) To separate HTML Layout and code to different file (ANS)

              d) To ignore HTML usage


83) What is a satallite assembly ?

               a) Any DLL file used by an EXE file.
 
               b) An Assembly containing localized resources for another assembly (ANS)
 
               c) None of the above

 84) Which of the following is not a member of Response Object?
 
              a) Clear

              b) Write

              c) Execute (ANS)

              d) Flush

85) Which of the following is not a member of ADODBCommand object
 
              a) ExecuteReader 
              b) ExecuteScalar
              c) ExecuteStream 
              d) Open (ANS) 
              e) CommandText


86) Which method do you invoke on the DataAdapter control to load your generated dataset with data?

               a) Load

               b) Fill (ANS)
 
               c) GetAll
 
               d) None

87) How to open more than one datareader at a time
 
              a) Use different datareader variable
 
              b) Use different datareader and connection variable (ANS)
 
              c) Can not be done

88) What is the advantage of Disconnected mode of ADO.Net in ASP.Net

              a) Automatically dump data at client PC

              b) Not necessary to connect with server

              c) user data can update and retrieve in dataset and when connection connectedupdate values with server (ANS)

              d) All of the above

89) Which objects is used to create foreign key between tables?

              a) DataRelation (ANS)

              b) DataRelationship

              c) DataConstraint

              d) Datakey

90) Which one of the following namespaces contains the definition for IdbConnection

              a) System.Data.Interfaces

              b) System.Data.Common

              c) System.Data (ANS)

              d) System.Data.Connection

91) Select the Interface which provides Fast, connected forward-only access to data

              a) IdataRecord

              b) Idatabase

              c) IdataReader (ANS)

              d) Irecorder


92) How do we Delete, Update, Select data in a Dataset

              a) Using SQLDataAdapter (ANS)

              b) Using SQLDataReader

              c) Using SQLCommand

              d) None

93) Which of the following is not a member of ConnectionObject

              a) Execute (ANS)

              b) EndTransaction

              c) BeginTransaction

              d) Open

94) Is it Possible to Serialize HashTable with XMLSerializer

              a) Yes (ANS)

              b) No

95) What is the Full Form of WSDL

              a) Web System Description Language

              b) Web Services Detail Language

              c) Web Service Description Language (ANS)

              d) None

96) What is the difference between Server.Transfer & Response.Redirect

              a) No Difference

b)      Server.Transfer needs a roundtrip, Response.Redirect does not

              c) Response.Redirect needs roundtrip, Server.Transfer does not (ANS)

              d) Server.Transfer can transfer user between 2 applicaions

97) Which Language can Support SOAP

              a) VB

              b) JAVA

              c) COBOL

              d) All of the above (ANS)


98) What is the size of the session ID

              a) 32 bit long string
 
              b) 32 bit long double
 
              c) 32 bit long character

              d) 32 bit long integer (ANS)

99) Which of the following extension does a webservice file will have

               a) .Asmx (ANS)

               b) .Aspx

               c) .Ascx

               d) .Resx

100) What is a strong name?

               a) Public Key

               b) Private Key

               c) Combination Of both Public,Private key and digital signature (ANS)

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib