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;
61 Cards in this Set
- Front
- Back
You create an ASP.NET MVC application. Which authentication mechanisms can you use? Choose all that apply. |
Windows authentication Organizational accounts Google accounts |
|
You create an ASP.NET application. A user navigates to the Home page of the application. Which object processes the request?
|
Controller
|
|
Which two programming languages can you use to create ASP.NET MVC applications? |
C# VB.NET |
|
You create an ASP.NET MVC application by using Visual Studio. You select the Host in the Cloud option. Which steps must you complete manually? Choose all that apply. |
Publish the application to Azure.
Wrong |
|
You create an ASP.NET application by using Visual Studio. Which core references can you add to the solution? |
Web API Tests Web Forms
|
|
At its most basic level what is a model on a technical programming level.
|
a Class |
|
What is the function of a Model in MVC |
To hold data. |
|
What do you use in a model to tell MVC Runtime how to Display and validation rules ?
|
You use Attribbutes |
|
List Three types of Attributes used to decorate model properties. |
DataTypeAttribute |
|
You create a new ASP.NET MVC application. Will Visual Studio configures the application to use Release mode. |
No |
|
You are adding a new Controller class to an ASP.NET MVC project in Visual Studio. Which types of controllers can you specify? |
OData API 2 Entity Framework |
|
You are writing code in Visual Studio. You need to view the definition for an existing class. Which keyboard shortcut should you use? |
Alt+F12 |
|
You use Visual Studio to create a Controller for an ASP.NET project. Visual Studio creates Views for the project. |
True |
|
You have a Visual Studio solution that contains a Web Forms application and an MVC application. You can use the same authentication mechanism for both applications. |
Yes |
|
What is Code First Development |
You Create your models and use them to generate your Database using scaffolding. |
|
What is migration |
The process of Synchronizing your Database and Code Models. |
|
Why is it important to build before you use Scaffolding ? |
Scaffolding works off reflection and will use the latest build to generate the Design Time code. |
|
Is Scaffolding Extensable ? |
Yes |
|
What does Scaffolding use when building controllers and views ? |
A model |
|
Can Scaffolding generate web forms ? |
Yes but a extra install is needed |
|
What is the Antiforgery Token do ? |
Prevents sites from posing to your website. |
|
Which ASP.NET MVC object generates the HTML output that displays in a web browser? |
View |
|
You create an ASP.NET application. A user navigates to the Home page of the application. Which object processes the request? |
Controller |
|
Which keyboard shortcut will display the Solution Explorer pane in Visual Studio? |
Ctrl+Alt+L |
|
Which statements about scaffolding in Visual Studio 2013 are true? Choose all that apply. |
Scaffolding generates Views. You can use scaffolding with Web Forms project. You can use scaffolding with ASP.NET MVC projects. |
|
Which two statements about Models in ASP.NET MVC applications are true? |
The Model automatically creates user interface elements. The Model binds methods in the controller to forms in the user interface. |
|
You are creating a Controller. Which two statements are true? |
You must specify a Model for the Controller. You must specify a data context for the Controller. |
|
Which object does the data context connect the application with? |
database |
|
Which tool keeps a Model and the database synchronized? |
Migrations |
|
The Model View View Model (MVVM) design pattern separates user interface development from the business logic of an application. |
True |
|
You can use Git from a command prompt or from the Visual Studio user interface. |
True |
|
In which ASP.NET object do you create actions? |
Controller |
|
Which types of objects do actions return? Choose all that apply. |
Files Views JSON data |
|
Which two statements about ASP.NET MVC 5 attribute routing are true? |
Wrong You can specify parameters. You specify routes in the RouteConfig.cs file. |
|
You need to configure Visual Studio to display an application in multiple browsers. Which toolbar should you use? |
Standard |
|
You need to use a form to display data for a user and then accept any modifications to the data. Which two steps should you take? |
Use HttpGet to display the form. Use HttpPost to accept the updated data. |
|
What keyboard shortcut do you use to go to a view ? |
Ctl + M + G |
|
How do you return a view with a different name to that of the action in the controller |
Return View("New Name"); |
|
If the view is not found in the Views/Controller Name Folder what folder is searched next ? |
Shared Folder |
|
How do you access the model's Data in a view |
use the Model Variable |
|
How do i set the Model Datatype for a view |
@model |
|
What is the HtmlHelper |
@Html
Its a helper class used to generate Html using reflection to keep the MVC referencs current. |
|
Give an example on how to display a Lable using the HtmlHelper |
@Html.DisplayNameFor(model => model.name); |
|
How do you display a @ sign when using Razer syntax on a view. |
You can let the asp.net work out based on the context. |
|
Do views have to have a Typed model ? |
No |
|
what is the difference between @Html.DisplayFor(Model.Name) and @Html.DisplayFor(m => m.Name) |
The first one passes the value of the property
The Second one passes the property not the value so reflection can be done. |
|
How do you display a value using Html Helper |
DisplayFor(m =m.name); |
|
How do you create a form using Html Helper |
Using(HtmlHelper.BeginForm()) { |
|
How do you create a Valdiation message near a input element |
Html.ValidationMessageFor() |
|
How do you create a Valdiation Summary |
Html.ValidationSummary() |
|
How do you create a section in a view ? |
@section name |
|
How do you Render a Section in a layout |
Html.RenderSection(Name,Required) |
|
How do you reander a body in a layout |
Html.RenderBody() |
|
You need to create a View that displays an invoice date. You must display the date with a specific format. Which HtmlHelper object method should you use? |
DisplayFor |
|
The Html.ValidationMessageFor method displays a summary of all validation errors in one place on a page. |
False
The Html.ValidationSummary() does |
|
You are using Razor syntax to develop an ASP.NET MVC application. Which symbol indicates code that should run on the server? |
@ |
|
What Two folders can you place your view in ?
|
You can store Views in the Shared folder. You must store Views in the Views folder. |
|
True or False
You must create separate View objects for inserting new data or editing existing data. |
False |
|
True or False
The ASP.NET runtime will throw an exception if the View is NOT located in the Views folder. |
False
Can also be in the shared folder. |
|
How can you set the Attributes for Entity Models ? |
Create a class with the attibutes you want to modify then add the following attibuet to the entity model code.
[MetaDataType(typeOf(yourclass))] |
|
What does the TempData variable do im MVC ? |
It allows you to pass data though a redirect. |