Top 100 ASP.NET Web API interview questions
In this article I will share around 100 quality questions that covers all area In asp.net WEB API.
Prepare following question I am sure those 100 questions definitely help you to crack interview in asp.net Web API, happy job searching friends.
1. What is ASP.NET Web API?
2. What are the advantages of using ASP.NET Web API?
3. What new features are introduced in ASP.NET Web API 2.0?
4. WCF Vs ASP.NET Web API?
5. MVC Vs ASP.NET Web API?
6. Web API Advantages over classic Asp.net web form?
7. Web API advantages over MVC web application?
8. Is it true that ASP.NET Web API has replaced WCF?
9. How to return View from ASP.NET Web API method?
10. How to restrict access to Web API method to specific HTTP Verb?
11. Can we use Web API with ASP.NET Web Form?
12. How we can provide an alias name for ASP.NET Web API action?
13. Difference between ASP.NET MVC and ASP.NET Web API
14. Web API Features
15. Why to choose Web API?
16 Action Results in Web API?
17. Explain Cookies in ASP.NET Web API?
18. Can we use Web API with Entity Framework?
19. Write simple program for CRUD (create, read, update, delete) operations in Web API?
20. Explain Calling a Web API from a .NET Client in Web API?
21. What is Web API 2 POSTER?
22. Calling Web API from a Windows Phone 8 Application?
23. How to use ASP.NET Web API to create endpoints that support OData Version?
24. Explain OData Query Options in Web API?
25. Shows how to use query options to sort, filter, and page the results of an OData query.
26. Explain media Formatters in Web API 2
27. What is Content Negotiation in Web API?
28. Explain Model Validation in Web API?
29. Explain parameter binding in Web API?
30. Explain exception handling in Web API?
REST and Ajax:
31. What is Ajax?
32. Why Ajax with web API?
33. Explain POST request in Web API
34. How to call web API method using jquery ajax?
35. How to call a GET method without parameters,single paramter and multiple parameters?
36. How to Call a POST method with multiple parameter?
37. Advantages using Ajax and rest with Web API?
38. What is REST?
39. What is the key benefit of using REST with Web APIs?
40. What are resources in a REST architecture?
41. What are the Http methods used to implement a RESTful API
42. Explain what is REST and RESTFUL?
43. Explain the architectural style for creating web API?
44. Explain whether you can use GET request instead of PUT to create a resource?
45. Create a REST API with Attribute Routing in Web API?
46. What is the difference between AJAX and REST?
47. What are the different application integration styles?
48. What are the HTTP methods supported by REST?
49. Explain how JAXB related to RESTful web API?
50. What is the difference between PUT and POST?
51. What is the difference between SOAP and REST?
52. Which markup language can be used in restful web API?
53. What is the difference between RPC or document style web services? How you determine to which one to choose?
54. What is JAX-WS and JAX-RS?
55. Explain JSON and XML Serialization in Web API
56. Explain BSON Support in Web API 2.1
57. Can we crate Create a mobile-friendly REST service using Web API and SQL Database?
If yes explain?
58. Explain routing in Web API?
59. Explain Routing Conventions in Web API 2 OData?
60. Explain Routing and Action Selection in Web API?
61. Attribute Routing in Web API?
Debug and configuration:
62. Explain Global Error Handling in Web API 2
63. Explain Tracing in Web API 2
64. Debugging ASP.NET Web API with Route Debugger
65. How to Configuring Web API?
66. Explain HTTP Message Handlers in Web API?
67. Explain HttpClient Message Handlers in Web API?
68. How to send HTML Form Data in Web API (Form-urlencoded Data)?
69. How we can send HTML Form Data in Web API (File Upload and Multipart MIME)?
70. Explain batching HTTP Messages in Web API?
71. Explain Security Guidance for Web API 2 OData?
72. Explain Authentication and Authorization in Web API?
73. How to Secure a Web API with Individual Accounts in Web API?
74. Explain external Authentication Services with Web API?
75. Explain web API Security Architecture?
76. Ways to prevent Cross-Site Request Forgery (CSRF) Attacks in Web API?
77. Explain enabling Cross-Origin Requests in Web API 2?
78. What are authentication filters in Web API?
79. What is basic Authentication in Web API?
80. What is Forms Authentication in Web API?
81. What is Integrated Windows Authentication?
82. Explain SSL with web API?
83. Ways to secure Web API application?
84. How we can deploy Web API to an Azure Website?
85. Explain OWIN to Self-Host Web API?
86. How to Host Web API 2 in an Azure Worker Role?
87. What tools are required to test your web API?
88. Explain unit testing Web API 2
89. Explain unit testing Controllers in Web API 2
90. Explain Mocking Entity Framework when Unit Testing Web API 2
91. How to unit test the WebAPI method using Fiddler?
92. List out the tools or API for developing or testing web API?
93. Explain dependency Injection in Web API?
94. How to write unit tests for Actions that Return HttpResponseMessage?
95. Explain testing Actions that Return IHttpActionResult?
96. Explain unit test that checks the return type?
97. Explain testing Link Generation?
98. How to create test project for WEB API?
99. How to run unit tests?
100. Explain writing unit tests for UI?