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

A

true

18
Q

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

A

true

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
Q

Contains configuration information that is used by the application, such as a database configuration string, shown later

A

Configuration (.config)

26
Q

Used by Microsoft IIS web server to handle application and session-level events such as creating routes

A

Application event file (.asax)

27
Q

A static web file that does not do any server-side processing yet presents HTML to the browser for rendering

A

Web file (.html)

28
Q

A folder used for data storage. It generally holds any SQL server .mdf file that may be used in the web application

A

App_Data

29
Q

It contains many of the configuration files used by an application

A

App_Start

30
Q

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.

A

Content

31
Q

This directory holds some of the glyph-fonts used in the default application

A

Fonts

32
Q

This folder is used to hold the models that were created as part of the template process

A

Models

33
Q

This folder is used to store the JavaScript files that are sent to the client’s browser to perform client-side processing

A

Scripts

34
Q

Determining the appropriate development approach

A
  1. Background and experience of the developers