Home
Current Affairs January 2024

What is the correct answer?

4

To write a root tag say '<details>' through ASP.NET use

A. WriteElement

B. WriteStartElement

C. WriteElementString

D. WriteElementStart

Correct Answer :

B. WriteStartElement


Related Questions

What is the correct answer?

4

Options available with SelectionMode are

A. Single

B. Single and Multiple

C. Single, Multiple and Extended

D. All of the above

What is the correct answer?

4

File extension used for ASP.NET files.

A. .Web

B. .ASP

C. .ASPX

D. None of the above

What is the correct answer?

4

How do we create a FileSystemObject?

A. Server.CreateObject("Scripting.FileSystemObject")

B. Create("FileSystemObject")

C. Create Object:"Scripting.FileSystemObject"

D. Server.CreateObject("FileSystemObject")

What is the correct answer?

4

____________ converts virtual path to default path

A. Server.MapPath and Request.MapPath

B. Server.MapPath and Response.MapPath

C. Response.MapPath and Request.MapPath

D. All of the above

What is the correct answer?

4

If someone accidentally deletes the Page Directive of an ASP.NET page say "First.aspx" under "Sales", what will you do?

A. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" Inherits="FirstQuarter"%>

B. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" ClassName="Sales.FirstQuarter"%>

C. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" Inherits="Sales.FirstQuarter"%>

D. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" ClassName="Sales.FirstQuarter" Inherits="FirstQuarter"%>

What is the correct answer?

4

What keyword is necessary to expose a public function as a method of a Web Service?

A. WebSub()

B. WebFunction()

C. WebMethod()

D. WebClass

What is the correct answer?

4

If a page name is WebForm1.aspx and it resides in ../Test/, then it will inherit from

A. WebForm1

B. WebForm1/Test

C. Test/WebForm1

D. Test.WebForm1

What is the correct answer?

4

Can you use client-side event handler and server-side event handler for the same ASP.NET server control?

A. Yes

B. No

What is the correct answer?

4

CDONTS is designed on for Windows NT Server

A. True

B. False

What is the correct answer?

4

The code file for WebForm1.aspx will be ___________

A. WebForm1.vbp

B. WebForm1.vb

C. WebForm1.frm

D. WebForm1.sln

What is the correct answer?

4

Which of the following tool is used to manage the GAC?

A. RegSvr.exe

B. GacUtil.exe

C. GacSvr32.exe

D. GacMgr.exe

What is the correct answer?

4

To redirect an user to a particular page when a user logs in use

A. Use Response.Redirect in Session_Start event of Global.asax file

B. Use Response.Redirect in Application_Start event of Global.asax file

C. Use Server.MapPath in Session_Start event of Global.asax file

D. Use Server.MapPath in Application_Start event of Global.asax file

What is the correct answer?

4

To read an XML file from ASP.NET use

A. XMLTextReader

B. XMLReader

C. XML.Reader

D. ReadXML

What is the correct answer?

4

__________ and __________ event are the two most commonly supported server-side events. (Click and Change)

A. Click and Change

B. Click and DblClick

C. KeyUp and KeyDown

D. KeyEnter and KeyPress

What is the correct answer?

4

To pass queries to Crystal Reports use

A. SelectionFormula

B. Formula

C. Filter

D. None of the above

What is the correct answer?

4

This control does not produce an HTML output

A. Panel

B. Literal

C. PlaceHolder

D. DataList

What is the correct answer?

4

____________ enables you to add, modify and delete records but you won't see the changes made by other users

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

What is the correct answer?

4

In case of RangeValidator, a TextBox's value can be compared to the values taken from two other TextBoxes

A. True

B. False

What is the correct answer?

4

.DirectoryInfo gives information about any Directory

A. True

B. False

What is the correct answer?

4

A _____________ is a logical naming scheme for grouping related types of

A. objects together.

B. class

C. namespace

D. interface

What is the correct answer?

4

If passwords are to be sent from one page to another, we can use

A. Get method

B. Post method

C. Session variables

D. Any one of the above

What is the correct answer?

4

Default scripting language in ASP.

A. EcmaScript

B. VBScript

C. PERL

D. JavaScript

What is the correct answer?

4

In the Adrotator XML file ________ is used to mention the file to link to

A. <ImageUrl>

B. <NavigateUrl>

C. <Url>

D. <Link>

What is the correct answer?

4

RadioButtonsLists __________ property is used to add RadioButtons at runtime

A. Items

B. Collection

C. AddItem

D. None of the above

What is the correct answer?

4

______________ creates a read-only recordset that can scroll in any direction.

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

What is the correct answer?

4

In ASP.NET if a file is saved, it is save only in the server machine.

A. True

B. False

What is the correct answer?

4

Web.config file is used...

A. Configures the time that the server-side codebehind module is called

B. To store the global information and variable definitions for the application

C. To configure the web server

D. To configure the web browser

What is the correct answer?

4

Default path for any web application is

A. .\Inetpub\Folder_name

B. .\Inetpub\www\Folder_name

C. .\Inetpub\wwwroot\Folder_name

D. .\Inetpub\mailroot\Folder_name

What is the correct answer?

4

In case of a CompareValidator, a TextBox's value can be compared to an expression

A. True

B. False

What is the correct answer?

4

What class does a Web Service Inherit?

A. System.Web.Services

B. System.Web

C. System.Services

D. System.Web.Page