05 Handout 1 Flashcards

1
Q

is based on a web page approach in designing web applications, while ASP .NET MVC emphasizes the separation of concerns

A

ASP .NET Web Forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

It emphasizes the separation of concerns

A

ASP .NET MVC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ASP .NET is divided into three (3) parts:

A
  1. Model
  2. View
  3. Controller
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is the data that is being displayed

A

model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is how the data is being displayed to the user

A

view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

is the intermediary that does the work of ensuring that the appropriate model is presented to the correct view

A

controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Key different between ASP .NET Web Forms and MVC is that

A

it presents views, not pages to the client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Web Forms takes a file system approach to presenting content

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

MVC takes an approach whereby content is based on the “type of action”

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The … pattern specifies where each type of logic should be located within your application

A

MVC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The …. belongs in the view

A

UI-specific logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Input logic, or the logic that handles the request from the client, belongs in the …

A

controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Business logic belongs in the … layer

A

model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

example of model

A

public class Demo{
public string Property1 {get; set;}
public string Property2 {get; set;}
public string Property3 {get; set;}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

example of view

A

@Html.DisplayFor(model => model.Property1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

example of controller

A

public ActionResult Details(int id){
Demo dm = new Demo{
Property1 = id.ToString(),
Property2 = string.Format(“Property2 {0}”, id),
Property3 = string.Format(Property3 {0}”, id)
};
return View(“DemoView”, dm);d
}

17
Q

ASP .NET Web Forms makes a very firm linkage between the markup file and the applicable processing file

18
Q

ASP .NET MVC is different, there is no automatic one-to-one relationship between the files

19
Q

A project template that is used to create an ASP .NET Web Forms application

A

Web Form Template

20
Q

The MVC project template is used to create an ASP .NET MVC project

A

MVC Template

21
Q

Used for creating the HTML output that makes up the view portion of the MVC application

A

View File (.vbhtml, .cshtml)

22
Q

Used by the browser to manage execution of code on the client side

A

JavaScript file (.js)

23
Q

Anything that is compiled, executes, and runs; both models and controllers are stored as code files within the project

A

Code file (.vb, .cs)

24
Q

Gives the browser instruction on how to style the appearance of the web page

A

Style sheet file (.css)

25
Contains configuration information that is used by the application, such as a database configuration string, shown later
Configuration (.config)
26
Used by Microsoft IIS web server to handle application and session-level events such as creating routes
Application event file (.asax)
27
A static web file that does not do any server-side processing yet presents HTML to the browser for rendering
Web file (.html)
28
A folder used for data storage. It generally holds any SQL server .mdf file that may be used in the web application
App_Data
29
It contains many of the configuration files used by an application
App_Start
30
It is designed to hold items that will be sent to the client. The Cascading Style Sheets (CSS) were created as part of the initial application templates stored in this folder.
Content
31
This directory holds some of the glyph-fonts used in the default application
Fonts
32
This folder is used to hold the models that were created as part of the template process
Models
33
This folder is used to store the JavaScript files that are sent to the client's browser to perform client-side processing
Scripts
34
Determining the appropriate development approach
1. Background and experience of the developers