Live Help (Start Chat)
View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

testing

Posted By Pradeep on 24-Aug-2017
Sorry!For this module there is no Assignments.
Question No: 1 of 6
From a WCF service  the only exception message thrown to client? 
Options:
  1. FaultException
  2. FaultCode Exception
  3. Faultblock Exception
  4. None
View Answer/Explanation:
a
Explanation:
From a WCF service the only exception message thrown to client is FaultException

Question No: 2 of 6
If there is a FileNotFound or SQL exception or IO exception or any other type of   exception is  thrown in a service and if it is unhandled in the service , will  it  be reported to the client ? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:
If there is a filenotfound or SQL exception or IO exception or any other exception is thrown in a service and if it is unhandled in the service ,It will not be reported to the client as it is, that exception is encapsulated in fault exception, and this fault exception is reported to the client.

Question No: 3 of 6
How to distinguish one exception message from another exception message on client as in all cases service reports fault exception to the client? 
Options:
  1. using try-catch block in service
  2. using the fault code
  3. none
View Answer/Explanation:
b
Explanation:
By using the fault code to distinguish from one type of error with other type of error occurred on the server .

Question No: 4 of 6
How WCF complete exception message can be reported to the client? 
Options:
  1. by setting the attribute inlcudeExceptionDetailInFaults=False
  2. by setting the attribute inlcudeExceptionDetailInFaults=true
View Answer/Explanation:
b
Explanation:
By setting inlcudeExceptionDetailInFaults attribute to true WCF complete exception detail message can be reported to the client

Question No: 5 of 6
When we will use one-way operation? 
Options:
  1. when client is not interested in return value of the method immediately
  2. used for asynchronous communication between client and service
View Answer/Explanation:
a
Explanation:
When client invoked the method after invoking client forgets about the method, client is not interested in return value of the method.In such situations we will go for one-way operation.

Question No: 6 of 6
Will exception be thrown immediately to the client when one-way operation is used? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:
exception raised in one way operation the will not be thrown to client immediately, this exception will be thrown when client was requested for the next time to the service.

  1