Home
Current Affairs January 2024

What is the correct answer?

4

To display HTML tags as it is use

A. Encode

B. HTMLEncode

C. URLEncode

D. EncodeHTML

Correct Answer :

B. HTMLEncode


Related Questions

What is the correct answer?

4

_________ object represents all information sent form a server to a browser

A. Response

B. Request

C. Session

D. Application

What is the correct answer?

4

How can you check if the page is visited for the first time

A. Use PostBack

B. Use IsPostBack

C. Use Post

D. Use Get

What is the correct answer?

4

Difference between Response.Write() andResponse.Output.Write().

A. Response.Output.Write() allows you to buffer output

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

C. Response.Output.Write() allows you to flush output

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

What is the correct answer?

4

In a DataSet if multible tables are used, they are identified by their

A. Names

B. Indexes

C. Any one of the above

D. None of the above

What is the correct answer?

4

Which of the following method must be overridden in a custom control?

A. The Paint() method

B. The Control_Build() method

C. The default constructor

D. The Render() method

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

Anything appearing before ________ is cleared

A. Response.Flush

B. Response.End

C. Response.Buffer

D. Response.Clear

What is the correct answer?

4

In ASP.NET, the default method of a form is

A. Get

B. Post

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

To count the number of times an user visited a page, use

A. Session variables

B. Application variables

C. Cookies

D. Server variables

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

Of the following controls which can be used to add a control at runtime

A. Panel

B. Image

C. Label

D. All of the above

What is the correct answer?

4

What namespace contains the classes for file and directory access?

A. System.IO

B. System.File.IO

C. System.Data

D. System.IO.Data

What is the correct answer?

4

Error handling can be done through Global.asax

A. True

B. False

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

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

HTML elements, HTML server controls and ASP.NET server controls can be used on the same form

A. True

B. False

What is the correct answer?

4

Which of the following is not a member of ADODBCommand object?

A. ExecuteScalar

B. ExecuteStream

C. Open

D. ExecuteReader

What is the correct answer?

4

An error handling is Structured when we use

A. On Error GoTo

B. Try Catch

C. Both of the above

D. Any one of the above

What is the correct answer?

4

____________ enables you to set a particular date when a page should no longer be cached by a browser or proxy server

A. Response.Expires

B. Session.Timeout

C. Response.ExpiresAbsolute

D. Response.CacheControl

What is the correct answer?

4

Caching type supported by ASP.Net

A. Output Caching

B. DataCaching

C. a and b

D. none of the above

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

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

ASP.NET can be installed on Windows 98 machine

A. True

B. False

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

____________ 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

CDO stands for _________________ .

A. Collaborative Database Object

B. Collaborative Data Object

C. Collaborative Distributed Object

D. Complete Data Object

What is the correct answer?

4

To display HTML tags as it is use

A. Encode

B. HTMLEncode

C. URLEncode

D. EncodeHTML

What is the correct answer?

4

Under Button Click the following code is written
1. Dim I =10
2. MsgBox(I)

A. Problem is in line 1

B. Problem is in line 2

C. Will display 10 in a message box

D. Compilation Error

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