- What can the asp-page tag helper do?
Help to create a link to a Razor page - What Entity Framework type is used to represent a writable collection of entities in a data source?
DbSet - What tag helper can set an input element's value and type attributes?
asp-for - What method in the application Startup class can we use to configure the ASP.NET Core service provider
ConfigureServices - What interface do we commonly use as a return type from a page method?
IActionResult - Which method name can you use to build the model in a view component class?
Invoke - What is the default action value for an HTML form?
The current URL - Which statement will render a content page inside of a layout page?
@RenderBody - Which of the following commands will allow you to update a databse with migrations in the current project?
dotnet ef database update - Which express, when added as the second parameter to the RedirectToPage method, will add a parameter named restaurantId to the request?
new { restaurantId = 1 } - What method of the Program class is the entry point of the application by default?
Main - Which attribute will force a string property to hold a non-null value during model binding?
[Required] - Which is the following must you specify when publishing a self-contained application?
A runtime identifier (RID) - What is the name of the file where you can register tag helpers for the application?
_ViewImports - Which method in a Page Model class will respond to an HTTP GET request?
OnGet - What method of a PageModel allows you to return an HTTP 302 status code?
RedirectToPage - When working with HTML forms, what HTTP status should a successful POST return?
A 302 RedirectToPage - What extension method will install the static files middleware?
UseStaticFiles - What is the name of the file you can use to set a Layout page for multiple views?
_ViewStart - What dotnet command can give you a directory with all the files you need to deploy an application?
publish - Which tag helper can set the options for an HTML select element?
asp-items - Which expression can you use to render a view component named RestaurentCount?
vc:restaurant-count - What databses does the Entity Framework Core support?
Microsoft SQL Server only - What is the name of the variable that controls the ASP.NET Core operating environment?
ASPNETCORE_ENVIRONMENT - Which statement will set the Layout page to use from a content page?
Layout = "_Layout" - What attribute allows you to receive values from the query string in a page model property?
[BindProperty] - What data @Model access in a Razor page?
The page model - What is the name of the file npm uses to store dependencies?
package.json - What page model property allows you to check the status of validation rules?
ModelState - What folder allows you to serve static content by default?
wwwroot - What is the default method value of an HTML form?
get - By default, validation on the client with ASP.NET Core requires which library?
jQuery Validation - What command launches the .NET Core Command Line Interface?
dotnet - Which of the following @page directives optionally takes a route value named id?
@page {id?:int} - What tag helper assists in showing model binding errors?
asp-validation-for - Which method on a DbContext will synchronize context changes with the database?
SaveChanges - Middleware frequently uses the delegate type RequestDelegate. What is the return type of a RequestDelegate?
Task - What CLI command is a gateway to the Entity Framework tools?
dotnet ef - Which tag helper will build a link with a value for restaurantId in the URL?
asp-route-restaurant-id - Which tag helper can set the options for an HTML select element?
asp-items - What method in the application startup class defines the middleware pipeline?
Configure - By default, what is the name of an optional section rendered by the default Layout page?
Scripts - Which will give a page method access to a query string value named search searchTerm?
Adding a method argument named searchTerm - What can the asp-page tag helper do?
Help to create a link to a Razor page - What is the name of the folder npm uses to download dependencies?
node_modules - Which tag helper can you use to render a partial view?
- What can the @page directive do in a Razor page?
Define the model type - What can the asp-page helper do?
Help to create a link to a Razor page - In regards to the flow within a Model-View-Controller (MVC) application, which flow is correct?
The controller receives a request, which then invokes the view with model data. - Which tag helper doesn't exist in ASP.NET Core Model-View-Controller (MVC)?
checkbox - What is the true of the wwwroot folder in an ASP.NET Core Model-View-Controller (MVC) application?
It's considered the root of the application and contains the static files. - Which method creates a new instance for each use of a service that's registered with the dependency injection system of ASP.NET Core Model-View-Controller (MVC)?
AddTransient - Why would you use ASP.NET Identity?
For authentication and authorization - Which method is used to register Model-View-Controller (MVC) classes in the dependency injection container, starting with ASP.NET Core 3.0?
services.AddControllerWithViews - In Which file will you typically store your connection string to the database when using Entity Framework (EF) Core?
appsettings.json - What is the base class your Entity Framework (EF) Core context should inherit from?
DbContext - What's the preferred way of managing client-side scripts in ASP.NET Core Model-View-Controller (MVC) projects?
Library Manager - When your ASP.NET Core Model-View-Controller (MVC) application is starting, what happens first?
The Startup class is invoked. - If you create a tag helper class named EmailTagHelper, you can use the tag helper from your view code with what?
- To pass a parameter to an action, which tag helper should we use?
asp-route-* - If you define a route with template {Controller}/{Action}, which route will be a match, assuming no defaults have been defined?
http://www.bethanyspieshop.com/Home/Index - Why would you use tag helpers in ASP.NET Core Model-View-Controller (MVC)?
To wrap a piece of HTML that will be generated as part of a Razor view - You have a controller named Pie and an action named List. What is the default route to that controller?
/Pie/List - The model has a crucial role in an ASP.NET Model-View-Controller (MVC) application. Which task is it not responsible for?
The model handles the flow of the application - Why would you use a partial view in ASP.NET Core Model-View-Controller (MVC)?
A partial view can be reused on different views and, as such, brings code-reuse with it. - Which tag helper does not exist in ASP.NET Core Model-View-Controller (MVC)?
asp-layout - What is a database migration in Entity Framework (EF) Core?
When you make a change to the model in code, you use a migration to update the database. - Where will you be navigating with this code?
To the List() on a controller named PieController - What is a strongly-types view in ASP.NET Core Model-View-Controller (MVC)?
It's a view that "knows" the type to which its's going to be bound. - What is the goal of the ViewStart.cshtml file in ASP.NET Core Model-View-Controller (MVC) projects?
It's the file that's read for every view that's being rendered and it contains a reference to the layout template. - View components are useful in ASP.NET Core Model-View-Controller (MVC). How can you use it?
A view component is always used in the context of a parent view. - What is the ViewBag in ASP.NET Core Model-View-Controller (MVC)?
It's a property defined on the controller that you can use to pass data from the controller to the view.
|
|
|
|
No comments:
Post a Comment