Home
Current Affairs January 2024

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

Correct Answer :

C. Will display 10 in a message box


Related Questions

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

ASP.NET supports all data types that VB.NET supports

A. True

B. False

What is the correct answer?

4

Why is Global.asax is used?

A. Declare Global variables

B. Implement application and session level events

C. No use

D. Both a and b

What is the correct answer?

4

Anything appearing after ________ is cleared

A. Response.Flush

B. Response.End

C. Response.Buffer

D. Response.Clear

What is the correct answer?

4

This property is inapplicable in DropDownList

A. SelectionMode

B. Items

C. DataMember

D. None of the above

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

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

A. Get

B. Post

What is the correct answer?

4

The first event triggers in an aspx page is.

A. Page_Init()

B. Page_Load()

C. Page_click()

D. None of these

What is the correct answer?

4

Which of the following object is not an ASP component?

A. LinkCounter

B. Counter

C. AdRotator

D. File Access

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

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

_________ is used to write/read into a leaf node

A. Value

B. InnerText

C. Text

D. InnerValue

What is the correct answer?

4

We can manage states in asp.net application using

A. Session Objects

B. Application Objects

C. Viewstate

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

To save an XML file from ASP.NET use

A. Save

B. Update

C. SaveXML

D. UpdateXML

What is the correct answer?

4

A DataSet can be generated from

A. Page and DataConnection Object

B. DataAdapter and Page Object

C. DataAdapter and DataConnection Object

D. All of the above

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

Error handling can be done through Global.asax

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

___________ controls how proxy servers temporarily store web pages

A. Expires

B. CacheControl

C. ExpiresAbsolute

D. None of the above

What is the correct answer?

4

Attribute must be set on a validator control for the validation to work.

A. ControlToValidate

B. ControlToBind

C. ValidateControl

D. Validate

What is the correct answer?

4

There can be more than one Global.asax file

A. True

B. False

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

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

___________ 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

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

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

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

While redirecting, values can be passed with it

A. True

B. False

What is the correct answer?

4

This file stores your web configuration

A. Web.conf

B. Web.config

C. WebConfig.ini

D. WebConf.ini