• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/32

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

32 Cards in this Set

  • Front
  • Back

What is an alternative to reading HttpContext.Request.QueryString["orderBy"] in a controller action?



Use an action parameter named orderBy

What class gives access to the WebAPI specific configuration details?




1. ConfigurationManager


2. GlobalConfiguration


3. WebConfig


4. AppConfig

GlobalConfiguration

What serialization formats are supported by default in the ASP.NET Web API framework?




1. gRPC and Binary


2 .RPC And JSON


3. XML and RPC


4. JSON and XML

JSON and XML

What ActionResult helper method on a controller will return an HTTP status code 404?




1. View


2. NotFound


3. RedirectFile

NotFound

What does @model represent in a Razor view?




1. A model directive


2. The model expression


3. The model property


4. The model object

1. A model directive

What does the C in MVC stand for?




1. Container


2. Controller


3. Central


4. Concrete

Controller

What does the M in MVC stand for?




1. Model


2. Mingle


3. Minify


4. Momentum

Model

What is the host for ASP.NET applications during development?




1. Visual Studio


2. Apache


3. Windows Activation Service


4. IIS Express

4. IIS Express

Which template will match the URL /recipe/cauliflower?




1. {food}


2. {controller}/{category}


3. [controller]/[category]


4. [food]

2. {controller}/{category}

Which XML file contains the application runtime configuration details for ASP.NET?




1. web.csproj


2. web.config


3. config.json


4. appstart.xml

web.config

What namespace holds the Controller class optimized for rendering views and HTML?




1. System.Net.Http


2. System.Web


3. System.Web.Mvc


4. System.Web.Http

System.Web.Mvc

Which framework is optimized for building APIs over HTTP?




1.MVC


2.WPF


3.WCF


4.Web API

Web API

How do you access the Model property in a Razor view using a C# expression?




1. @Model


2. @model


3. @using


4. @m

@Model

What method does a controller invoke to render a view?




1. Render


2. View


3. Action


4. Redirect

View

What term describes how we map URLs to controllers?




1. Controllering


2. Injecting


3. Tracing


4. Routing

Routing

Which file contains startup code for an ASP.NET application?




1. Program.cs


2. Startup.Web.cs


3. Global.asax.cs


4. Controllers.cs

Global.asax.cs

1. What kind of object is ViewData?

A Dictionary

2. What are the steps involved to create a custom ActionResult?

Derive from ActionResult and override the ExecuteResult method

4. What could be a good built-in ActionResult to return in response to an AJAX request from a browser in a MVC controller?




1. DataResult


2. AjaxResult


3. JsonResult


4. HttpResult



JsonResult

6. Which attribute is used to override required authentication?

[AllowAnonymous]

7. How do you enclose code blocks in the Razor syntax?




Using braces e.g. {...}


Using box brackets e.g. [...]


Using angle brackets e.g. <...>


Using parentheses e.g. (...)

Using braces e.g. {...}

8. What is the recommended way to configure validation on models?

By putting attributes on model properties

9. Which handles the initial step in the ASP.NET MVC request life cycle?

The routing table

10. Which C# mechanism can be used to utilize filters?

Attributes

11. What is an action?

A method in a controller

12. The Model in MVC is typically used for:




Control flow and data


Data and business logic


User actions and control flow


Presentation and UI

Data and business logic

13. What is the name of the class provided by .NET to make requests to and receive responses from a REST service?

HttpClient

14. Which phrase best describes how MVC helps manage complexity?

Separation of concerns

15. When creating a new MVC application from a Visual Studio template, which route is in place by default?

{controller}/{action}/{id}

16. What is the effect of decorating a controller class with the Authorize attribute without parameters?

Every method in the controller would require authentication

17. What is Katana?

The Microsoft implementation of the OWIN specification

18. With which Razor syntax is a partial view rendered?

@Html.RenderPartial