Home
Current Affairs January 2024

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

Correct Answer :

C. Response.ExpiresAbsolute


Related Questions

What is the correct answer?

4

In ASP.NET a page is inherited from System.Web.UI.Page. Here UI means

A. Universal Indicator

B. Uniform Indicator

C. User Interface

D. Universal Interface

What is the correct answer?

4

A web server control is written as

A. <asp-TextBox ......

B. <asp TextBox ......

C. <aspTextBox ........

D. <asp:TextBox ........

What is the correct answer?

4

CDONTS is designed on for Windows NT Server

A. True

B. False

What is the correct answer?

4

Cookies collection is present in

A. Response and Request

B. Request and Server

C. Response and Server

D. All of the above

What is the correct answer?

4

In ___________ records are locked when the update method is called

A. LockReadOnly

B. LockPessimistic

C. LockOptimistic

D. LockDynamic

What is the correct answer?

4

What are unique properties of RangeValidator control?

A. Maximum value

B. Minimum value

C. Type

D. All of the above

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 tag equivalent to Panel is

A. Div

B. Br

C. P

D. Span

What is the correct answer?

4

ASP.NET uses _______ as the code behind

A. VB

B. VBScript

C. JavaScript

D. Jscript

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

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

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

______________ 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

To read an XML file from ASP.NET use

A. XMLTextReader

B. XMLReader

C. XML.Reader

D. ReadXML

What is the correct answer?

4

A ValidationSummary control is bound to a control

A. True

B. False

What is the correct answer?

4

While accessing values submitted to a web form, __________ property of a control is used.

A. Value

B. Text

C. Item

D. Id

What is the correct answer?

4

______________ creates a read-only recordset that can scroll forward only.

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

What is the correct answer?

4

To write an attribute for a tag through ASP.NET use

A. WriteAttribute

B. WriteStartAttribute

C. WriteAttributeString

D. WriteElementString

What is the correct answer?

4

You can send an e-mail with an attachment using only SmtpMail class

A. True

B. False

What is the correct answer?

4

If a Table controls name is Table1, to access value from its second row, third column, __________________ can be used.

A. table1.rows(1).cells(2).text

B. table1.rows(2).cells(3).text

C. table1.rows(1).cells(2).value

D. table1.rows(2).cells(3).value

What is the correct answer?

4

.DirectoryInfo gives information about any Directory

A. True

B. False

What is the correct answer?

4

How do you get information from a form that is submitted using the "post" method?

A. Request.QueryString

B. Request.Form

C. Response.write

D. Response.writeln

What is the correct answer?

4

In ___________ records are read-only and cannot be changed.

A. LockReadOnly

B. LockPessimistic

C. LockOptimistic

D. LockDynamic

What is the correct answer?

4

Checkboxes have same name and different values while Radio Buttons have the reverse

A. True

B. False

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

What class does a Web Service Inherit?

A. System.Web.Services

B. System.Web

C. System.Services

D. System.Web.Page

What is the correct answer?

4

What class does the ASP.NET Web Form class inherit from by default?

A. System.Web.UI.Page

B. System.Web.UI.Form

C. System.Web.GUI.Page

D. System.Web.Form

What is the correct answer?

4

You need to modify an ASP.NET page to prevent the browser window from going blank after a postback and to maintain the correct control focus after events are processed. What should you do?

A. Add the following attribute to the HTML code for the controls that cause the postbacks:
RunAt="client"

B. Add the following attribute to the HTML code for the controls that cause the postbacks:
EnableViewState="True"

C. Add the following attribute to the Page directive for the aspx file:
SmartNavigation="True"

D. Add the following attribute to the OutputCache directive for the aspx file:
Location="client

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

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