ASP.Net Interview questions part_2


1)In MVC Framework, who decides what to render in the VIEW ?

Ans)
Select from following answers:
Model
Controller
View

Controller decides what to render in the VIEW.

Only job of the VIEW in MVC is " how to render".
------------------------------------------------------------------
2)Whats is the difference between API and WebServices?

Ans)

A)Web Services gives the output in the form of XML or JSON.Where as API return the output in the form of void,scalar or generic type
B)We need to add web references for web-services and add references for API