View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 11 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 19 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Assignments.
Question No: 1 of 9
What is a ServiceContract? 
Options:
  1. This is the contract which service will implement
  2. These are the methods which client can invoke on the service
  3. When parameter or return type of a service operationContract used is of type custom class those are declared as ServiceContract
View Answer/Explanation:
a
Explanation:
An interface is declared as ServiceContract,this is the contract which service will implement

Question No: 2 of 9
What is an OperationContract ? 
Options:
  1. An Interface is declared as OperationContract
  2. Methods in the interface are declared as OperationContract
  3. The members of DataContract are declared as OperationContract
  4. None of the above
View Answer/Explanation:
b
Explanation:
Methods in the interface are declared as OperationContract, These are the methods which client can invoke on the service

Question No: 3 of 9
What is DataContract? 
Options:
  1. When parameter or return type of a service operationContract used is of type custom class those are declared as DataContract
  2. Methods in the interface are declared as DataContract
  3. An Interface is declared as DataContract
View Answer/Explanation:
a
Explanation:
When parameter or return type of a service operationContract used is of type custom class those are declared as DataContract, The members of DataContract are declared as DataMember.

Question No: 4 of 9
What is the use of svcutil.exe file 
Options:
  1. svcutil.exe provides schema of the webservice to the client
  2. Used to generate a proxy class on the client application
View Answer/Explanation:

Explanation:
Used to generate a proxy class on the client application

Question No: 5 of 9
What is the use of wsdl(webservice description language) document 
Options:
  1. Provides Proxy on the Client
  2. provides schema of the webservice to the client
  3. Shares class on client application
View Answer/Explanation:
b
Explanation:
This document provides schema of the webservice to the client

Question No: 6 of 9
How to make a service statefull  or stateless 
Options:
  1. By adding ServiceBehavior attribute to service class a service can become statefull/stateless
  2. By setting InstanceContextMode attribute of ServiceBehavior in service class.We can make a service as statefull/stateless
  3. WCF doesn't support statefull behavior
View Answer/Explanation:
b
Explanation:
By setting InstanceContextMode attribute of ServiceBehavior in service class.We can make a service as statefull/stateless [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession Or PerCall or Single

Question No: 7 of 9
What happens when we set InstanceContextMode to PerSession in ServiceBehavior 
Options:
  1. Only one Service instance is created and the same is used by all the clients for their methods called.
  2. For every client a new Service instance is created and same is used for all the methods called by that client .It is the default
  3. New Instance of Service is created for every method called by client
View Answer/Explanation:
b
Explanation:
For every client a new Service instance is created and same is used for all the methods called by that client .It is the default

Question No: 8 of 9
What happens when we set InstanceContextMode to perCall in ServiceBehavior 
Options:
  1. New Instance of Service is created for every method called by client.
  2. For every client a new Service instance is created and same is used for all the methods called by that client .
  3. Only one Service instance is created and the same is used by all the clients for their methods called.
View Answer/Explanation:
a
Explanation:
New Instance of Service is created for every method called by client, Completely stateless behavior like webservices

Question No: 9 of 9
What happens when we set InstanceContextMode to single in ServiceBehavior 
Options:
  1. For every client a new Service instance is created and same is used for all the methods called by that client .
  2. New Instance of Service is created for every method called by client.
  3. Only one Service instance is created and the same is used by all the clients for their methods called.
View Answer/Explanation:
c
Explanation:
Only one Service instance is created and the same is used by all the clients for their methods called.This is also called as Singleton model

  1