WCF and .NET Web Services

This quiz covers Windows Communication Foundation (WCF), REST and SOAP web services, service contracts, hosting, security, endpoints, and various components of .NET service-oriented architecture.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is/are applicable for REST service?

  1. This service uses the TCP protocol for its communication.
  2. This service will allow the client (written in different language) to access or modify the resource in the server using URL.
  3. This service involves building Resource-Oriented Architecture (ROA).
  4. Both 2 and 3
  5. Both 1 and 2
Question 2 Multiple Choice (Single Answer)

Which of the following is/are applicable for SOAP (Simple Object Access Protocol) web service?

  1. This service has a package that contains message information and is delivered by HTTP.
  2. In this service, the Plain raw XML message is used for communication.
  3. SOAP has much interoperability.
  4. All of the these
  5. Both 1 and 3
Question 3 Multiple Choice (Single Answer)

Which of the following informations does the 'Service contracts' include in WCF architecture?

  1. It describes about the operation that service can provide.
  2. Service contracts are created using Service and Operational Contract attribute.
  3. It defines the data types that are passed to and from service.
  4. Default SOAP message format is provided by the WCF runtime for communication between Client and service.
  5. Both 1 and 2
Question 4 Multiple Choice (Single Answer)

Which of the following is/are correct about 'Service Runtime' in WCF service architecture?

  1. It specifies what occurs and when internal error occurs on the service.
  2. It tells how and whether metadata is available to outside world.
  3. It specifies how many instances of the service has to be created while running.
  4. All of the these
  5. Both 1 and 2
Question 5 Multiple Choice (Single Answer)

Which of the following statements is/are applicable for the Windows Activation Service(WAS) in WCF hosting?

  1. WAS is used to provide message-based activation over other protocols such as TCP and named pipes.
  2. WAS service can be self hosted as console application, Win Forms or WPF application with graphical UI.
  3. It does not require Host code to activate the service as it automatically activates service code.
  4. This service does not use any communication protocol.
  5. Both 1 and 2
Question 6 Multiple Choice (Single Answer)

Which of the following services is/are not provided by WCF?

  1. Service Orientation
  2. Service Metadata
  3. Data Contracts
  4. Security
  5. Data manipulation
Question 7 Multiple Choice (Single Answer)

Which of the following is/are applicable for Windows Communication foundation (WCF)?

  1. WCF is a framework for building service-oriented applications.
  2. In WCF, one can send data as asynchronous messages from one service endpoint to another.
  3. WCF is designed to offer a manageable approach to creating Web services and Web service clients.
  4. WCF is used in business transactions.
  5. All of the these
Question 8 Multiple Choice (Single Answer)

Which of the following is/are applicable for 'Host Environment' in WCF Service components?

  1. The Host environment can be a Console application or a Windows Service, or a Windows Forms application.
  2. It has service class that implements some service as a set of methods.
  3. It specifies an address that defines where the endpoint is hosted.
  4. It specifies the url of the service.
  5. All of the these
Question 9 Multiple Choice (Single Answer)

Which of the following is/are correct about 'Data Contracts' in WCF services?

  1. It includes code-friendly methods of supplying the contracts, one wants to enforce.
  2. It makes enable to create service oriented applications.
  3. It supports publishing service metadata using formats specified such as WSDL, XML Schema, and WS-Policy.
  4. It is used to encrypt the messages and one can require users to authenticate themselves before being allowed to receive messages.
  5. Both 1 and 4
Question 10 Multiple Choice (Single Answer)

Which of the following statements is/are correct about WCF supporting tools?

  1. WCF support AJAX and REST
  2. WCF supports various transactions.
  3. WCF does not have extensibility.
  4. Both 2 and 3
  5. Both 1 and 2
Question 11 Multiple Choice (Single Answer)

Which of the following is/are applicable for Web Services?

  1. Web service is a part of WCF.
  2. Web Service can be hosted in IIS, windows activation service, self-hosting, and Windows service.
  3. WCF offers much more flexibility and portability to develop a service as compared to web service.
  4. All of the these
  5. Both 1 and 3
Question 12 Multiple Choice (Single Answer)

Which of the following is/are correct about 'Service Metadata' feature in WCF?

  1. It can be used to automatically generate and configure clients for accessing WCF services.
  2. It can be published over HTTP and HTTPS or using the Web Service Metadata Exchange standard.
  3. It is used to exchange the messages.
  4. All of the these
  5. Only 1 and 2 are correct.
Question 13 Multiple Choice (Single Answer)

Which of the following is/are applicable to Binding service in WCF?

  1. It describes how client will communicate with service.
  2. It provides encoding for the transmission of messages and attachments.
  3. It defines informations, such as security, transaction or reliable messaging capability.
  4. All of the these
  5. Both 1 and 3
Question 14 Multiple Choice (Single Answer)

What is the role of Endpoints in the WCF service component?

  1. It specifies an address that defines where the endpoint is hosted.
  2. It is Console application or a Windows Service, or a Windows Forms application.
  3. It has service class that implements some service as a set of methods.
  4. Endpoints determines the security of service.
  5. Both 1 and 4
Question 15 Multiple Choice (Single Answer)

Which of the following is/are correct about 'Security' feature in WCF services?

  1. It includes code-friendly methods of supplying the contracts one wants to enforce.
  2. It enables to create service oriented applications.
  3. It supports publishing service metadata using formats specified such as WSDL, XML Schema, and WS-Policy.
  4. It is used to encrypt the messages and one requires users to authenticate themselves before being allowed to receive messages.
  5. None of the these