1. What is the default port for FTP control connection?
Correct Answer: b) 21
Explanation: FTP uses port 21 for the control connection which handles commands and responses. Port 20 is used for data transfer in active mode.
2. Which FTP mode requires a separate data connection?
Correct Answer: c) Both
Explanation: Both active and passive modes require a separate data connection. The difference is in who initiates the connection - the server in active mode or the client in passive mode.
3. What is the role of port 20 in FTP?
Correct Answer: b) Data transfer
Explanation: Port 20 is used for the data connection in active mode FTP, where actual file transfers occur. The control connection remains on port 21.
4. Which FTP command uploads a file to the server?
Correct Answer: b) PUT
Explanation: The PUT command uploads a file from the client to the server. GET downloads a file, LIST shows directory contents, and CD changes directory.
5. What is SFTP?
Correct Answer: a) FTP over SSH (Secure Shell)
Explanation: SFTP (SSH File Transfer Protocol) is a secure file transfer protocol that uses SSH to encrypt both commands and data, unlike standard FTP which sends data in clear text.
6. Which authentication method does FTP use by default?
Correct Answer: a) Username/Password
Explanation: Standard FTP uses username and password authentication sent in clear text. More secure variants like SFTP and FTPS provide encrypted authentication.
7. What is Anonymous FTP?
Correct Answer: a) FTP without authentication
Explanation: Anonymous FTP allows users to connect with "anonymous" as username and typically their email as password, providing public access to files.
8. Which protocol is an alternative to FTP and uses a single connection?
Correct Answer: c) SCP
Explanation: SCP (Secure Copy Protocol) runs over SSH using a single connection (port 22) for both commands and data transfer, unlike FTP which uses separate control and data connections.
9. What is the main disadvantage of FTP?
Correct Answer: b) Lack of encryption (in standard FTP)
Explanation: Standard FTP transmits both authentication credentials and file contents in clear text, making it vulnerable to interception. Secure alternatives like SFTP and FTPS address this.
10. Which command lists files in an FTP directory?
Correct Answer: d) Both (a) and (c)
Explanation: Both DIR and LIST commands can be used to list files in FTP. LS is a Unix command that doesn't work in standard FTP. The output format may vary between implementations.