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. Events are specialized forms of delegates

  2. Events are used to support the callback event notification model

  3. The signature of any event handler is fixed

  4. All of the above are true

Answer: Answer is d

<%@ Page Language="VB" CodeBehind="PersonalDetails.aspx.vb" AutoEventWireup="false" inherits="InsApp.PersonalDet"%> PersonalDetails.aspx had a TextBox control named MemberID in which the user can enter a Personal MemberID. The HTML code for this control is as follows: <asp:TextBox ID="MemberID" Columns="20" Runat="server"/> You need to implement a TextChanged event handler for MemberID. You want this event handler to retrieve information about a person by using an XML Web service that charges for each access. The page will then be redisplayed with additional information about the vehicle obtained from the XML Web service. You are implementing the TextChanged event handler. Which two courses of action should you take? (Each correct answer presents part of the solution. Choose two)

  1. In the Page directive for PersonalDetails.aspx, ensure that the AutoEventWireup attributes is set to "true".

  2. In the Page directive for PersonalDetails.aspx, ensure that the EnableViewState attribute is set to "true".

  3. In the MemberID HTML element, ensure that the AutoPostback attribute is set to "false". Include code for the client-side onserverchange event to submit the Web Form for processing by theserver

  4. In the MemberID HTML element, ensure that the AutoPostback attribute is set to "true". Include code in the TextChanged event handler to query the XML Web service

Answer: Answer is a, d

  1. Create a Microsoft Visual Studio .NET Enterprise template

  2. Create a sample HTML page

  3. Create a sample ASP.NET Web form

  4. Create a cascading style sheet

Answer: Answer is d
Further Reading:

Useful resources, CSS Overview


  1. A try block can have more than one catch blocks

  2. Every try block must have a catch block

  3. Every try block must have a finally block

  4. All exception classes are to be derived from System.Exception

Answer: Answer is b, c
Further Reading:

A try block must have either a catch block or finally block. Useful resources, try-catch-finally, try-finally, try-catch, Exception Class


XYZ is creating an e-commerce site for PremiumBoutique. The site is distributed across multiple servers in a Web farm. Users will be able to navigate through the pages of the site and select products for purchase. XYZ wants to use a DataSet object to save their selections. Users will be able to view their selections at any time by clicking a Shopping Cart link. XYZ wants to ensure that each user's shopping cart DataSet object is saved between requests when the user is making purchases on the site.

How can this requirement be implement?

  1. Create a StateBag object. Use the StateBag object to store the DataSet object in the page's ViewState property

  2. Use the HttpSessionState object returned by the Session property of the page to store the DataSet object. Use the Web.config file to configure an out-of-process session route

  3. Use the Cache object returned by the page's Cache property to store a DataSet object for each user. Use an HttpCachePolicy object to set a timeout period for the cached data

  4. Use the Session_Start event to create an Application variable of type DataSet for each session. Store the DataSet object in the Application variable

Answer: Answer is b

  1. Add a new component class to your ASP.NET project. Use HTML server controls to design the toolbar within the designer of the component class.

  2. Create a new Web Control Library project. Create the toolbar within a Web custom control.

  3. Add a new Web user control to your ASP.NET project. Create the toolbar within the Web user control.

  4. Add a new Web Form to your ASP.NET project. Use HTML server controls to design the toolbar within the Web Form and save the Web Form with an ascx extension

Answer: Answer is c
Further Reading:

Useful resources, ASP.NET User Controls


  1. Server-side code

  2. Use the Browser object's VBScript or JavaScript properties to test if the browser can run scripts

  3. Use the Browser object's Cookies

  4. Client-side scripts

Answer: Answer is d
Further Reading:

As we do not need to send or receive anything from server, client side script is the best approach to interact with user’s activity.Useful resources, Client-Side Script


  1. Response.Redirect()

  2. Server.Transfer()

  3. Server.Execute()

  4. Page.ProcessRequest()

Answer: Answer is a

Your company, StoreIt Inc has stored the text of several journals in a Microsoft SQL Server 7.0 database. Each sentence is stored in a separate record so that  the text can be retrieved with the finest granularity. Several of these works are many thousands of printed pages in length. You are building a Web application that will allow registered users to retrieve data from these volumes. When a user of your Web application requests large amounts of text, your application must return it in the most efficient manner possible. How should you build the large String object that is required to provide the most efficient response to the user?

  1. Use a RichTextBox object to hold the data as it is being concatenated.

  2. Use the Append method of the String class.

  3. Use the String class and the & operator.

  4. Use the StringBuilder class.

Answer: Answer is d
Further Reading:

Useful resources, StringBuilder class


Statement 1: Value types are allocated on a stack

Statement 2: Reference types are allocated on a managed CLR Heap

  1. Statement 1 is true and statement 2 is false

  2. Statement 2 is true and statement 1 is false

  3. Both statements 1 and 2 are true

  4. Both statements 1 and 2 are false

Answer: Answer is c
Further Reading:

Value types are either stack-allocated or allocated inline in a structure. Reference types are heap-allocated. Both reference and value types are derived from the ultimate base class Object. Useful resources, ValueType


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.

;