Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the purpose of HTTP Put method?

Answer»

What is the purpose of HTTP Put method?
Choose the CORRECT option from below list
(1)Delete the RECORD
(2)Get the Record
(3)Update a Record

Answer:-(3)Update a Record

2.

Write the five most common differences between MVC and WEBAPI?

Answer» WRITE the FIVE most common differences between MVC and WEBAPI?
Below are the five most common differences between MVC and WEB API.


MVC and WEB API
3.

Can you name the main return types supported in dotnet WEB API?

Answer»

Can you name the MAIN RETURN types supported in DOTNET WEB API?
Below are the four main return types supported in ASP.NET WEB API:-
(1)HttpResponseMessage
(2)IHttpActionResult
(3)Void
(4)Other types like as string, int etc

4.

What do you mean by TestAPI?

Answer»

What do you MEAN by TestAPI?
TestAPI is one of the UTILITY LIBRARY of APIS. By using these library tester developer GOT helps to create a testings tools and do automation testing for our dot NET application by using data-structure and algorithms.

5.

What term we use in place of CRUD in Rest API?

Answer»

What term we use in place of CRUD in REST API?
In Rest API we will not use term Create, READ, Update, Delete(CRUC). We use this as HTTP verbs and these are(Get, Post, PUT, Delete). Below is some mapping for this i have mapped with SQL Database to UNDERSTAND use of HTTP verb.

6.

Web API supports which of the following request/response data formats by default?

Answer»

Web API supports which of the following REQUEST response data formats by default?
Choose the correct OPTION from below list
(1)Delete
(2)Patch
(3)XML
(4)Put
(5)JSON

Answer:-(3)XML,(5)JSON

7.

Web Api supports which of the following protocol?

Answer»

Web Api SUPPORTS which of the FOLLOWING PROTOCOL?
Choose the correct option from below LIST
(1)All of Below
(2)Soap
(3)HTTP
(4)TCP

Answer:-(3)HTTP

8.

Web API controller must be derived from __________.

Answer»

Web API controller MUST be derived from __________.
Choose the CORRECT option from below list
(1)WebAPIController Class
(2)Controller Class
(3)WebController Class
(4)ApiController Class

Answer:-(4)ApiController Class

9.

What is Code First Approach in RestAPI?

Answer»

What is Code First Approach in RestAPI?
Below are the THREE points which will HELPS US to create Code First Approach.
(1)We will not design Database
(2)We will not create and tables.
(3)ENTITY Framework will help or responsible for all kinds of things like create table and other things

10.

Is it possible to consume Web API in Csharp console application?

Answer»

Is it POSSIBLE to consume Web API in Csharp console APPLICATION?
Yes it is possible to consume Web API in C# console application. Web API can be consumed in Console Application, Angular JS, MVC or any other application.

11.

In Code First Approach if we make the Property with name ID then who s smart enough to make this ID as a Primary Key.

Answer»

In Code FIRST Approach if we make the Property with name ID then who s SMART enough to make this ID as a Primary Key.
Choose the correct OPTION from below list
(1)DATABASE
(2)Controller
(3)Model Class
(4)Entity Framework

Answer:-(4)Entity Framework

12.

What is most common similarities in MVC and Web API?

Answer»

What is most common similarities in MVC and Web API?
One of the most common similarities in between MVC and Web API is that they are BASED on PRINCIPLE of SEPARATION of CONCERNS and different concepts like the Models, ROUTING and the controllers.

13.

Difference between RESTAPI and RESTful API?

Answer»

Difference between RESTAPI and RESTFUL API?
Below are the FIVE most common DIFFERENCES between RESTAPI and RESTful API

14.

Difference between REST and SOAP?

Answer» DIFFERENCE between REST and SOAP?
Below are some of the COMMON DIFFERENCES between REST and SOAP
15.

Do you have some idea about who can consume WEB API?

Answer»

Do you have some IDEA about who can consume WEB API?
My answer is yes there are a number of clients such as browsers, iPhone, MOBILE devices etc. who can include and also consume WEB API. And this is a good option for using along NATIVE applications that require web SERVICES but not SOAP support. And one more client who can consumed this was client that support HTTP verbs such as GET, POST, PUT and DELETE.