Que 1:- What is MVC?

MVC is a framework and stands for Model – View – Controller. It is another way to create web based application. As compare to Asp.net form based application it is quite light weighted.

Que 2:-What is Razor?

Razor is a view engine and very powerful concept which is introduced in MVC 3. Razor is simply a new programming language which allows you to embed your C# and VB code with HTML. When we create Razor for C# then it adds .cshtml file but when we create Razor with vb then it add .vbhtml file.

Que 3:- what is the default http request of MVC?

Get is the default http request of MVC application.

Que 4:- which request is used to fetch data from view to controller using FormCollection?

FormCollection is based on Post Request.

Que 5:-what is ViewData?

ViewData is used to access data from controller to corresponding view. ViewData stores data as key-value format. ViewData type is ViewDataDictionary.

Que 6:-what is ViewBag?

ViewBag is used to access data from controller to corresponding view. ViewBag used dynamic property which introduced in C# 4.0. It is actually a dynamic ViewData Dictionary so you can say that it’s just a wrapper around ViewData.