Saturday, September 22, 2012

ASP.NET QUIZ-2

1. Which of the following methods is ideally suited for retrieving a single row and single column from the database?
  1. By using fill method of the data adapter
  2. By using ExecuteReader method of the command object
  3. By using ExecuteScalar method of the command object
  4.  All of the above
2. Which of the following statements are correct?
  1. A class is an instance factory
  2. A class is a template for creating an entity
  3. A class is a set of all the instances of a pattern
  4. None of the above
3.  Which of the following is not a valid ASP.NET Web form control?
  1. <ASP:Panel>
  2. <ASP:Div>
  3. <ASP:TableCell>
  4. <ASP:ImageButton>
4.  What does Managed Data refer to?
  1. The data stored by CLR
  2. The data allocated by CLR GC
  3. The data de-allocated by CLR GC
  4. The data allocated and de-allocated by CLR GC
5. You want to create a cookie object named “CustomerAddress” of type “CustomerInfo” to maintain address information of customers who buy products online. Which of the following code snippets should you use to create this cookie?
  1. Dim CustomerAddress As New Cookie(“CustomerInfo”)
  2. Dim CustomerAddress As Cookie(“CustomerInfo”)
  3. Dim CustomerAddress As HttpCookie(“CustomerInfo”)
  4. Dim CustomerAddress As New HttpCookie(“CustomerInfo”)
6. Which of the following is not a service provided by Common Language Runtime (CLR)?
  1. Garbage collection
  2. Multiple platform support
  3. Code verification
  4. Code access security
7. How many times can classes be nested within a class?
  1. 5
  2. 8
  3. 4
  4. Any number of times
8.  ______ namespace is not defined in the base class library.
  1. System
  2. System.CodeDom
  3. System.IO
  4. System.Thread
  5. System.Text
9. Which of the following authorization and authentication methods is not provided by ASP.NET?
  1. Windows built-in authentication
  2. Passport-based authentication
  3. Forms-based authentication
  4. IIS authentication
10. You are developing an application to take orders over the internet. When the user posts back the order form, you first check to see whether he is a registered customer of your company. If not, you must transfer control to the Register.html page. Which method should you use to effect this transfer?
  1. Response.Redirect()
  2. Server.Transfer()
  3. Server.Execute()
  4. Page.ProcessRequest()

Answer: 1.3, 2.2, 3.2, 4.4, 5.4, 6.2, 7.4, 8.2, 9.4, 10.1

No comments:

Post a Comment