Client-Server and Ajax Flashcards

1
Q

What is a client?

A

Something requesting information, service requesters.

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

What is a server?

A

Servers are constantly listening for requests then provide the resource/service to requests.

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

Which HTTP method does a browser issue to a web server when you visit a URL?

A

GET method

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

What three things are on the start-line of an HTTP request message?

A

Method - type of request it is
Target - where sending the info to
Version - type of HTTP version

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

What three things are on the start-line (status-line) of an HTTP response message?

A

Protocol Version - Usually HTTP/1.1
Status Code - indicates success or failure of request
Status Text - purely informational, text description of status code

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

What are HTTP headers?

A

Additional information, provide meta data, like the head in a HTML doc.

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

Is a body required for a valid HTTP request or response message?

A

Not required.

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

What is AJAX?

A

Asynchronous programming practice that uses XMLHttpRequests to load data into part of a page without reloading the whole page.

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

Which object is built into the browser for making HTTP requests in JavaScript?

A

The XMLHttpRequest object

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

What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?

A

‘Load’ object

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

An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?

A

They have a shared object in the prototypal chain.

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