Angularjs Interview Questions And Answers By Shivprasad

Download PDF Your requested download is ready! Click

WCF (Windows Communication Foundation): It is a framework used for developing SOAP (Service-oriented applications). This framework is used for developing, configuring, and deploying, or implementing network-distributed services. Web API: It is an application programming interface for both web browsers and web servers. Browser API simply extends or increases the functionality of web browsers whereas Server API simply extends or increases the functionality of web server.

Web API WCF
It is used to develop both SOAP-based services and RESTful services. It is used to deploy only SOAP-based services.
It supports various MVC features such as routing, model binding, etc. It does not support any MVC features.
It only supports HTTP protocol. It supports various protocols such as HTTP, UDP, custom transport.
It is considered best for developing RESTFUL services. It supports only limited RESTFUL services.
It is good when one wants to expose an expensive range of clients such as iPhones, browsers, mobile phones, tablets, etc. It is good for creating services that uses expedite transport channels such as TCP, UDP, Named pipes, etc.
It offers support for UTF-8 encoding format. It offers TEXT, Binary encoding support, MTOM (Message Transmission Optimization Mechanism), etc.

What are the main return types supported in Web API?

It does not have any specific data type. It can return data of any type depending upon the business requirement. There are many HTTP methods like GET, POST, PUT, etc., which can return data in different formats depending upon the use case.

1 What is XML and JSON?

XML (Extensible Markup Language):

  • It is especially designed to store and transport data.
  • It is similar to HTML but is more flexible than HTML because it allows users to create their own custom tags.
  • It is used for representing structured information such as documents, data, configuration, etc.
  • JSON (JavaScript Object Notation):

  • It is a lightweight format designed to store and transport data.
  • It is easier to understand and is a standard text-based format used for representing structured data based on JavaScript object syntax.
  • It is faster and easier to use.
  • 3 What is HttpConfiguration in Web API?

    It is considered as the main class that includes different properties with help of which one can override the default behavior of Web API. Some properties are given below:

  • DependencyResolver: It sets or gets a dependency resolver for dependency injection.
  • Services: It gets web API services.
  • ParameterBindingRules: It gets a collection of rules for how parameters should be bound.
  • MessageHandlers: It sets or gets message handlers.
  • Formatters: It sets or gets media-type formatters.
  • 2 What are new features used in ASP.NET Web API 2.0

    ASP.NET Web API includes a number of new exciting features as given below:

  • Attribute Routing
  • CORS (Cross-Origin Resource Sharing)
  • OWIN (Open Web Interface for .NET) self-hosting
  • IHttpActionResult
  • Web API OData
  • 3 What is the use of DelegatingHandler?

    DelegatingHandler is used to develop a custom Server-Side HTTP Message Handler in ASP.NET Web API. It is used to represent Message Handlers before routing in Web API.

    2 What do you mean by Caching and What are its types?

    Caching is basically a technique or process of storing data somewhere or in the cache for future requests. The cache is a temporary storage area. Caching keeps all frequently or recently accessed files or data in the cache memory and accesses them from the cache itself rather than actual address of data or files. The cache interface simply improves the storage mechanism for request/response object pairs that are being cached.Advantages of Caching:

  • It is considered the best solution to ensure that data is served where it is needed to be served that too at a high level of efficiency which is best for both client and server.
  • It delivers web objects faster to the end-user.
  • It reduces load time on the website server.
  • It leads to faster execution of any process.
  • It decreases network costs.
  • Types of Caching: There are basically three types of caching as given below:

  • Page Caching
  • Data Caching
  • Fragment Caching
  • Angular Interview Questions and Answers | Angular Interview Questions | Top Angular Questions

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *