Home
Current Affairs January 2024

What is the correct answer?

4

Default scripting language in ASP.

A. EcmaScript

B. VBScript

C. PERL

D. JavaScript

Correct Answer :

B. VBScript


Related Questions

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 write a root tag say '<details>' through ASP.NET use

A. WriteElement

B. WriteStartElement

C. WriteElementString

D. WriteElementStart

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

Menus can be added to an ASP.NET Page

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

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

An alternative way of displaying text on web page using

A. asp:label

B. asp:listitem

C. asp:button

D. None of these

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

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

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

.DirectoryInfo gives information about any Directory

A. True

B. False

What is the correct answer?

4

To count how many users have logged in the web site till date use

A. Increment Session Variable in Session_Start event of Global.asax file

B. Increment Session Variable in Aplication_Start event of Global.asax file

C. Increment Application Variable in Session_Start event of Global.asax file

D. Increment Application Variable in Application_Start event of Global.asax file

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

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

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

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

By default a WebForm inherits from

A. System.Web.Page

B. System.UI.Page

C. System.Web.UI.Page

D. System.Web.Form.Page

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

There can be more than one Global.asax file

A. True

B. False

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

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

____________ 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

In Global.asax there are _______ general methods

A. 5

B. 6

C. 7

D. 8

What is the correct answer?

4

Radio Button's have same name and different values while Checkboxes have the reverse

A. True

B. False

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

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

___________ 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

Error handling can be done through Global.asax

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

To make an HTML control behave as a Server control, ___________ option must be set.

A. Server Control

B. Run As Server Control

C. Run As Web Control