Sample questions
Question 1Easy
Which protocol is used to send email from a mail client to its outgoing server and between mail servers?
- SNMP
- SMTP
- IMAP
- POP3
Answer: B. SMTP
Explanation
SMTP pushes mail; POP3 and IMAP pull it from a mailbox.
Step-by-step solution
- Email sent from client to server uses SMTP.
- SMTP also handles email between servers.
- SNMP is for network management, not email.
- POP3 and IMAP are for retrieving emails, not sending.
- Correct protocol for sending email is SMTP.
Why the other options are wrong
- A. SNMP is for monitoring network devices, not for sending email.
- C. IMAP is for retrieving mail from a server, not sending it.
- D. POP3 is for downloading mail, not sending it.
Tip: Remember: SMTP sends, POP3/IMAP retrieves.
Question 2Easy
Which ports does a DHCP client and server use?
- UDP 68 (client) and UDP 67 (server)
- UDP 53 (client) and UDP 54 (server), like DNS
- TCP 67 and TCP 68
- TCP 80 and TCP 443
Answer: A. UDP 68 (client) and UDP 67 (server)
Explanation
DHCP runs over UDP because the client has no IP address yet and must broadcast.
Step-by-step solution
- DHCP clients use UDP port 68 to send requests.
- DHCP servers respond using UDP port 67.
- UDP is used because the client has no IP address yet.
- Broadcasting ensures all servers receive the request.
- Final answer: UDP 68 (client) and UDP 67 (server).
Why the other options are wrong
- B. DNS uses port 53; DHCP uses UDP ports 67 and 68, so this is wrong.
- C. DHCP uses UDP, not TCP, on ports 67 and 68.
- D. Ports 80 and 443 are for web traffic, not DHCP.
Tip: Remember DHCP uses UDP, not TCP.
Question 3Easy
Which well-known port does SMTP (server-to-server mail relay) use by default?
- 143
- 110
- 587
- 25
Answer: D. 25
Explanation
SMTP uses port 25.
Step-by-step solution
- SMTP is the protocol for sending emails between servers.
- By default, SMTP uses port number 25 for communication.
- Port 25 is the standard and most commonly used port for SMTP servers.
- Other ports like 587 or 465 are used for secure connections but not default.
- The correct answer is 25.
Why the other options are wrong
- A. 143 is the IMAP port, used for retrieving mail, not server-to-server relay.
- B. 110 is POP3, used for downloading mail, not relay between servers.
- C. 587 is for mail submission from clients, not the server-to-server relay port.
Tip: Remember SMTP defaults to port 25 for email relays.
Question 4Easy
Which well-known port does DNS use by default?
- 67
- 25
- 53
- 161
Answer: C. 53
Explanation
DNS uses port 53.
Step-by-step solution
- DNS (name resolution) is assigned the well-known port 53.
- It mainly uses UDP/53 for ordinary queries, falling back to TCP/53 for larger responses or zone transfers.
Why the other options are wrong
- A. 67 is the DHCP server's port.
- B. 25 is SMTP's port.
- D. 161 is SNMP's port (agent queries).
Tip: Port 53 = DNS, for both UDP queries and TCP zone transfers.
Question 5Medium
Which well-known port does IMAP use by default?
- 993
- 143
- 110
- 25
Answer: B. 143
Explanation
IMAP uses port 143.
Step-by-step solution
- IMAP is a mail retrieval protocol.
- Standard (non‑SSL) IMAP listens on port 143.
- Therefore the default port is 143.
Why the other options are wrong
- A. 993 is IMAP over SSL; the standard non-SSL IMAP port is 143.
- C. 110 is POP3, not IMAP.
- D. 25 is SMTP for sending and relaying mail, not IMAP retrieval.
Tip: Remember 143 for IMAP and 993 for its secure version.
Question 6Medium
What is MIME used for in email?
- Encoding attachments and non-ASCII content inside messages
- Encrypting the SMTP session between the client and the mail server
- Finding the mail server for a domain
- Retrieving mail from the server
Answer: A. Encoding attachments and non-ASCII content inside messages
Explanation
MIME headers describe content types and encodings (e.g. base64) so binary files and other character sets can travel through text-based SMTP.
Step-by-step solution
- Original email (SMTP) only carried plain 7-bit ASCII text.
- MIME adds headers (Content-Type, Content-Transfer-Encoding) describing the real content type and how it's encoded.
- This lets binary attachments and non-English text be safely encoded (e.g. base64) inside an ASCII-safe message.
Why the other options are wrong
- B. Encrypting the SMTP session is TLS/STARTTLS's job, a transport-security concern, not MIME's content-labelling job.
- C. Finding the mail server for a domain is done via DNS MX record lookups, unrelated to MIME.
- D. Retrieving mail from a server is POP3 or IMAP's job, not MIME's.
Tip: MIME is the label on the envelope's contents, not who delivers the envelope.
Question 7Medium
In classic active-mode FTP, which ports are used for control and data?
- Control on 80, data on 443
- Control on 20, data on 21
- Control 21, data 20
- Both control and data on port 22
Answer: C. Control 21, data 20
Explanation
FTP keeps a control connection on 21 and opens separate data connections; in passive mode the client opens the data connection to a server-chosen port.
Step-by-step solution
- In active mode, the client opens the control connection to the server on port 21.
- For the data transfer, the server opens a connection back from its port 20 to the client.
- So control is 21 and data is 20, option C.
Why the other options are wrong
- A. 80 is HTTP and 443 is HTTPS, not FTP ports.
- B. The ports are swapped: 21 is control and 20 is data.
- D. FTP does not use port 22 (that is SSH).
Tip: FTP: 21 is control, 20 is data (in active mode).
Question 8Medium
Which port is commonly used for authenticated mail submission from clients (SMTP with STARTTLS)?
- 587
- 110
- 993
- 25
Answer: A. 587
Explanation
Port 587 is the submission port; port 25 is mainly used for server-to-server relay.
Step-by-step solution
- SMTP uses port 25 for basic mail transfer.
- STARTTLS upgrades a plain connection to an encrypted one, and clients normally use it on port 587.
- Port 587 is specifically designated for authenticated mail submission.
- Port 110 and 993 are used for POP and IMAP protocols.
- The correct answer is 587.
Why the other options are wrong
- B. 110 is POP3 for downloading mail, not for submitting it.
- C. 993 is IMAP over SSL, used for retrieving mail, not submission.
- D. 25 is for server-to-server relay; client submission uses port 587.
Tip: Remember: 587 = SMTP with STARTTLS, 25 = basic SMTP.
Question 9Hard
Which well-known port does SNMP (agent queries) use by default?
- 161
- 162
- 123
- 514
Answer: A. 161
Explanation
SNMP uses port 161.
Step-by-step solution
- SNMP agents listen for manager queries on UDP port 161.
- Port 162 is the default for SNMP traps sent from agents to managers.
- So port 161 is the answer, option A.
Why the other options are wrong
- B. 162 is the trap port, not the port for agent queries.
- C. 123 is used by NTP, not SNMP.
- D. 514 is used by syslog, not SNMP.
Tip: SNMP: 161 for queries, 162 for traps.
Question 10Hard
A client opens a TCP connection to a web server on port 443. What source port does the client usually use?
- Port 0
- Port 80
- Port 443, the same as the destination port on the server
- A random ephemeral port chosen by the client OS
Answer: D. A random ephemeral port chosen by the client OS
Explanation
The client picks a temporary high-numbered port so replies can be matched to its socket.
Step-by-step solution
- TCP clients use random ephemeral ports for outgoing connections.
- Port 443 is used by the server, not the client.
- Client OS selects a unique port from the ephemeral range.
- This ensures correct matching of incoming replies.
- A random ephemeral port chosen by the client OS.
Why the other options are wrong
- A. Port 0 is reserved and is not used as a client source port.
- B. Port 80 is the web server port, not a client source port.
- C. The client does not use the server's port number as its own source port.
Tip: Remember: clients always use a random port, not the server's port.
Practise all 21 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →