Dot Net Services

Description: This test is based on WCP API services for dot net. This test is useful for CS and GATE aspirants.
Number of Questions: 15
Created by:
Tags: WCF WEB API Dot NET CS GATE Data Communication and Networks
Attempted 0/15 Correct 0 Score 0

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


Correct Option: D
Explanation:

These correct statements for REST service.

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


Correct Option: E
Explanation:

These are the correct statements about SOAP web service.

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


Correct Option: E
Explanation:

These are the correct statements about 'Service contracts' in WCF architecture.

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


Correct Option: D
Explanation:

These are the correct statements about Service Runtime in WCF architecture.

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


Correct Option: A
Explanation:

This is correct as WAS uses http by default, but we can use TCP protocol also for this hosting service.

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


Correct Option: E
Explanation:

WCF does not manipulate the data.

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


Correct Option: E
Explanation:

All the statements are correct about WCF.

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


Correct Option: A
Explanation:

This is correct about 'Host Environment'.

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


Correct Option: A
Explanation:

This is called 'Data Contracts' in WCF. The easiest way to handle data is by creating classes that represents a data entity with properties that belong to the data entity.

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


Correct Option: E
Explanation:

These statements are correct about WCF.

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


Correct Option: E
Explanation:

These are the correct statements about Web Service.

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.


Correct Option: E
Explanation:

Yes, it is the correct 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


Correct Option: D
Explanation:

All the statements are correct about Binding service in WCF.

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


Correct Option: A
Explanation:

Endpoints determines the address of the service such as url.

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


Correct Option: D
Explanation:

This is correct statement about 'Security' feature in WCF services.

- Hide questions