Académique Documents
Professionnel Documents
Culture Documents
A. Shape of data.
B. Html content
C. Collection of data
D. Type of data.
A. ActionName
B. NonAction
C. ActionVerbs
A. HttpPost
B. HttpGet
C. HttpPut
D. HttpDelete
A. .cshtml
B. .vbhtml
C. .aspx
D. All of the above
A. Partial view
B. Html View
C. Layout view
D. Razor view
B. Using ViewBag
C. Using ViewData
A. "/{action}/{controller}/{id}"
B. "{controller}/{id}"
C. "{controller}/{action}/{id}"
D. "{controller}/{action}”
Which of the following default class is used to configure all the routes in MVC?
A. FilterConfig
B. RegisterRouteConfig
C. RouteConfig
D. MVCRoutes
13. What is the extension of MVC view when using C#?
A) cshtml
B) vbhtml
C) None
D) Both A & B
In MVC, the Controller is responsible for taking the end user request and loading the
appropriate Model and View.
True
False
In the below code the “GotoHome” action is decorated with the route attribute. The route
attribute says that the “GotoHome” can be invoked using the URL structure “Users/home”.
public class HomeController : Controller
{
[Route("Users/home")]
public ActionResult GotoHome()
{
return View();
}
}
True
False