News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Online Test ASP.NET with SQL Server

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

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

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

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

Answer: Answer is d
Further Reading:

Useful resources, ToolTip


  1. Page_Init

  2. Page_Load

  3. Both Page_Init and Page_Load

  4. Neither in Page_Load nor Page_Init

Answer: Answer is b
Further Reading:

The control’s value set during the postback can be accessed in Page_Load.


You create an ASP.NET page named Customer.aspx. Customer.aspx contains a Web user control that displays a drop-down list box of Cities. The Web user control is named CityList, and it is defined in a file named CityList.ascx. The name of the DropDownList control in City.ascx is CuCity. You try to add code to the Page.Load event handler for Customer.aspx, but you discover that you cannot access CuCity from code in Customer.aspx. You want to ensure that code within Customer.aspx can access properties of CuCity.

What should you do?

  1. In the code-behind file for CityList.ascx, add the following line of code:Protected CuCity As DropDownList

  2. In the code-behind file for Customer.aspx, add the following line of code:Public CuCity As DropDownList

  3. In the code-behind file for Customer.aspx, add the following line of code:Protected CuCity As DropDownList

  4. In the code-behind file for CityList.ascx, add the following line of code:Public CuCity As DropDownList

Answer: Answer is d
Further Reading:

We need to declare CuCity as public to access it.


  1. Garbage collection

  2. Multiple platform support

  3. Code verification

  4. Code access security

Answer: Answer is b
Further Reading:

Useful resources, .NET Framework, Common Language Runtime


You are creating an ASP.NET application that will record each customer's entry. It is possible that thousands of entries could be posted at any given time. Your application will be hosted on twenty Web servers. As customers enter information into your application, maintaining state information will be important. This information should be stored securely and should be capable of being restored in the event that a Web server is restarted. Customers will enter data into three separate pages in your application.

Which of the following methods of storing state information would best suit the situation?

  1. View State

  2. Hidden fields

  3. State Server

  4. Application state

  5. SQL Server

Answer: Answer is e

<%@ Register tagprefix="ril" Tagname="test" Src="rilTest.ascx" %>
  1. Register a new web site

  2. Register a new tag

  3. Register a new user control

  4. Register a new web page

Answer: Answer is c
Further Reading:

Useful resources, Include a User Control in an ASP.NET, User Controls


You are debugging an ASP.NET application for Premium Corp.. Users will use the application to produce reports. Your application contains several Debug.WriteLine statements. Which window in Visual Studio .NET should you use to inspect output from the Debug.WriteLine statements?

  1. Command

  2. Locals

  3. Output

  4. Breakpoints

Answer: Answer is c
Further Reading:

Useful resources, Debug.WriteLine Method


  1. The Server configuration will always override the Application configuration

  2. The Application configuration will always override the Server configuration

  3. The Server configuration will override the Application configuration if allowOverride is set to "false" in the settings in the Server configuration file

  4. The Application configuration will override the Server configuration if allowOverride is set to "false" in the settings in the Server configuration file

Answer: Answer is b
Further Reading:

Settings in child directories can optionally override or modify settings that are specified in parent directories. Useful resources, ASP.NET Configuration, ASP.NET Configuration Hierarchy


(a)MSIL code is platform independent

(b)CLR is platform dependent

  1. Only (a) is true, (b) is false

  2. Only (b) is true, (a) is false

  3. Both (a) and (b) are true

  4. Both (a) and (b) are false

Answer: Answer is c

You are creating an ASP.NET page for your company's Web site. Customers will use the ASP.NET page to enter payment information. You add a DropDownList control named oPaymentTypeList that enables customers to select a type of credit card and bank accounts. You need to ensure that customers select a credit card type. You want a default value of Select to be displayed in the oPaymentTypeList control. You want the page validation to fail if a customer does not select a payment type from the list. What should you do?

  1. Add a RequiredFieldValidator control and set its ControlToValidate property to oPaymentTypeList. Set the InitialValue property of the RequiredFieldValidator control to Select.

  2. Add a RequiredFieldValidator control and set its ControlToValidate property to oPaymentTypeList. Set the DataTextField property of the oPaymentTypeList control to Select.

  3. Add a CustomValidator control and set its ControlToValidate property to oPaymentTypeList. Set the DataTextField property of the oPaymentTypeList control to Select.

  4. Add a RegularExpressionValidator control and set its ControlToValidate property to oPaymentTypeList. Set the ValidateExpression property of the RegularExpressionValidator control to Select.

Answer: Answer is a
Further Reading:

Useful resources, RequiredFieldValidator


Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;