Sie sind auf Seite 1von 2

ASP.

NET and WCF Test Paper


Marks: 25
Duration: 30mins

1. Which of the following hosts considered as self-host for WCF service?


a) WPF b) windows Service c) Console d) IIS

2. Which can only be invoked by HTTP?


a) Webservice b) WCF c) Both

3. Which element of WCF defines how communications is done?


a) Contract b) Binding c) Address

4. Which attribute is used for the methods in the service interface for client exposure?
a) ServiceContract b) OperationContract c) FaultContract

5. Which of the following binding is connection oriented ?


a) BasicHttp b) WShttp c)NetTcp

6. What are the objects used as server side for state managementin ASP.NET ?

7. Choose the control that is used to validate that two fields are equal.

a) RequiredFieldValidator b) RegularExpressionValidator

c) The equals() method d) CompareValidator

8. ASP.Net is supported by all browsers, true or false?

a)True b)False

9. Validation controls are the parts of

a)classic ASP b)ASP.Net c)Both

10. Which one is the Client-side Session Management technique?

a) Cookies b) Application object c)Session Object

11. Which one is used while writing cookies to the cookie file

a) Request object b)Response Object c)Server Object

12. Cookie file is maintained by server on client machine

a) True b) False
13. Which one limited to a user or Browser session

a)Application c) Session c)Cache

14. Global.asax file executes

a) Manually b)Automatically c)Manually called in Page_Load()

15. Which mode of session storage uses ASP.NET State Service to store session data?

a) OutProc b) InProc c) State Server d) Database

16. Arrange the following life cycle events of an ASP.NET web page in a sequence of occurrence;
Page_Render, Page_Init, Page_Load and Page_UnLoad.

Ans___________,____________,___________ and ____________

17. WCF service errors are send to client in response as a fault response using?

a) FaultException b) Exception c)ErrorResponse

18. Which attribute can be used to hide the fields of a WCF service custom entity?

a) [ForgetMember] b) [IgnoreDataMember] c)[DataMember]

19. Which attribute must be set to all validation controls?

a) ControlToCompare b)RegularExpression

c) ControlToValidate d) MinimumValue

20. Which class does the ASP.NET class inherit by default?

a) System.Web.UI.Form b) System.Web.UI.Page

c) System.Web.Form d) System.Web.GUI.Form

Das könnte Ihnen auch gefallen