Programming Web Applications (MTA) Flashcards

1
Q

What is the difference between a client and a server?

A

A server receives a request and responds to the client

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

What is the Web form model in the Microsoft .Net Framework?

A

Web forms is event driven pages written as a combination of HTML, Server controls and server code. It is broken down into the single-file model and the code-behind model.

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

How is data transmitted from one page to another?

A

cache, httppost, asp.net session state, querystring, cookies, httpcontext

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

How do clients and servers communicate?

A

Find answer

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

What are some examples of applications that can be developed with .NET?

A

Shopping cart

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

Name five intrinsic objects in .NET.

A
Request
Response
Application
Server
Session
HttpContext
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Request

A

Getting information from the User

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

Response

A

Sending information to the User

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

Application

A

Sharing information for the entire application

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

Server

A

Accessing Server resources

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

Session

A

Storing information about a User’s session

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

Name four ASP.NET server controls

A

User
Server
Web
Validation

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

View State

A

Stores user’s values in controls between page requests.

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

Control State

A

Stores information specific to a certain control.

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

Application State

A

A global storage mechanism to store data that needs to be accessible to all pages in a web application.

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

Session State

A

Session State stores user-specific information on the server and shares that information across the pages within the site

17
Q

Why would a session state be used over an application state?

A

Sometimes the data is too large or requires additional security.

18
Q

Where is the session state stored by default? What are some other options for storage?

A

By default, session states are stored in memory on the server. The can be configured to store information in client-side cookies, on another state server or inside a Microsoft SQL Server database;

19
Q

Does application state or session state consumer more server memory and why?

A

Session state uses more memory because it is per-user. Application state is shared among users.

20
Q

Which might not work if a user has disabled cookies?

A

Session state won’t work if cookies are disabled. Application state works regardless;

21
Q

You need to store state data that is accessible to any user who connects to your web application and ensure that it stays in memory. Which collection object should you use?

A

Application state

22
Q

You need to store a value indicating whether a user has been authenticated for your site. This value needs to be available and checked in every user request . Which object should you use?

A

Session State

23
Q

Your application is being deployed in a load-balanced web farm. The load balancer is not set up for user server affinity, Rather it routes requests to servers based on their load. Your application uses session state. How should you configure the session state mode attribute?

A

State server and SqlServer

24
Q

Which page takes priority the master page or the content page?

A

The master page takes priority over the content page.

25
Q

Is it possible to have multiple master pages?

A

Yes.