ASP.NET Online Test Questions - 2

9. In which phase of the Aspx page life cycle, final cleanup is done and all resources and references are freed?

a. Load
b. LoadComplete
c. PreRender
d. UnLoad

Answer: d. UnLoad


10. Which of the following represents a relationship between database tables and correlates tables on the basis of matching column?

a. DataRelationship
b. DataRelation
c. DataConstraint
d. Datakey

Answer: b. DataRelation


11. Which of the following is/are correct about Response.Write() and Response.Output.Write()?

a. Both are used for print output on the screen
b. Response.Output.Write() allows you to write formatted output
c. Response.write() don't give formatted output.
d. All of the above

Answer: d. All of the above


12. Which one of the following is used to obtain performance information about a Web Application?

a. Data Performance Counters
b. Performance Counters
c. Web Performance Counters
d. Data Readers

Answer: b. Performance Counters


13. What is/are the advantage(s) of using Session State in ASP.NET?

a. Better security
b. Reduced bandwidth
c. Accessing of data is slow
d. a and b

Answer: d. a and b


14. Which one of the following is used to automatically pass the information of controls from one page to the other?

a. View state
b. Session State
c. Application State
d. All of the above

Answer: a. View state


15. Garbage collector runs when application is running low of memory.

a. True
b. False

Answer: a. True


16. Which one of the following is to be implemented for .NET remote server object?

a. IUnknown
b. IMarshalByValue
c. ISerializable
d. ISingleCall

Answer: c. ISerializable