Question
The MVC model was invented specifically for ASP.NET Core. Question 30 options: True False The @model directive is used to Question 29 options: iterate through
The MVC model was invented specifically for ASP.NET Core.
Question 30 options:
True | |
False |
The @model directive is used to
Question 29 options:
|
iterate through elements of a model collection
|
|
define validation rules for a model class
|
|
define model for a view
|
|
access public properties of a model object that is passed to the view
|
Which tag helper can be used to specify the source of values for the
Question 28 options:
|
asp-items
|
|
asp-controller
|
|
asp-action
|
|
asp-for
|
You would like the name of property FullName of an entity class to be displayed as Full Name (with a space). Which is the correct attribute to annotate the FullName property with?
Question 27 options:
|
[DisplayFormat("Full Name")] public string FullName{ get; set;}
|
|
[Display("Full Name")] public string FullName{ get; set;}
|
|
[Display(Name="Full Name")] public string FullName{ get; set;}
|
|
[Display(Format="Full Name")] public string FullName{ get; set;}
|
The following statement in a controller's action method passes a model object obj to a view named the same as the action method:
return View(obj);
Question 26 options:
True | |
False |
The tag helper that can be used to associate HTML element with a model's property is _____.
Question 25 options:
|
asp-controller
|
|
asp-for
|
|
asp-action
|
|
asp-items
|
Which file in Web Forms application has similar role as _Layout.cshtml in .NET Core application?
Question 24 options:
|
Web.config
|
|
Site.Master
|
|
Site.css
|
|
Default.aspx
|
In an MVC web app, a view consists of _______.
Question 22 options:
|
the code that provides the business logic
|
|
the code that provides the data access
|
|
the code that generates the user interface
|
|
the code that receives requests from users
|
Question 23 (1 point)
Saved
Listen
With Visual Studio, what tool can you use to add the packages that are needed to work with Entity Framework Core?
Question 23 options:
|
Package Manager Console
|
|
Visual Studio Installer
|
|
SQL Server Object Explorer
|
|
NuGet Package Manager
|
The only software component that's required on a client to run a web application is ______.
Question 20 options:
|
a browser
|
|
SQL Server Management Studio
|
|
a database server
|
|
Visual Studio
|
Question 21 (1 point)
Saved
Listen
In a Web Forms application, the ViewState is stored _____.
Question 21 options:
|
in a hidden input field on the page
|
|
in the query string of the URL
|
|
on the server
|
|
in a cookie
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started