HTTP & FTP Interview/Exam Question-Answer

Q.1 HTTP is ________ protocol.

       A. application layer

       B. transport layer

       C. network layer

       D. data link layer

Ans : application layer


Q.2 Multiple objects can be sent over a TCP connection between client and server in a persistent HTTP connection.

       A. True

       B. False

Ans : True


Q.3 The HEAD method is the same as the GET method

       A. True

       B. False

Ans : True


Q.4 HTTP client requests by establishing a __________ connection to a particular port on the server.

       A. transmission control protocol

       B. border gateway protocol

       C. user datagram protocol

       D. domain host control protocol

Ans : transmission control protocol


Q.5 In the network HTTP resources are located by

       A. unique resource locator

       B. unique resource identifier

       C. uniform resource identifier

       D. union resource locator

Ans : uniform resource identifier


Q.6 The CONNECT method is used to establish a tunnel to the server, which is identified by a given URI.

       A. True

       B. False

Ans : True


Q.7 FTP server listens for connection on port number ____________

       A. 20

       B. 22

       C. 23

       D. 21

Ans : 21


Q.8 In HTTP pipelining ________________.

       A. multiple HTTP requests can not be sent on a single TCP connection

       B. multiple HTTP requests are sent in a queue on a single TCP connection

       C. multiple HTTP requests are sent on a single TCP connection without waiting for the corresponding responses

       D. multiple HTTP requests are sent at random on a single TCP connection

Ans : multiple HTTP requests are sent on a single TCP connection without waiting for the corresponding responses


Q.9 What are HTTP Request Methods

       A. GET

       B. POST

       C. CONNECT

       D. All of the above

Ans : All of the above


Q.10 In FTP protocol, client contacts server using ____ as the transport protocol.

       A. user datagram protocol

       B. datagram congestion control protocol

       C. stream control transmission protocol

       D. transmission control protocol

Ans : transmission control protocol


Q.11 The File Transfer Protocol is built on ______________.

       A. data centric architecture

       B. connection oriented architecture

       C. client server architecture

       D. service oriented architecture

Ans : client server architecture


Q.12 In Active mode FTP, the client initiates both the control and data connections.

       A. True

       B. False

Ans : False


Q.13 In File Transfer Protocol, data transfer cannot be done in ___________.

       A. block mode

       B. stream mode

       B. compressed mode

       B. message mode

Ans : message mode


Leave a Comment