Web Presentation Flashcards

(21 cards)

1
Q

Advantages of a user interface

A

1- No software needed to install
2- Universal access

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

What is a web server

A

Interprets requested URLs (passes control to the corresponding web application)

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

What are the main structural elements and what’s the difference between them?

A

1- Script: a program that processes HTTP requests and generates HTML output
2- Server Page : combines HTML with code templates to generate dynamic content

Difference: scripts are used to process requests while server pages are used to format responses

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

What is a model view controller?

A

Controller: receives the HTTP request then determines the appropriate model to send the request to

Model: Contains the business logic, it queries data sources and processes any required operations

View: After the model processes the request, the controller selects the appropriate view, the view receives the response using HTTP session object and displays it

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

What are the three view patterns?

A

1- Transform view
2- Template view
3- Two step view

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

What is a transform view?

A

It is based on transformation languages, the controller selects and applies the transformation to XML generated from the model

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

How many stages does a transform view has?

A

One stage, it directly processes and presents the data

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

Advantages of a transform view

A

Flexible
Adaptable to different presentation formats

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

Disadvantages of a transform view

A

Complex

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

What is a template view?

A

The page structure defines presentation, it has markers to include executable code for dynamic content

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

How many stages does a template view have?

A

One pattern because usual pattern for server pages

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

Advantage of a template view

A

Easy development

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

Disadvantages of template view

A

Messier code
Mixed with other templates
Harder to maintain

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

What are the features of a Two Steps View?

A

1- First step for each display (data is processed)
2 - Second step for the entire application

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

Advantages of a Two Steps View

A

1- Any changes to the HTML can be made globally and applied across the entire app
2- Consistency across screens

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

Disadvantage of a two steps view

17
Q

Difference between 1 stage views and 2 stage views

A

1 Stage view: directly processes data into its display in one step
2 Stage View: first logical processing then generating the final display

18
Q

What are the types of controller patterns?

A

1- Page Controller
2- Front Controller

19
Q

What is a page controller?

A

There’s a controller object for every single page of the website or even every action

20
Q

What is a front controller?

A

A single entry point for all HTTP requests that routes them to specific handlers or controllers.

21
Q

Advantage of a front controller

A

Centralizes request management