Internet Programming by Murach ( asp.net Core MVC) QUIZ

profilelambertminko
asp.net.docx

Can you answer those questions in one hour and half? The course is Internet Programming by murach ( ASP.NET Core MVC).

1-To bind data to an action method parameter, MVC begins by looking in the POST request. Next, it looks in the

query string paramters in the URL

ViewBag

route values in the URL

GET request

2-In a view, you can bind an HTML element to a property of the model object by using the

asp-bind tag helper

asp-for tag helper

name attribute

ViewData property

3-You can change the order in which MVC looks for data to bind to an action method parameter, or even change the source of the data entirely, by using

wrapper classes

Browser attributes

From attributes

Body attributes

4-The dictionary used to retrieve values from a query string parameter is ____________, and the dictionary used to retrieve values from the body of a POST request is _____________.

RouteData.Id – RouteData.Post

Response.Data – Request.Data

Request.Query – Request.Form

Request.Form – Request Value

5-If multiple elements in a form have the same name, their data is posted to the server as a

string

dictionary

list

Array

5-In an action method, MVC automatically maps HTTP request data to the

Context property

ViewData property

Repository property

parameters of the action method

6- Within a form, a button’s value attribute specifies the value that’s posted to the server, and its _______ attribute specifies the name that the server can use to access this value.

id

form-data

name

key

7- To bind data to an action method parameter, MVC begins by looking in the POST request. Next, it looks in the

query string paramters in the URL

ViewBag

route values in the URL

GET request