Tag: web technology

Questions Related to web technology

Will the finally block still execute,when a return statement is written at the end of the try block?

  1. True

  2. False


Correct Option: B
  1. initDaemon

  2. createDaemon

  3. setDaemon

  4. runDaemon


Correct Option: C

The different ways of using Thread?

  1. By implementing Runnable Interface.

  2. By inheriting from the Runnable Interface.

  3. By implementing the Thread Class.

  4. By inheriting from the Thread class.


Correct Option: A,C

For which one of the following reasons would a builder use StringBuilder over string?

  1. Due to its nature as a reference type, StringBuilder has a smaller footprint than string,thereby allowing more efficent memory management.

  2. StringBuilder is inherently more efficent due to its nature as a reference type comparedto string, which is a value type

  3. StringBuilder allows for dynamic appending of types; string creates a new string every time it is appended to.

  4. StringBuilder has the ability to accept objects other than string in order to build a string by automatically calling the ToString method on the object.

  5. Regular expressions are built into StringBuilder, allowing for much more efficent text processing than what could usually be achieved by using a string.


Correct Option: C

A DataView can provide different views of which one of the following objects?

  1. DataTable

  2. Dataset

  3. RecordSet

  4. DataRelation

  5. RowSet


Correct Option: A
  1. System.Runtime

  2. System.Activator

  3. System.AppDomainSetup

  4. System.Reflection.Emit

  5. System.Management


Correct Option: D

When Internet Explorer is serving as a Runtime Host for an application domain, what mechanism does it use to support the download and execution of managed browser based controls?

  1. Reflection

  2. COM/DCOM

  3. mime types

  4. XML

  5. Sockets


Correct Option: D

Which one of the following statements is true about garbage collection?

  1. It is invoked every 40 seconds until the process is destroyed.

  2. It only occurs when the Collect method is explicitly invoked in the System.GC class.

  3. It is invoked every time a constructor is called.

  4. It is invoked when generation 0 does not have room for the newly created object.

  5. It is invoked when the Dispose method is explicitly called.


Correct Option: E
  1. Static

  2. InitOnly

  3. Virtual

  4. Abstract

  5. Sealed


Correct Option: E

Which one of the following services provides transactional programming, object pooling, and role-based security?

  1. ADO

  2. CLR

  3. MTS

  4. COM+

  5. COM/DCOM


Correct Option: E