Exam - Dynamic web Flashcards

1
Q

Connecting to website

A
  • Client (PC) connects to server host
  • client submits website request (the URL)
  • Server returns website request + information
  • client reads webcode –> displays to user
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

static vs dynamic webpage

A

static - does not change frequently, client only sends 1 request

dynamic - webpage contains variable info that changes over time. overall layout is the same, data displayed will vary between visits

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

server-side dynamic page

A

server generates webpage –> webpage sent to client

used for server-side info (eg stock prices, content hosting sites)

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

client-side dynamic page

A

server sends webpage code –> client generates the webpage

used for webpages that need to update per user activity

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

Server-side vs client-side operations - examples

A

server
- web-specific data updates
- Business logic code

client
- UI manipulation
- user responses

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

cookies - how they work

A
  • stored by browser as encrypted client-specific info
  • connect to site –> server provides cookie info –> client stores cookies
  • reconnect to website later –> client sends cookies to server
  • server uses cookie data to personalize the webpage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

cookies - purpose

A
  • authetication/verificaiton data –> allow auto-login
  • session data (pickup where you left off)
  • tracking user behaviour
  • web preferences
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

website asks for cookies? why?

A

server is asking if it can use cookies to track user behaviour

asking permission –> usually related to privacy policies

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

Third party cookies

A

click on embedded ads –> generates cookies for the advertiser NOT the website

allows advertising cookies to be carried over and used on other websites

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

Cookies vs incognito

A

cookies are wiped when the browser is closed

also wipes other data (cached data, history)

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

website polling

A

some types of webpage data varies live in the same session –> requires webpage to update

event-driven –> user activity, webpage updates accordingly (eg webchats)

async comms polling –> client/server periodically send eachother updated info (eg stock prices)

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

query strings

A

the portion of the URL after the main web link (after the “?”)

www.example.com/page?QUERY_STRING

used by client to
- view specific parts of the webpage (eg top rated vs newly submitted)
- assign unique session identifier (allow browsing a website on multiple pages at once)

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

cookies vs query string

A

cookie - personalization of webbrowsing, stored by client

query string - used to identify/browse specific pages of the website simultaneously. INDEPENDANT OF COOKIES (not based on personalzation)

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