Home
Current Affairs January 2024

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

Correct Answer :

A. Response and Request


Related Questions

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

Anything appearing before ________ is cleared

A. Response.Flush

B. Response.End

C. Response.Buffer

D. Response.Clear

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

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

A ValidationSummary control is bound to a control

A. True

B. False

What is the correct answer?

4

We can write an XML document from ASP.NET without mentioning the encoding format ie even without specifying 'Nothing'

A. True

B. False

What is the correct answer?

4

Can you have more than one form declaration on a web form?

A. Yes

B. No

What is the correct answer?

4

.FileInfo gives information about any file and .File gives information about a particular file

A. True

B. False

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

To display HTML tags as it is use

A. Encode

B. HTMLEncode

C. URLEncode

D. EncodeHTML

What is the correct answer?

4

___________ sets the time out period for a particular page in seconds

A. Session.Timeout

B. Server.ScriptTimeout

C. Response.Expires

D. Response.ExpiresAbsolute

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

This file stores your web configuration

A. Web.conf

B. Web.config

C. WebConfig.ini

D. WebConf.ini

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

ASP.NET is object oriented

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

To send attachments using SMTP use

A. MailAttachment and MailMessage

B. CDO

C. Any one of the above

D. None 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

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

Default Session data is stored in ASP.Net.

A. StateServer

B. Session Object

C. InProcess

D. all of the above

What is the correct answer?

4

You have an image that is clickable and you want a pop-up window to display text that identifies the action that will be taken if the user clicks the image. What will you do?

A. For each image, set the AlternateText property to specify the text you want to display, and set the ToolTip property to True.

B. For each image, set the ToolTip property to specify the text you want to display.

C. In the onmouseover event handler for each image, add code that calls the RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class.

D. In the onmouseover event handler for each image, add code that calls the ToString() method of the System.Web.UI.WebControls.Image class.

What is the correct answer?

4

____________ enables you to add, modify and delete records and you will see the changes made by other users

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

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

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

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

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

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

What is the default data type of a variable in ASP.NET?

A. Variant

B. Object

C. Integer

D. String

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

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

A. True

B. False