In MVC, it is the ______ job to render the data to HTML.
Front
the view
Back
Unit testing tools let you specify the behavior of _____________or _________ in isolation.
Front
individual classes or other small code units
Back
The best unit tests are simple and unfocused.
Front
false
Back
Asynchronous methods go off and do work in the _________ and notify you when they are complete.
Front
background
Back
The desire in our applications is to make the components as independent as possible.
Front
true
Back
The term model-view-controller has been in use since the late ___________.
Front
1970s
Back
_______ is the name of the MVC Framework view engine
Front
razor
Back
To learn ASP.NET, you should be familiar with the basics of web development, _____________, ________, and _______________.
Front
HTML, CSS, C#
Back
Views:
Front
are used to render some part of the model as a user interface
Back
Continuation is the mechanism by which you specify what you want to happen when the background task is complete.
Front
true
Back
The LINQ extension methods are in the System.Linq namespace, which you must bring into scope with a _______ statement before you can make queries.
Front
using
Back
Controllers:
Front
process incoming requests, perform operations on the model, and select views to render
Back
In our first MVC application, validation was accomplished using standard C# attribute features.
Front
true
Back
A test fixture
is a C# class that defines a set of test methods: one method for each behavior you want to verify.
Front
True
Back
A ___________ processes ASP.NET content and looks for instructions
Front
view engine
Back
MVC is the abbreviation for
Front
Model View Controller
Back
Traditional ASP.NET Web Forms development was great in principle, but reality proved more__________.
Front
complicated
Back
You handle incoming requests by using:
Front
controllers
Back
The model is the representation of the real-world objects, processes, and rules that define the subject.
Front
true
Back
__________________ are a convenient way of adding methods to classes that you do not own and cannot modify directly.
Front
methods extension methods
Back
When an expression as a squiggly line underneath it as shown below circled in red in Visual Studio this represents a(an)____________.
Front
possible error
Back
Unit testing, which is a way to specify and verify the behavior of individual classes.
Front
true
Back
UI automation tools let you simulate a series of user interactions against a complete running instance of your _______________________.
Front
application
Back
ASP.NET MVC is _____________.
Front
Web development framework from Microsoft
Back
Asynchronous methods cause bottlenecks in applications and do not take advantage of multiple processors and processor cores to allow performing work in parallel.
Front
false
Back
Software that will be needed for this class will be
Front
Visual Studio
Back
The Index.cshtml
contains mostly _____________.
Front
html
Back
A regular bool was used for validation since it has three possible values, true, false, and null.
Front
true
Back
To add a View, you can left-click on any of the HomeController
methods and select Add View
from the pop-up menu.
Front
false
Back
MVC won't be able to create a strongly typed view for this type if it is not compiled first.
Front
true
Back
Layouts are a specialized form of view.
Front
true
Back
ASP.NET MVC uses a feature known as URL ruting too provide ___________URLs by default.
Front
clean
Back
Models:
Front
contain or represent the data that users work with
Back
Which file can you see and edit your routing configuration for your MVC application?
Front
RouteConfig.cs
Back
In the world of MVC, the Smart UI is often referred to as an___________:
something that should be avoided at all costs.
Front
anti-pattern
Back
Deferred LINQ extension methods - queries are evaluated from scratch every time the results are enumerated, meaning the results reflect the current state of the source data.
Front
true
Back
Razor statements start with the __ character.
Front
@
Back
The LINQ Extension Method Order by - Sorts the source date based on the value returned by the lambda expression.
Front
true
Back
When coding your controller, you will be writing all your code in ___________.
Front
c#
Back
When declaring the view model object type in Razor use ______________.
Front
@model
Back
The elements in the layout will be applied to any view that uses the layout and this is why layouts are essentially __________.
Front
templates
Back
The most important part of an MVC application is the domain model.
Front
True
Back
Razor views are compiled into C# classes in an MVC application.
Front
true
Back
The Bootstrap CSS library called Glyphicons Halflings, which are a set of icons that are not usually available for free, but for which the creator has given an open license for their inclusion in Bootstrap featured in Chapter 10 of the book has a URL of:
Front
http://glyphicons.com
Back
A lamda expression is expressed without a type.
Front
true
Back
MVC is short for:
Front
model view controller
Back
The effect of setting the Layout
property to NOT null
is to tell the MVC framework that the view is self-contained and will render all of the content required for the client.
Front
false
Back
A Razor code block is opened with ____ and closed with ________.
Front
@{
}
Back
Visual Studio provides the __________ window for managing and running tests.
Front
test explorer
Back
Earlier Version of Windows (previous to 8.1) cannot be used with Microsoft Visual Studio Express.
Front
false
Back
Section 2
(48 cards)
The problem with calling static methods from within action methods is that it makes unit testing the controller difficult.
Front
true
Back
Moq, which is simple, easy-to-use and can be used with all Visual Studio editions, including the free ones.
Front
true
Back
The MVC Framework sends all browsers the same content and lets them figure out which bits they need to display.
Front
true
Back
The routing system processes routes in the order they are listed.
Front
true
Back
You can use _______ for your SQL statements.
Front
sql
Back
The ASP.NET routing system is used by MVC to handle _________ requests from clients, but it also generates _________URLs that conform to the URL scheme and that can be embedded in Web pages.
Front
incoming requests
outgoing urls
Back
To manage the database you may need to install:
Front
Silverlight
Back
Using the forms authentication feature requires calls to two static methods of the System.Web.Security.FormsAuthentication class:
Front
the authenticate method and Set Auth Cookie
Back
The Bootstrap package was used to provide ___________ to the application.
Front
CSS styles
Back
The problem with server-side validation is that the user isn't told about errors until after the data has been sent to the server, processed and the result page generated.
Front
true
Back
You do not have to create an account to use the Microsoft Azure services.
Front
False
Back
__________ simulate the functionality of real objects in your project, but in a specific and controlled way.
Front
mock objects
Back
The ____________ attribute tells ASP.NET where to redirect users when they need to authenticate themselves,
Front
loginUrl
Back
What is Ninject?
Front
A dependancy Injector
Back
What is Moq?
Front
A mocking tool kit
Back
Visual Studio offers MVC controllers that have ___________ for CRUD operations.
Front
action methods
Back
Projects that start with desktop clients and then add support for mobile clients are known as __________ design/development
Front
desktop first
Back
The most popular unit testing package is probably NUnit.
Front
true
Back
Application deployment is making your application available for the world to use.
Front
true
Back
The ____________ attribute tells the MVC Framework to render the property as a hidden form element.
Front
HiddenInput
Back
Session state objects are NOT stored in the memory of the ASP.NET server by default
Front
false
Back
Visual Studio 2013 includes a new feature called browser link that lets you have multiple browser windows open and to reload them from the Visual Studio menu bar.
Front
true
Back
To display a useful summary of the validation errors, you can use the ___________ helper method.
Front
HtmlValidationSummary
Back
A child action relies on the HTML helper method called ____________.
Front
Html.Action
Back
Visual Studio will let you edit class files when the debugger is running.
Front
false
Back
A child action relies on the HTML helper method called __________.
Front
Html.Action
Back
There are many different ways to deploy applications and many different platforms that you can target.
Front
true
Back
The first two things that you begin with when starting in Azure is to create:
Front
A web site and database service
Back
What is NUnit ?
Front
.NET unit-testing framework
Back
In Moq, the It
class defines a number of methods that are used with _____ type parameters.
Front
generic
Back
Server-side validation is usually complemented by client-side validation.
Front
true
Back
The paid-for versions of Visual Studio include support for creating mock objects through a feature called fakes.
Front
true
Back
What is Entity Framework?
Front
an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects.
Back
Model binders can create ______ types from any information that is available in the request.
Front
C#
Back
It is recommended to store user credentials in the Web.config file and passwords as plain text.
Front
false
Back
Model binder can validate the data submitted to the user by reading the value of the ModelState.IsValid property.
Front
True
Back
For Mobile devices it is a good idea to remove "branding" from the application to free up screen real-estate.
Front
true
Back
The program used to deploy the application in chapter 13 is:
Front
Azure
Back
The ASP.NET MVC Framework has the concept of, which are perfect for creating items such as a reusable navigation control.
Front
child actions
Back
Security features are part of ___________.
Front
Asp.net
Back
Desktop first tends to start with a full set of features and degrade gracefully for less capable devices.
Front
true
Back
Authentication is set up using the _____________ element.
Front
authentication
Back
When the "deployment" process is complete you will have to open the associated URL for your application.
Front
False
Back
Session state objects are stored in the memory of the ASP.NET _________ by default.
Front
server
Back
CRUD stands for:
Front
create, read, update, and delete
Back
The configuration that will usually be used in deployment is Release.
Front
true
Back
A Visual Studio ____________ is a container for one or more projects.
Front
solution
Back
Click the _________button to deploy your application to the Azure platform.