Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online ASP .NET Web API Test

Topics Covered

  • Message Handlers
  • Web API Controller
  • Query Validation Methods
  • Custom Handlers
  • Cookies and Client Request

Useful for hiring

  • .Net Web API Developer (0-3 yrs of experience) 
  • ASP .Net Web API Developer 

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruiters no longer rely only on the telephonic interviews. We shortlist candidates based on assessment reports. The detailed test reports provide skill wise analysis of each candidate. This has helped our clients reduce their time to hire by 60%."

Vipin Sharma, Mobile Programming,
General Manager HR & Recruitement
Question

What will happen when you execute the following code? 

using (var client = new HttpClient())
// New code:
client.BaseAddress = new Uri ("http://localhost:9000/");
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new
MediaTypeWithQualityHeaderValue ("application/json"));

Note: There can be multiple correct answers to this question.

Answer
    • This code will set the base URI for HTTP requests, and set the Accept header to "application/json", which tells the server to receive data in JSON format.

    • It will throw an error due to incorrect request

    • Will receive data only in JSON format

    • This code will set the base URI for HTTP requests, and set the Accept header to "application/json", which tells the server to send data in JSON format.

Question

On the server side, the Web API pipeline uses which of the following built-in message handlers?

Note: There can be multiple correct answers to this question.

Answer
    • it uses only client-side handlers HttpRoutingDispatcher only

    • HttpServer

    • HttpRoutingDispatcher

    • HttpControllerDispatcher

Question

What will happen if ReadAsAsync is called with no parameters?

Note: There can be multiple correct answers to this question.

Answer
    • In debug mode, exception will occur

    • Method uses the default set of media type formatters to read the response body

    • Method will display null as a result

Test details:

This ASP .NET Web API interview test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness.


The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Details: 20 minutes 

  • 15 Application Oriented Questions

  • 05 Theory Questions 

The test contains the combination of application and theory questions that helps you to evaluate technical as well as practical skills of candidates.

Test description:

ASP .NET Web API Test has been designed by our global Subject Matter Experts (SME)s to test Web API skills of Web API developer - as per Industry Standards.

ASP .Net Web API is a framework which builds HTTP Services easily. It helps to reach broad range of clients including mobile devices and browsers. ASP .Net Web API is an ideal platform because it helps in developing restful applications by using .Net Framework. It is mostly similar to ASP .Net MVC as it contains MVC features like controllers, action results, routing, filters and model binders. ASP .Net Web API is hence a powerful recent addition to the  ASP .Net Framework.

Thus, online Web API test helps recruiters & hiring managers to evaluate in-depth knowledge of candidate about ASP .NET Web API framework before an interview.

ASP .NET Web API online test contains questions on following Topics:
 

  • Message Handlers

  • Web API Controller

  • Query Validation Methods

  • Custom Handlers

  • Cookies and Client Request  


Use ASP .Net Web API developer test to screen the candidates effectively. Get the powerful reports that help you in making a better hiring decision and predict the candidate’s performance.  You can also ask for the customizable assessment as per your requirements.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO