ASP.NET C#

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

What is action filters? a. Action filter executes before and after action method executes. b. Action filter executes before action method executes. c. Action filter executes after action method executes. d. Action filter executes parallel to action method.

a. Action filter executes before and after action method executes.

______ attributes can be used for data validation in MVC. a. DataAnnotations b. Fluent API c. DataModel d. HtmlHelper

a. DataAnnotations

HtmlHelper class _________. a. Generates html elements b. Generates html view c. Generates html help file d. Generates model data

a. Generates html elements

Which of the following is a type of view in MVC? a. Partial view b. Executable view c. Data view d. Designer view

a. Partial view

Area allows us to ____________. a. Partition large application into smaller units. b. Separate Mode, View and Controller folders. c. Partition View folder of large application into multiple view folders d. All of the above

a. Partition large application into smaller units.

The model is a _______ . a. Shape of data. b. Html content c. Collection of data d. Type of data.

a. Shape of data.

Which is the default http method for an action method? a. HttpPost b. HttpGet c. HttpPut d. HttpDelete

b. HttpGet

MVC stands for ______. a. Model, Vision & Control b. Model, View & Controller c. Model, ViewData & Controller d. Model, Data & Controller

b. Model, View, & Controller

Which of following is TRUE? a. The controller redirects incoming request to model. b. The controller executes an incoming request. c. The controller controls the data. d. The controller render html to view.

b. The controller executes an incoming request.

TempData is useful to _______. a. Transfer data from view to controller b. Transfer data from one view to another view c. Transfer data from controller to controller d. Store data permanently.

b. Transfer data from one view to another view

Which of the following is a default route pattern in MVC? a. "/{action}/{controller}/{id}" b. "{controller}/{id}" c. "{controller}/{action}/{id}" d. "{controller}/{action}"

c. "{controller}/{action}/{id}"

Which of the following method of html helper generates html control based on the data type of specified property? a. Html.TextBox b. Html.Password c. Html.Editor d. Html.Display

c. Html.Editor

Which of the following view contains common parts of UI? a. Partial view b. Html View c. Layout view d. Razor view

c. Layout view

Which of the following default class is used to configure all the routes in MVC? a. FilterConfig b. RegisterRouteConfig c. RouteConfig d. MVCRoutes

c. RouteConfig

Which of the following is TRUE? a. Action method can be static method in a controller class. b. Action method can be private method in a controller class. c. Action method can be protected method in a controller class. d. Action method must be public method in a controller class.

d. Action method must be public method in a controller class.

How to transfer data from controller to view? a. Using model object b. Using ViewBag c. Using ViewData d. All of the above

d. All of the above

Which of the following methods are used to render partial view? a. Html.Partial() b. Html.RenderPartial() c. Html.RenderAction() d. All of the above

d. All of the above

Which of the following view file types are supported in MVC? a. .cshtml b. .vbhtml c. .aspx d. All of the above

d. All of the above

Which of the followings are ActionSelectors? a. ActionName b. NonAction c. ActionVerbs d. All of the above

d. All of the above

Bundling allows __________. a. Loading of multiple images in single request. b. Loading of multiple view files in single request. c. Loading of caching of multiple script files. d. Loading of multiple script files in single request.

d. Loading of multiple script files in single request.


Kaugnay na mga set ng pag-aaral

Forensics - What type of fingerprint would likely be found in, on, or by means of the following materials?

View Set

Unit 1- Understanding products and their risks

View Set

Series 63: Chapter 4 - Registration of Securities

View Set

SURETY BONDS AND GENERAL BOND CONCEPTS

View Set

fyzika testové otázky z knihy set 11

View Set

Chapter 13: Assessing Nutritional Status

View Set

Astronomy Ch02.10: Key Concept: Lunar Phases I

View Set