UNIX MCQs – Network Services (Part – 3)

UNIX Question and Answer – Network Services

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. Which command is used to transfer files between UNIX systems using the Kermit protocol?

a) kermit

b) ftp

c) sftp

d) scp

Answer: a) kermit

Explanation: The kermit command is used to initiate file transfer using the Kermit protocol, a robust file transfer protocol for UNIX systems.


2. What does NNTP stand for in the context of UNIX network services?

a) Network News Transport Protocol

b) Network News Transfer Protocol

c) Network Name Transport Protocol

d) Network Name Transfer Protocol

Answer: b) Network News Transfer Protocol

Explanation: NNTP is a protocol used for distributing, querying, retrieving, and posting news articles and Usenet messages in UNIX environments.


3. Which port number is commonly used by NNTP?

a) 20

b) 21

c) 23

d) 119

Answer: d) 119

Explanation: Port 119 is the default port number used by NNTP for communication.


4. Which command is used to read Usenet news articles in UNIX?

a) news

b) nntp

c) fetchnews

d) readnews

Answer: c) fetchnews

Explanation: The fetchnews command is used to retrieve Usenet news articles in UNIX.


5. What is the purpose of the nntp command in UNIX?

a) Display Usenet news articles

b) Post Usenet news articles

c) Configure NNTP settings

d) Delete Usenet news articles

Answer: b) Post Usenet news articles

Explanation: The nntp command is used to post Usenet news articles in UNIX.


6. Which protocol is commonly used for accessing remote printers in UNIX environments?

a) IPP

b) LPR

c) SNMP

d) LPD

Answer: d) LPD

Explanation: LPD (Line Printer Daemon) is a protocol used for accessing remote printers in UNIX environments.


7. Which command is used to send print jobs to a remote printer in UNIX using the LPD protocol?

a) print

b) lp

c) lpr

d) lpd

Answer: c) lpr

Explanation: The lpr command is used to send print jobs to a remote printer in UNIX using the LPD protocol.


8. What is the purpose of the lpc command in UNIX?

a) Display printer status

b) Manage printer queues

c) Configure printer settings

d) Print files

Answer: b) Manage printer queues

Explanation: The lpc command is used to manage printer queues in UNIX.


9. Which protocol is commonly used for network-based file sharing in Windows environments?

a) SSH

b) SMB

c) NFS

d) FTP

Answer: b) SMB

Explanation: SMB (Server Message Block) is a protocol used for network-based file sharing in Windows environments.


10. Which command is used to mount a remote SMB share in UNIX?

a) mount

b) smbmount

c) cifs

d) smbclient

Answer: b) smbmount

Explanation: The smbmount command is used to mount a remote SMB share in UNIX.


11. What is the purpose of the smbclient command in UNIX?

a) Mount a remote SMB share

b) Access a remote SMB share

c) Manage Samba configuration

d) Display SMB server status

Answer: b) Access a remote SMB share

Explanation: The smbclient command is used to access a remote SMB share in UNIX.


12. Which command is used to unmount a remote SMB share in UNIX?

a) umount

b) smbunmount

c) unmount

d) smbclient

Answer: a) umount

Explanation: The umount command is used to unmount a remote SMB share in UNIX.


13. What does SNMP stand for in the context of UNIX network services?

a) Simple Network Management Protocol

b) Secure Network Management Protocol

c) System Network Management Protocol

d) Standard Network Management Protocol

Answer: a) Simple Network Management Protocol

Explanation: SNMP is a protocol used for managing network devices and systems in UNIX environments.


14. Which port number is commonly used by SNMP?

a) 20

b) 21

c) 161

d) 162

Answer: c) 161

Explanation: Port 161 is the default port number used by SNMP for communication.


15. Which command is used to query SNMP-enabled devices in UNIX?

a) snmpget

b) snmpwalk

c) snmpquery

d) snmpinfo

Answer: a) snmpget

Explanation: The snmpget command is used to query SNMP-enabled devices and retrieve specific information in UNIX.


16. What does DHCP stand for in the context of UNIX network services?

a) Dynamic Host Control Protocol

b) Domain Host Configuration Protocol

c) Dynamic Host Configuration Protocol

d) Domain Host Control Protocol

Answer: c) Dynamic Host Configuration Protocol

Explanation: DHCP is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices on a network.


17. Which port number is commonly used by DHCP?

a) 53

b) 67

c) 68

d) 69

Answer: b) 67

Explanation: Port 67 is used by DHCP servers for sending DHCP messages.


18. Which command is used to configure a DHCP client on a UNIX system?

a) dhcpclient

b) dhclient

c) dhcpconfig

d) dhconfig

Answer: b) dhclient

Explanation: The dhclient command is used to configure a DHCP client on a UNIX system.


19. What is the primary purpose of the dhcpd daemon in UNIX?

a) Assign IP addresses to DHCP clients

b) Configure DHCP client settings

c) Manage DNS records

d) Monitor network traffic

Answer: a) Assign IP addresses to DHCP clients

Explanation: The dhcpd daemon is responsible for assigning IP addresses to DHCP clients in UNIX.


20. Which command is used to configure a DHCP server on a UNIX system?

a) dhcpserver

b) dhcpsrv

c) dhcpd

d) dhserver

Answer: c) dhcpd

Explanation: The dhcpd command is used to configure a DHCP server on a UNIX system.


21. What is the primary role of a DNS server in UNIX?

a) Assign IP addresses to devices on a network

b) Translate domain names into IP addresses

c) Authenticate users for network access

d) Manage network routing tables

Answer: b) Translate domain names into IP addresses

Explanation: DNS servers resolve domain names to IP addresses, allowing devices to locate resources on a network.


22. Which port number is commonly used by DNS?

a) 53

b) 67

c) 68

d) 69

Answer: a) 53

Explanation: Port 53 is used by DNS servers for both TCP and UDP communications.


23. Which command is used to query DNS servers and retrieve information about domain names in UNIX?

a) nslookup

b) dig

c) host

d) dnsquery

Answer: b) dig

Explanation: The dig command is used to perform DNS queries and retrieve information about domain names in UNIX.


24. What is the purpose of the host command in UNIX?

a) Display DNS records

b) Query DNS servers

c) Configure DNS settings

d) Resolve domain names to IP addresses

Answer: d) Resolve domain names to IP addresses

Explanation: The host command is used to perform DNS lookups and resolve domain names to IP addresses in UNIX.


25. Which command is used to configure DNS client settings on a UNIX system?

a) dnsconfig

b) named

c) resolvconf

d) dig

Answer: c) resolvconf

Explanation: The resolvconf command is used to configure DNS client settings on a UNIX system.


26. What does NTP stand for in the context of UNIX network services?

a) Network Time Protocol

b) Network Transfer Protocol

c) Network Test Protocol

d) Network Transmission Protocol

Answer: a) Network Time Protocol

Explanation: NTP is a protocol used to synchronize the clocks of computer systems over a network.


27. Which port number is commonly used by NTP?

a) 37

b) 123

c) 143

d) 161

Answer: b) 123

Explanation: Port 123 is used by NTP servers and clients for time synchronization.


28. Which command is used to query NTP servers and synchronize the system clock in UNIX?

a) ntpq

b) ntpdate

c) ntpsync

d) ntpclient

Answer: b) ntpdate

Explanation: The ntpdate command is used to query NTP servers and synchronize the system clock in UNIX.


29. What is the primary purpose of the ntpq command in UNIX?

a) Set system time

b) Query NTP servers

c) Configure NTP settings

d) Display system time

Answer: b) Query NTP servers

Explanation: The ntpq command is used to query NTP servers and retrieve information about their status and performance in UNIX.


30. Which command is used to configure an NTP client on a UNIX system?

a) ntpconfig

b) ntpclient

c) ntpdate

d) ntpd

Answer: d) ntpd

Explanation: The ntpd command is used to configure an NTP client on a UNIX system.


31. What is the purpose of the ntpd daemon in UNIX?

a) Set system time

b) Query NTP servers

c) Synchronize system time

d) Manage NTP server settings

Answer: c) Synchronize system time

Explanation: The ntpd daemon continuously adjusts the system time to synchronize it with NTP servers in UNIX.


32. Which command is used to configure an NTP server on a UNIX system?

a) ntpconfig

b) ntpclient

c) ntpdate

d) ntpd

Answer: d) ntpd

Explanation: The ntpd command is used to configure an NTP server on a UNIX system.


33. What is the purpose of the rdate command in UNIX?

a) Set system time

b) Query NTP servers

c) Synchronize system time

d) Manage NTP server settings

Answer: c) Synchronize system time

Explanation: The rdate command is used to set or synchronize the system time with a remote server in UNIX.


34. Which protocol is commonly used for secure remote administration of UNIX systems?

a) Telnet

b) SSH

c) RSH

d) FTP

Answer: b) SSH

Explanation: SSH (Secure Shell) is commonly used for secure remote administration of UNIX systems.


35. Which command is used to remotely execute commands on a UNIX system over SSH?

a) ssh

b) scp

c) sftp

d) sshexec

Answer: a) ssh

Explanation: The ssh command is used to remotely execute commands on a UNIX system over SSH.


36. What does SNMP stand for in UNIX network services?

a) Simple Network Management Protocol

b) Secure Network Monitoring Protocol

c) Systematic Network Management Protocol

d) Secure Network Management Protocol

Answer: a) Simple Network Management Protocol

Explanation: SNMP facilitates the management and monitoring of network devices and systems.


37. Which port is commonly used by SNMP for communication?

a) 21

b) 23

c) 161

d) 162

Answer: c) 161

Explanation: Port 161 is utilized by SNMP for communication between the manager and the agents.


38. What is the function of an SNMP manager?

a) To store network management information

b) To monitor and manage SNMP agents

c) To interpret SNMP traps

d) To compile network statistics

Answer: b) To monitor and manage SNMP agents

Explanation: An SNMP manager is responsible for monitoring and controlling SNMP agents within a network.


39. Which command is used to query SNMP-enabled devices for information in UNIX?

a) snmpwalk

b) snmpget

c) snmpquery

d) snmpinfo

Answer: b) snmpget

Explanation: The snmpget command retrieves information from SNMP-enabled devices in UNIX.


40. Which SNMP message type is sent from an agent to the manager without a request?

a) GetRequest

b) GetResponse

c) Trap

d) Inform

Answer: c) Trap

Explanation: SNMP traps are unsolicited messages sent from agents to managers to indicate an event or error condition.


41. Which command is used to send an SNMP trap from a UNIX system?

a) snmptrap

b) snmpsend

c) snmpalert

d) snmpnotify

Answer: a) snmptrap

Explanation: The snmptrap command is used to send SNMP traps from a UNIX system to an SNMP manager.


42. What does SMTP stand for in UNIX network services?

a) Simple Mail Transfer Protocol

b) Secure Mail Transfer Protocol

c) System Mail Transfer Protocol

d) Secure Message Transfer Protocol

Answer: a) Simple Mail Transfer Protocol

Explanation: SMTP is used for sending and receiving email messages between servers.


43. Which port number is commonly used by SMTP?

a) 25

b) 53

c) 80

d) 110

Answer: a) 25

Explanation: Port 25 is the default port number for SMTP communication.


44. Which command is used to send an email from the command line in UNIX?

a) sendmail

b) mail

c) smtpsend

d) email

Answer: a) sendmail

Explanation: The sendmail command is utilized to send email messages from the command line in UNIX.


45. What does IMAP stand for in UNIX network services?

a) Internet Mail Access Protocol

b) Internet Message Access Protocol

c) Interactive Mail Access Protocol

d) Integrated Mail Access Protocol

Answer: b) Internet Message Access Protocol

Explanation: IMAP is used by email clients to retrieve email messages from a mail server.


46. Which port number is commonly used by IMAP?

a) 143

b) 25

c) 110

d) 587

Answer: a) 143

Explanation: Port 143 is typically used by IMAP for communication.


47. Which command is used to configure an IMAP client in UNIX?

a) imapclient

b) imconfig

c) imapconfig

d) imap

Answer: d) imap

Explanation: The imap command is used to configure an IMAP client in UNIX.


48. What does POP3 stand for in UNIX network services?

a) Post Office Protocol version 3

b) Protocol for Online Processing version 3

c) Public Operations Protocol version 3

d) Primary Online Protocol version 3

Answer: a) Post Office Protocol version 3

Explanation: POP3 is used to retrieve email messages from a mail server to a client.


49. Which port number is commonly used by POP3?

a) 110

b) 143

c) 25

d) 587

Answer: a) 110

Explanation: Port 110 is the default port number for POP3 communication.


50. Which command is used to configure a POP3 client in UNIX?

a) popclient

b) popconfig

c) pop3

d) fetchmail

Answer: d) fetchmail

Explanation: The fetchmail command is used to configure a POP3 client in UNIX.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...