Question

Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP
(ii) FTP
(iii) TCP
(iv) POP3

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2016 answer key

Solution

Filter protocols by layer (Application layer) and by statefulness (maintaining session state).

First, evaluate the layer of each protocol:

  • HTTP: Application layer
  • FTP: Application layer
  • TCP: Transport layer (NOT an application layer protocol!)
  • POP3: Application layer

Next, evaluate statefulness for the application layer protocols:

  • (i) HTTP: Designed as a stateless protocol (each request-response transaction is independent; state must be managed artificially via cookies/sessions).
  • (ii) FTP (File Transfer Protocol): Stateful. The control connection maintains session state including user authentication, transfer mode, and current directory path across commands.
  • (iv) POP3 (Post Office Protocol v3): Stateful. A client session progresses through distinct sequential states: AUTHORIZATION, TRANSACTION, and UPDATE.

Since TCP is a transport layer protocol, only (ii) FTP and (iv) POP3 are stateful application layer protocols.

Final answer

C

Common trap

Including TCP because it is stateful, forgetting that TCP operates at the transport layer, not the application layer.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2016 Computer Science and Information Technology (CS) Session 1
Question
35 of 65, printed as CS Q.25
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.