View Count: 0
Duration: 56 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 10 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 20 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 Sample Code.
Sorry!For this module there is no Assignments.
Question No: 1 of 24
What is a contract? 
Options:
  1. contract will provide information about what a service provides fro client
  2. Contract provides address to the client
  3. contract provides how the service and client are binded
View Answer/Explanation:
a
Explanation:
Everything a consumer has to know is your service interface, and how to talk to it. In order to know this, both parts (service and consumer) have to share something that is called a Contract.

Question No: 2 of 24
What is ServiceContract? 
Options:
  1. Service contract will implement the service methods
  2. Service contract are used to define user defined types on the service
  3. Service Contract describes what the service can do
View Answer/Explanation:
c
Explanation:
Service Contract describes what the service can do. It defines some properties about the service

Question No: 3 of 24
What is an OperationContract? 
Options:
  1. Interface in the service is declared as OperaionContract
  2. User defined types in service are defined as OperationContract
  3. A set of actions which service will provide is called OperationContract
View Answer/Explanation:
c
Explanation:
A set of actions which service will provide is called OperationContract, Operation Contracts are equivalent to web methods in ASMX technology

Question No: 4 of 24
What are the properties of ServiceContract? 
Options:
  1. ConfigurationName
  2. Name and Namespace
  3. Callback contract
  4. HasProtectionLevel and protectionLevel
  5. All the above
View Answer/Explanation:
e
Explanation:
The ConfigurationName property specifies the name of the service element in the configuration file to use. The Name and Namespace properties control the name and namespace of the contract in the WSDL element. The SessionMode property specifies whether the contract requires a binding that supports sessions. The CallbackContract property specifies the return contract in a two-way (duplex) conversation. The HasProtectionLevel and ProtectionLevel properties indicate whether all messages supporting the contract have a explicit ProtectionLevel value, and if so, what that level is

Question No: 5 of 24
What is DataContract? 
Options:
  1. DataContract is used for serializing the object.
  2. DataContract describes what the service can do
  3. A set of actions which service will provide is called DataContract
View Answer/Explanation:
a
Explanation:
Enables complex types(user defined types) to be serialized and desterilized so that this can be exchanged between client and server. DataContractSerializer is used for serializing the object

Question No: 6 of 24
Can a DataContract accommodates with  later versions? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:
When a later version of contract includes extra data, that data is stored and returned to sender untouched .To do this we should implement IExtensibleDataObject

Question No: 7 of 24
What are the properties of DataContract? 
Options:
  1. Name
  2. Namespace
  3. both a & b
View Answer/Explanation:
c
Explanation:
Name: Gets or sets the name of the data contract for the type. Namespace: Gets or sets the namespace for the data contract for the type

Question No: 8 of 24
What a Datacontract consists of? 
Options:
  1. DataMembers
  2. Operation Members
  3. Service Members
  4. None
View Answer/Explanation:
a
Explanation:
Datacontracts consists of DataMembers

Question No: 9 of 24
What is a  DataMember? 
Options:
  1. Members of DataContract
  2. Members of ServiceContract
  3. Members of OperationContract
View Answer/Explanation:
a
Explanation:
DataMember attribute is applied to identify members that are part of DataContract.Properties to which the DataMember attribute has been applied must have both get and set fields, they cannot be get-only or set-only.

Question No: 10 of 24
What are DataMember attributes? 
Options:
  1. IsRequired
  2. Name
  3. Order
  4. all the above
View Answer/Explanation:
d
Explanation:
IsRequired: Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing. Name: Gets or sets a data member name. Order: Gets or sets the order of serialization and deserialization of a member.

  1