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

Sam is developing an application that enables the users to perform read and write operations on text files. He uses structured exception handling to handle the errors. He writes the code for closing all the files that were opened in the Finally block. Which of the following is true regarding the Finally block?

  1. Finally block will be executed only if an error occurs

  2. Finally block is executed after Catch block when no error occurs

  3. Finally block is executed after Try block regardless of whether an error occurs

  4. Finally block is executed only when no error occurs

Answer: Answer is c
Further Reading:

Useful resources, try-catch-finally, try-finally, try-catch, Exception Class

  1. @Page

  2. @Implements

  3. @Insert

  4. @Register

  5. @Reference

Answer: Answer is c

  1. Server.GetLastError()

  2. Exception ex

  3. Raise Error

  4. None of above

Answer: Answer i
Further Reading:

Useful resources, Handling COM Interop Exceptions

  1. By enabling page tracing

  2. By enabling application tracing

  3. By enabling server tracing

  4. By looking up the system.log file

Answer: Answer is a, b
Further Reading:

The Trace.Write() statements do not appear within the resulting output. To view the results of the Trace.Write() statements, we need to enable tracing for the page or for the application. Useful resources, tracing

1. For configuration, ASP.NET uses IIS Metabase

2. For configuration, ASP.NET uses an XML based configuration system

  1. 1 only

  2. 2 only

  3. Both 1 and 2

  4. Neither 1 nor 2

Answer: Answer is c
Further Reading:

Useful resources, ASP.NET Configuration Overview

  1. Yes

  2. No

Answer: Answer is b



<deny users="RIL"/>

<allow users="RIL"/>


  1. The user RIL is first denied and then allowed access

  2. The user RIL is denied access because the <deny> element takes precedence over the <allow> element

  3. An error is generated because deny and allow cannot both be assigned to the same user

  4. Can't say. It depends on the Windows OS version

Answer: Answer is b
Further Reading:

At run time, the authorization module iterates through the allow and deny elements, starting at the most local configuration file, until the authorization module finds the first access rule that fits a particular user account. Then, the authorization module grants or denies access to a URL resource depending on whether the first access rule found is an allow or a deny rule. Useful resources, deny allow Element for authorization

You are creating an ASP.NET application. The application will be deployed on intranet. Application uses Microsoft Windows authentication. More than 100 users will use the ASP.NET application simultaneously. What setting should be done by the project manager regarding user authentication?

  1. Add the following element to the authentication section of the Web.config file: <allow users="?"/>

  2. Use the Configuration Manager for your project to designate the user's security context.

  3. Write code in the Application_AuthenticateRequest event handler to configure the application to run in the user's security context.

  4. Add the following element to the system.web section of the Web.config file: <identity impersonate="true"/>

Answer: Answer is a
Further Reading:

Useful resources, deny allow Element for authorization

  1. Include

  2. Import

  3. Insert

  4. Both a and b

Answer: Answer is b

  1. To signal the occurrence of unusual or unanticipated program events

  2. To redirect the program's normal flow of control

  3. In cases of potential logic or user input errors

  4. In case of overflow of an array boundary

Answer: Answer is c


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.