Skip to document

NP lab2 - 5- meta knowledge about wisedone (X) 6- meta knowledge about knowledge (T) 7-

5- meta knowledge about wisedone (X) 6- meta knowledge about knowle...
Course

Digital Marketing Questions

33 Documents
Students shared 33 documents in this course
Academic year: 2016/2017
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Egyptian Chinese University

Comments

Please sign in or register to post comments.

Preview text

Network programming |Lab 2

2 what HTTP?

An introduction to HTTP orders & python language

2 how is HTTP work?

HTTP Request / Response

Communication between clients and servers is done by requests and responses:

1. A client (a browser) sends an HTTP request to the web

2. A web server receives the request

3. The server runs an application to process the request

4. The server returns an HTTP response (output) to the browser

5. The client (the browser) receives the response

2 what are HTTP methods?

_______________________________________________________________

2 what is direction of data?

A. Simplex mode, the communication is unidirectional (one

direction only), as on a one-way street.

Only one of the two devices on a link can transmit; the

other can only receive.

B. Half-duplex mode,

each station can both transmit and receive, but not at

the same time.

When one device is sending, the other can only

receive, and vice versa

C. In full-duplex mode, both stations can transmit and receive

simultaneously It’s like a street with traffic flowing in both

directions at the same time.

GET - is used to request data from a specified resource.

Ex: GET /hello HTTP/1.

POST Is used when you want to send some data to the server

Ex:

PUT - is used to send data to a server to create/update a resource.

- calling the same PUT request multiple times will always produce the same

result

Ex:

HEAD - HEAD is almost identical to GET, but without the response body

Ex:

DELETE deletes the specified resource

Ex:

OPTIONS describes the communication options for the target resource.

Used to test and discover what the server allow.

Ex:

2 Practice Questions:

1- ....... Is used to request data from a specified resource.
A. GET B. POST C. OPTION D. HEAD
2............. used to send data to a server to create/update a resource.
A. GET B. POST C. OPTION D. HEAD
3........... almost identical to GET, but without the response body.
A. GET B. POST C. PUT D. HEAD
4 - method performs a message loop-back test along the path to the target resource.
A. TRACE B. CONNECT C. OPTION D. POST
5 - .............. Is used to deletes the specified resource.
A. DELETE B. POST C. PUT D. HEAD
6 - ............... Method describes the communication options for the target resource.
A. DELETE B. POST C. OPTIONS D. PUT
7 - .............. Method used by client to establish a network connection to a web server over http.
A. CONNECT B. POST C. OPTIONS D. PUT
8 - .............. layer specifies the physical media connecting hosts and networks.
A. Physical B. Data link C. Network D. Transport
9 ........... layer responsible for routing machine to machine communications.
A. Physical B. Data link C. Network D. Transport
10 ............ manages the reliable delivery of data across the physical network
A. Physical B. Data link C. Network D. Transport
11 ............ provides end-to-end sequenced delivery of data.
A. Physical B. Data link C. Network D. Transport
12. ......... Layer consists of the user-level programs and network services.
A. Session B. Presentation C. Application D. Transport
13. ......... Layer manages session between cooperating applications.
A. Session B. Presentation C. Application D. Transport
14. ....... Layer performs the translation between the data representation local to the computer and the
processor.
A. Session B. Presentation C. Application D. Transport
15. HTTP is called as a........... Protocol.
A. state B. stateless C. None D. A and B
Was this document helpful?

NP lab2 - 5- meta knowledge about wisedone (X) 6- meta knowledge about knowledge (T) 7-

Course: Digital Marketing Questions

33 Documents
Students shared 33 documents in this course
Was this document helpful?
By Eng. Hager Soliman -LAB 2 Network programming course
Network programming |Lab 2
2.1 what HTTP?
An introduction to HTTP orders & python language
2.2 how is HTTP work?
HTTP Request / Response
Communication between clients and servers is done by requests and responses:
1. A client (a browser) sends an HTTP request to the web
2. A web server receives the request
3. The server runs an application to process the request
4. The server returns an HTTP response (output) to the browser
5. The client (the browser) receives the response