Logo

Asp.net MCQs

Option A: Integration tests

Option B: Regression tests

Option C: Load test

Option D: Unit tests

Correct Answer: Integration tests


Click for More Details

Option A: Request.QueryString

Option B: Response.writeln

Option C: Response.write

Option D: Request.Form

Correct Answer: Request.Form


Click for More Details

Option A: Output Caching

Option B: DataCaching

Option C: Both A and B

Option D: None of these

Correct Answer: Both A and B


Click for More Details

Option A: Adds HTTP Headers to output stream

Option B: Adds Tag to rendered Page

Option C: Add Headers to the web site

Option D: None of the above

Correct Answer: Adds HTTP Headers to output stream


Click for More Details

Option A: Avoid page to be cached

Option B: Clears the buffer area

Option C: The session expires

Option D: None of the Above

Correct Answer: Avoid page to be cached


Click for More Details

Option A: Cross Page Posting

Option B: Code-front

Option C: Theme

Option D: None of the above

Correct Answer: Cross Page Posting


Click for More Details

Option A: Visual Basic

Option B: C#

Option C: C++

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: Response.Write(Version.ToString() );

Option B: Response.Write(System.Version.ToString() );

Option C: Response.Write(System.Environment.Version.ToString() );

Option D: not possible

Correct Answer: Response.Write(System.Environment.Version.ToString() );


Click for More Details

Option A: Use the ImageMap control and randomly select a HotSpot to show or hide.

Option B: Use the AdServer control and create an XML file with configuration of the control.

Option C: Use an ImageButton control to predict randomness of the image to be loaded based on the clicks of the control.

Option D: Use the Image control to hold the image and a Calendar control to randomly select a date for each image to be displayed.

Correct Answer: Use the AdServer control and create an XML file with configuration of the control.


Click for More Details

Option A: The GridView control

Option B: The DetailsView control

Option C: The FormView control

Option D: The Table control

Correct Answer: The GridView control


Click for More Details

Option A: Response.Output.Write()

Option B: Response.Write()

Option C: Both A and B

Option D: None of these

Correct Answer: Response.Output.Write()


Click for More Details

Option A: Role membership determined only by user programming

Option B: Automatically determines role membership

Option C: ASP.NET does not support Windows Authentication

Option D: None of these

Correct Answer: Automatically determines role membership


Click for More Details

Option A: SessionId

Option B: LCID

Option C: Item

Option D: Key

Correct Answer: Key


Click for More Details

Option A: HTTP

Option B: FTP

Option C: File

Option D: All of the above

Correct Answer: HTTP


Click for More Details

Option A: Automatic paging

Option B: Automatic data binding

Option C: Both A and B

Option D: None of the above

Correct Answer: Both A and B


Click for More Details

Option A: It is not possible to set automatically page events and methods

Option B: AutoEventWireup attribute of the Page directive is set to False

Option C: AutoEventWireup attribute of the Page directive is set to true

Option D: All of the above

Correct Answer: AutoEventWireup attribute of the Page directive is set to true


Click for More Details

Option A: String

Option B: Integer

Option C: Date

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: The default constructor

Option B: The Control_Build() method

Option C: The Paint() method

Option D: The Render() method

Correct Answer: The Render() method


Click for More Details

Option A: Lock()

Option B: ThreadLock

Option C: Synchronize()

Option D: Synchronize

Correct Answer: Synchronize()


Click for More Details

Option A: Assemblies

Option B: Serialization

Option C: Overriding

Option D: Garbage Collection

Correct Answer: Garbage Collection


Click for More Details

Option A: AboveNormal

Option B: Normal

Option C: Highest

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: One must override the method ReceiveMessage

Option B: One must override the method InitializeMethod

Option C: Both A and B

Option D: One must override the method ProcessMessage

Correct Answer: One must override the method ReceiveMessage


Click for More Details

Option A: Session.Abandon

Option B: Session.Dump

Option C: Session.Exit

Option D: None of these

Correct Answer: Session.Abandon


Click for More Details

Option A: User and Custom controls are displayed correctly in the Visual Studio .NET Designer.

Option B: User controls are displayed correctly in the Visual Studio .NET Designer

Option C: Custom controls are displayed correctly in VS.Net Designer

Option D: None of these

Correct Answer: User and Custom controls are displayed correctly in the Visual Studio .NET Designer.


Click for More Details

Option A: 1

Option B: 10

Option C: 20

Option D: 30

Correct Answer: 1


Click for More Details

Option A: Windows

Option B: Anonymous

Option C: Basic Authentication

Option D: None of these

Correct Answer: Anonymous


Click for More Details

Option A: Viewstate can store onlys string

Option B: Viewstate can store anything

Option C: Viewstate can store only serilizable object

Option D: None of these

Correct Answer: Viewstate can store only serilizable object


Click for More Details

Option A: app_offline.html

Option B: app_offline.htm

Option C: appoffline.html

Option D: None of these

Correct Answer: app_offline.htm


Click for More Details

Option A: DataList

Option B: TableRow

Option C: ListBox

Option D: All the Above

Correct Answer: TableRow


Click for More Details

Option A: SqlDataSource

Option B: FormView

Option C: GridView

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: section

Option B: section

Option C: section

Option D: None of the above

Correct Answer: section


Click for More Details

Option A: Visual Basic

Option B: C

Option C: C#

Option D: All of the above

Correct Answer: C


Click for More Details

A.

Option A: IsPostBack is a readonly property of System.Web.UI.Page class

Option B: IsPostBack is a method of System.UI.Web.Page class

Option C: IsPostBack is a method of System.Web.UI.Page class

Option D: None of these

Correct Answer: IsPostBack is a method of System.Web.UI.Page class


Click for More Details

Option A: System

Option B: ROOT

Option C: Application

Option D: None of the Above

Correct Answer: ROOT


Click for More Details

Option A: Gets the Referred Web site name on the server

Option B: Gets the Server’s Machine Name

Option C: Gets the Client Machine Name

Option D: None of the above

Correct Answer: Gets the Server’s Machine Name


Click for More Details

Option A: System.Data

Option B: System.Security

Option C: System.Diagnostics

Option D: System.EnterpriseServices

Correct Answer: System.EnterpriseServices


Click for More Details

Option A: Code-front

Option B: Exception

Option C: Code-behind

Option D: All of the above

Correct Answer: Code-behind


Click for More Details

Option A: One

Option B: Two

Option C: Three

Option D: More than Three

Correct Answer: One


Click for More Details

Option A: Call the DataBind method

Option B: Set the DataSource property

Option C: Both A and B

Option D: None of these

Correct Answer: Both A and B


Click for More Details

Option A: XML

Option B: HTML

Option C: WML

Option D: All of the above

Correct Answer: HTML


Click for More Details

Option A: ComVisible attributes

Option B: DLLImport Attributes

Option C: COM Interop

Option D: All of the above

Correct Answer: ComVisible attributes


Click for More Details

Option A: It runs random

Option B: When application is running for more than 15 minutes

Option C: When application is running low of memory

Option D: None of these

Correct Answer: When application is running low of memory


Click for More Details

Option A: Theme

Option B: Master Page

Option C: Customization

Option D: None of these

Correct Answer: Theme


Click for More Details

Option A: Session Objects

Option B: Application Objects

Option C: Viewstate

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: All users within a single tunnel

Option B: All Users of an application

Option C: A Single session

Option D: All of the above

Correct Answer: A Single session


Click for More Details

Option A: The customer can run on any platform.

Option B: Such a situation cannot happen at all

Option C: The customer must be having technology that run ASP.

Option D: None of the Above

Correct Answer: The customer can run on any platform.


Click for More Details

Option A: Parameterized constructor

Option B: On click of button

Option C: Global.asax

Option D: Default constructor

Correct Answer: Default constructor


Click for More Details

Option A: The DataSet schemas must match in order to merge

Option B: The destination DataSet must be empty prior to merging

Option C: A primary key must be defined on the DataTable objects

Option D: A DataSet must be merged into the same DataSet that created it.

Correct Answer: A primary key must be defined on the DataTable objects


Click for More Details

Option A: LinqDataSource

Option B: XmlDataSource

Option C: SqlDataSource

Option D: ObjectDataSource

Correct Answer: LinqDataSource


Click for More Details

Option A: Static

Option B: Linear

Option C: Topdown

Option D: Event-driven

Correct Answer: Event-driven


Click for More Details

Option A: Add Source, Tag prefix

Option B: Add Tag prefix, Tag name

Option C: Add Src, Tagprefix, Tagname

Option D: None of these

Correct Answer: Add Src, Tagprefix, Tagname


Click for More Details

Option A: DataBind

Option B: DataList

Option C: Fill( )

Option D: Load ( )

Correct Answer: Fill( )


Click for More Details

Option A: None

Option B: One

Option C: Two

Option D: Many

Correct Answer: Many


Click for More Details

Option A: System.Web.Mail.SmtpMail

Option B: System.Web.Mail.MailMessage

Option C: Both A and B

Option D: None of these

Correct Answer: Both A and B


Click for More Details

Option A: Page.User.IsInRole

Option B: Page.User.Name

Option C: Page.User.Identity

Option D: None of these

Correct Answer: Page.User.Identity


Click for More Details

Option A: SQLDataReader

Option B: Data Set

Option C: Both A and B

Option D: None of these

Correct Answer: SQLDataReader


Click for More Details

Option A: Application object

Option B: Session object

Option C: Server object

Option D: Response object

Correct Answer: Session object


Click for More Details

Option A: .ASP

Option B: .Web

Option C: .ASPX

Option D: None of these

Correct Answer: .ASP


Click for More Details

Option A: Response.Output.Write() allows you to write formatted output

Option B: Response.Output.Write() allows you to stream output

Option C: Response.Output.Write() allows you to buffer output

Option D: Response.Output.Write() allows you to flush output

Correct Answer: Response.Output.Write() allows you to write formatted output


Click for More Details

Option A: Alerts Snap-ins

Option B: Performance logs

Option C: MMC Event viewers

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: asp:listitem

Option B: asp:button

Option C: asp:label

Option D: none of these

Correct Answer: asp:label


Click for More Details

Option A: System.Web.Services

Option B: System.Web.Ui.Forms.Security

Option C: System.Web.Configuration

Option D: System.Web.Security

Correct Answer: System.Web.Security


Click for More Details

Option A: Set the ClientTarget property to Downlevel

Option B: Set the Runat property to server

Option C: Set the inherits property to codeb

Option D: Set the language property to C#

Correct Answer: Set the ClientTarget property to Downlevel


Click for More Details

Option A: Load()

Option B: Unload( )

Option C: PreRender( )

Option D: None of the Above

Correct Answer: Load()


Click for More Details

Option A: ControlName

Option B: Designation

Option C: ID

Option D: Name

Correct Answer: ID


Click for More Details

Option A: Response.ViewState

Option B: Response.Cookies

Option C: Session

Option D: Application

Correct Answer: Application


Click for More Details

Option A: System.Windows.Page

Option B: System.Web.page

Option C: System.web.UI.Page

Option D: None of these

Correct Answer: System.web.UI.Page


Click for More Details

Option A: Response.Redirect

Option B: Server.Transfer

Option C: Both A and B

Option D: None of these

Correct Answer: Server.Transfer


Click for More Details

Option A: GAC

Option B: Root

Option C: /bin

Option D: None of these

Correct Answer: GAC


Click for More Details

Option A: AdRotator

Option B: File Access

Option C: LinkCounter

Option D: Counter

Correct Answer: LinkCounter


Click for More Details

Option A: Finds the difference in two objects

Option B: Finds the difference in two files

Option C: The one which renders the dataset object contents to XML

Option D: None of the above

Correct Answer: The one which renders the dataset object contents to XML


Click for More Details

Option A: TCP

Option B: HTTP

Option C: SMTP

Option D: SOAP

Correct Answer: SOAP


Click for More Details

Option A: Gives the memory working set

Option B: Return Null value

Option C: Gives Error

Option D: None of the Above

Correct Answer: Gives the memory working set


Click for More Details

Option A: securityPolicy

Option B: authentication

Option C: authorization

Option D: None of the above

Correct Answer: authorization


Click for More Details

Option A: Open

Option B: Execute

Option C: Transfer

Option D: HTMLDecode

Correct Answer: Open


Click for More Details

Option A: Page_Init()

Option B: Page_Load()

Option C: Page_click()

Option D: None of the above

Correct Answer: Page_Init()


Click for More Details

Option A: Windows explorer

Option B: Java Virtual Machine

Option C: Common Language Runtime

Option D: All of the above

Correct Answer: Common Language Runtime


Click for More Details

Option A: Add reference of dll file and place the code where ever required

Option B: By add/Remove items in the project menu

Option C: Cannot add 3rd party component to asp.net

Option D: None of the above

Correct Answer: Add reference of dll file and place the code where ever required


Click for More Details

Option A: Page_Init()

Option B: Page_Load()

Option C: Page_click()

Option D: None of these

Correct Answer: Page_Init()


Click for More Details

Option A: AdRotator

Option B: LinkButton

Option C: Both A and B

Option D: None of the Above

Correct Answer: AdRotator


Click for More Details

Option A: Combination Of both Public,Private key and digital signature

Option B: Public Key

Option C: Private Key

Option D: Digital signature

Correct Answer: Combination Of both Public,Private key and digital signature


Click for More Details

Option A: RCT

Option B: GAC

Option C: CLR

Option D: RCW

Correct Answer: CLR


Click for More Details

Option A: HtlmInputCheckBox

Option B: HtmlCheckBox

Option C: HtmlControl

Option D: None of these

Correct Answer: HtlmInputCheckBox


Click for More Details

Option A: Reflection

Option B: Enumeration

Option C: Serialization

Option D: Binding

Correct Answer: Reflection


Click for More Details

Option A: EventLogTraceListener

Option B: TextWriterTraceListener

Option C: DefaultTraceListener

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: Clears all the section value from rendered HTML File

Option B: Clears the content of the Rendered page

Option C: Clears all Headers from the buffer stream

Option D: None of the above

Correct Answer: Clears all Headers from the buffer stream


Click for More Details

Option A: Website

Option B: WebForm

Option C: Webfarm

Option D: None of the above

Correct Answer: Webfarm


Click for More Details

Option A: Name space of the dll that is referenced

Option B: Assemblyname

Option C: TagPrefix

Option D: All of the above

Correct Answer: Name space of the dll that is referenced


Click for More Details

Option A: . EXE

Option B: . COM

Option C: . DLL

Option D: None of the above

Correct Answer: . DLL


Click for More Details

Option A: Theme

Option B: Master Page

Option C: Customization

Option D: None of these

Correct Answer: Theme


Click for More Details

Option A: Name space of the dll that is referenced

Option B: Assemblyname

Option C: TagPrefix

Option D: All of the above

Correct Answer: Name space of the dll that is referenced


Click for More Details

Option A: Session Objects

Option B: Application Objects

Option C: Viewstate

Option D: All of the above

Correct Answer: All of the above


Click for More Details

Option A: . EXE

Option B: . COM

Option C: . DLL

Option D: None of the above

Correct Answer: . DLL


Click for More Details

Option A: Response.Cache.SetNoServerCaching();

Option B: Response.Cache.SetNoCaching();

Option C: Response.Cache.SetNoStore();

Option D: None of these

Correct Answer: Response.Cache.SetNoStore();


Click for More Details

Option A: VB

Option B: C-sharp

Option C: Both A and B

Option D: C++

Correct Answer: Both A and B


Click for More Details

Option A: Webforms

Option B: HTMLForms

Option C: Winforms

Option D: None of these

Correct Answer: Webforms


Click for More Details

Option A: System.EnterpriseServices

Option B: System.Diagnostics

Option C: System.Data

Option D: All of the above

Correct Answer: System.Diagnostics


Click for More Details

Option A: DataSource

Option B: ColorValidator

Option C: AlternatingItemTemplate

Option D: None of these

Correct Answer: AlternatingItemTemplate


Click for More Details

Option A: XmlNew

Option B: XmlConvert

Option C: XmlSettings

Option D: XmlDocument

Correct Answer: XmlDocument


Click for More Details