Tag: programming languages

Questions Related to programming languages

Windows Communication Foundation service uses the net.tcp transport. You need to ensure that when the server starts, the service starts and continues to run. What should you do?

  1. Host the service in a Windows service

  2. Host the service in a Windows Presentation Foundation application

  3. Host the service under IIS 7.0 by using IIS 6.0 compatibility mode

  4. Host the service under IIS 7.0 by using Windows Activation Services


Correct Option: A

How to define a service as REST based service in WCF?

  1. [ServiceContract] interface IStock { [OperationContract] [WebGet] int GetStock(string StockId); }

  2. [ServiceContract] interface IStock { [OperationContract] [WebInvoke] int GetStock(string StockId); }

  3. a and b

  4. None


Correct Option: C

The client applications are unable to use SSL. You need to ensure that clients authenticate by using a token provided by a Security Token Service (STS). What should you do?

  1. Use a BasicHttpBinding binding with the security mode set to Message

  2. Use a BasicHttpBinding binding with the security mode set to TransportWithMessageCredential

  3. Use a WSFederationHttpBinding binding with the security mode set to Message

  4. Use a WSFederationHttpBinding binding with the security mode set to TransportWithMessageCredential


Correct Option: C

You are creating a distributed application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. The operations provided by the WCF server use the remote resources of other computers. These methods use the credentials provided by the client applications. You need to ensure that the WCF server can impersonate the client applications to access the remote resources. Which client application settings should you use?


Correct Option: A

How can we implement transport security plus message security in WCF?


Correct Option: B

In WCF, by default which binding does support the reliable session?

  1. basicHttpbinding

  2. wsDualHttpBinding

  3. wsHttpHttpBinding

  4. netTcpBinding


Correct Option: C

Which binding does not support the message streaming?

  1. basicHttpBinding

  2. netTcpBinding

  3. netNamedPipeBinding

  4. wsDualHttpBinding


Correct Option: D

What is the type of contract not available in WCF?

  1. Service Contract

  2. Operation Contract

  3. Data Contract

  4. Message Contract

  5. Exception Contract


Correct Option: E

What is the utility to test WCF services?

  1. WcfClient.exe

  2. WcfTestClient.exe

  3. WcfTestService.exe

  4. WcrTestRemoteService.exe


Correct Option: B

What is the namespace is used to access WCF service?

  1. System.Service

  2. System.Data

  3. System.ServiceModel

  4. System.Web


Correct Option: C