Advanced Web Programming MCQ's | Unit 3 AWP MCQ


Advanced Web Programming MCQ's With Answers

Advanced Web Programming


AWP UNIT 3 MCQ's 

1. Which of the following gives the number of catch blocks that can be defined for a single try block. 

  1. one 
  2. two 
  3. three 
  4. The try block can have any number of catch blocks

Ans : The try block can have any number of catch blocks

2. Which of these keywords must be used to monitor exceptions? 

  1. try 
  2. catch 
  3. finally
  4. else

Ans : try

3. Which of these keywords is not a part of exception handling? 

  1. try 
  2. catch 
  3. thrown
  4. finally

Ans : thrown

4. In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it? 

  1. compiler 
  2. CLR
  3. linker 
  4. loader

Ans : CLR

5. Which of the following is the Object Oriented way of handling run-time errors? 

  1. onError 
  2. Exception
  3. Errorcode
  4. Heresult

Ans : Exception

6. ____is superclass of all types of exceptions classes. 

  1. DivideByzero 
  2. Exceptionclass 
  3. Exception
  4. IndexError

Ans : Exception

7. _________  uses a hidden field that ASP.NET automatically inserts in the final, rendered HTML of a web page 

  1. Caption state 
  2. View state
  3. application state 
  4. button state

Ans : View state

8. The__________  is the portion of the URL after the question mark. 

  1. string 
  2. url 
  3. query string 
  4. app string

Ans : string

9. You configure session state through the  _____________   file for your current application.

  1. web.config 
  2. global 
  3. aspx 
  4. aspx.cs 

Ans : web.config

10.  _________allows you to store global objects that can be accessed by any client.

  1. Object 
  2. Access 
  3. Stateless 
  4. Application s

Ans : Application s

11. Which of the following statements is correct? 

  1. The throw keyword is not supported in C#.NET 
  2. The throw keyword is used to throw an exception object programmatically 
  3. The throw keyword is not used to throw an exception object programmatically 
  4. The throw keyword is used in older versions of the .NET framework

Ans : The throw keyword is not used to throw an exception object programmatically 

12. In C#.NET, an exception is? 

  1. Compile time error
  2. logical error 
  3. runtime error
  4. syntax error

Ans : runtime error

13. Which types of states manages in asp.net

  1. view state 
  2. control state 
  3. session state 
  4. all of above

Ans : all of above

14. _________is name -value pair that is stored on the client 's computer query string

  1. View state
  2. cookie
  3. session 
  4. state

Ans : cookie

15. Which is used to create a consistent look and behavior for all the pages in your web application. 

  1. user control 
  2. master page 
  3. validation control 
  4. nevigation control

Ans : master page 

16. In which a style is that's placed directly inside an HTML tag

  1. internal style 
  2. external style 
  3. inline style
  4. none of the above

Ans : inline style

17. View state,control state, hidden fields and cookies are used for ______________ state management. 

  1. client side 
  2. server side 
  3. client side and server side 
  4. none of the above

Ans : client side 

18. ________ are small files that are created in the web browser’s memory or on the client’s hard drive. 

  1. Cookies 
  2. query string
  3. application state variables 
  4. strings

Ans : Cookies

19. Which of the following operator is used to pass first query string parameter? 

  1. &&

Ans : ?

20. An external style sheet can be linked to a web page using ________ tag. 

  1. <a> 
  2. <script> 
  3. <link> 
  4. <meta>

Ans : <link>

21. HttpRequest class is present in ______________ namespace. 

  1. System.Web 
  2. System.Web.Security 
  3. System.Web.UI 
  4. System.Data

Ans : System.Web

22. Which of the following is not a method of HttpCookieCollection class? 

  1. Add() 
  2. Clear() 
  3. Remove() 
  4. Replace()

Ans : Replace()

23. Which of the following is a drowvback of Cookie? 

  1. It do not require any server resources  
  2. Easy to create and manipulate 
  3. Users can delete cookie 
  4. Cookies can be persistent

Ans : Users can delete cookie 

24. _______________ is a server-side state management technique. 

  1. Viewstate 
  2. Cookies 
  3. query string 
  4. Application State 

Ans : Application State 





Post a Comment