Home
Current Affairs January 2024

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

Correct Answer :

D. The Render() method


Related Questions

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

Anything appearing before ________ is cleared

A. Response.Flush

B. Response.End

C. Response.Buffer

D. Response.Clear

What is the correct answer?

4

For Adrotator control the XML file is mentioned through ________ property

A. File

B. Name

C. Advertisement File

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

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

To open Microsoft Word from ASP.NET page use

A. Response.Content

B. Response.ContentType

C. Request.Content

D. Request.ContentType

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

Default scripting language in ASP.

A. EcmaScript

B. VBScript

C. PERL

D. JavaScript

What is the correct answer?

4

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

A. Response

B. Request

C. Session

D. Application

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

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

This file stores your web configuration

A. Web.conf

B. Web.config

C. WebConfig.ini

D. WebConf.ini

What is the correct answer?

4

In case of a CompareValidator, a TextBox's value can be compared to an expression

A. True

B. False

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

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

A. True

B. False

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

Choose the form in which Postback occur

A. HTMLForms

B. Webforms

C. Winforms

D. None of these

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

____________ 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

To pass queries to Crystal Reports use

A. SelectionFormula

B. Formula

C. Filter

D. None of the above

What is the correct answer?

4

The HTML control that helps to browse a file is

A. File

B. FileBrowser

C. Browser

D. Select

What is the correct answer?

4

To set text programmatically without adding extra HTML tags use

A. Literal

B. Response.Write

C. Both of the above

D. None of the above

What is the correct answer?

4

Cookies can be created with mentioning the expiry date
True

A.

B. False

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

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

_________ 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

In ___________ records are locked when the update method is called

A. LockReadOnly

B. LockPessimistic

C. LockOptimistic

D. LockDynamic

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

To make a RepeaterControl viewable, the controls ____________ must be edited

A. DataSource

B. DataMember

C. ItemTemplate

D. Template

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