A. Fine transfer protocol
B. File transfer protocol
C. First transfer protocol
D. Fast transfer protocol
Explanation: File Transfer Protocol is an application layer protocol used to share “files” between a server and a client. The protocol uses two separate ports for data and control connections: port 20 for data and port 21 for control.
A. Client-server
B. P2p
C. Data centric
D. Service oriented
Explanation: An FTP connection includes a Server and a Client which wish to share a number of data files. The server can transfer files with multiple clients at the same time while the client communicates with only one server at a time.
A. 1
B. 2
C. 3
D. 4
Explanation: Control connection using FTP port: 21, and data connection using FTP port: 20. The FTP session is started or ended using port 21 and the actual data i.e. files are sent through port 20.
A. FTP stands for file transfer protocol
B. FTP uses two parallel TCP connections
C. FTP sends its control information in-band
D. FTP sends exactly one file over the data connection
Explanation: FTP is out-of-band because the data connection is done separately through port 20 and control connection is done separately through port 21.
A. 5
B. 10
C. 2
D. 6
Explanation: The client would first initiate the TCP control connection through port 21. Then for every file transfer, a separate connection would be made through port 20. Now, since we have five files to be transferred, 1 control connection + 5 data connections = 6 total TCP connections.
A. Maintains state information
B. Is stateless
C. Has single TCP connection for a file transfer
D. Has UDP connection for file transfer
Explanation: FTP server maintains state information of every control connection to keep track of the active and inactive connections in the session. This helps the server decide which connection to terminate, in case the connection is inactive for too long.
A. 8
B. 7
C. 3
D. 5
Explanation: FTP was designed to transmit commands only in English characters that are possible with just 7 bits in ASCII. Even the media has to be converted to ASCII before transmission.
A. 331 ? username ok, password required
B. 425 ? can’t open data connection
C. 452 ? error writing file
D. 452 ? can’t open data connection
Explanation: The correct response code for the message “Can’t open data connection” is 425. Response code 452 is sent usually when the connection is suddenly closed.
A. Stream mode
B. Block mode
C. Compressed mode
D. Message mode
Explanation: Stream mode is the default mode of FTP, in which the TCP transforms/fragments the data into segments, and then after the transmission is completed, converts it back to stream of bytes.
A. Passwd
B. Pass
C. Password
D. Pword
Explanation: The PASS command, preceded by the username, completes the user’s identification for access control in an FTP session. Without the valid password, the user won’t be able to initiate the FTP connection.