Computer Networks MCQs with Answer
What is the primary function of a router in a computer network?
a) Forwarding data packets between networks
b) Providing internet access to end-users
c) Storing and retrieving data files
d) Managing network security
Correct Answer: a) Forwarding data packets between networks
Which device is used to connect multiple computers within the same local area network (LAN)?
a) Modem
b) Router
c) Switch
d) Hub
Correct Answer: c) Switch
What is the purpose of DNS (Domain Name System) in computer networks?
a) Assigning IP addresses to devices
b) Encrypting network traffic
c) Resolving domain names to IP addresses
d) Managing network protocols
Correct Answer: c) Resolving domain names to IP addresses
Which protocol is used for secure communication over a computer network, often seen in HTTPS connections?
a) FTP (File Transfer Protocol)
b) SNMP (Simple Network Management Protocol)
c) SSH (Secure Shell)
d) HTTP (Hypertext Transfer Protocol)
Correct Answer: c) SSH (Secure Shell)
What does the acronym “LAN” stand for in computer networking?
a) Long Access Network
b) Local Area Network
c) Large Area Network
d) Logical Area Network
Correct Answer: b) Local Area Network
Which layer of the OSI model is responsible for error detection and correction in data transmission?
a) Physical layer
b) Data Link layer
c) Network layer
d) Transport layer
Correct Answer: b) Data Link layer
What is the purpose of ARP (Address Resolution Protocol) in computer networking?
a) Assigning IP addresses to devices dynamically
b) Resolving MAC addresses to IP addresses
c) Routing data packets between networks
d) Ensuring data integrity during transmission
Correct Answer: b) Resolving MAC addresses to IP addresses
Which device operates at the Data Link layer of the OSI model?
a) Router
b) Switch
c) Hub
d) Repeater
Correct Answer: b) Switch
What is the function of NAT (Network Address Translation) in computer networks?
a) Translating domain names to IP addresses
b) Filtering network traffic based on IP addresses
c) Dynamically assigning IP addresses to devices
d) Allowing multiple devices to share a single public IP address
Correct Answer: d) Allowing multiple devices to share a single public IP address
Which protocol is used for transferring files between a client and a server over a network?
a) FTP (File Transfer Protocol)
b) SMTP (Simple Mail Transfer Protocol)
c) SNMP (Simple Network Management Protocol)
d) DHCP (Dynamic Host Configuration Protocol)
Correct Answer: a) FTP (File Transfer Protocol)
What is the purpose of a firewall in computer networks?
a) Monitoring network performance
b) Filtering and blocking unauthorized network traffic
c) Translating IP addresses between networks
d) Managing domain name registrations
Correct Answer: b) Filtering and blocking unauthorized network traffic
Which device is used to connect multiple network segments together?
a) Modem
b) Router
c) Switch
d) Bridge
Correct Answer: d) Bridge
In TCP/IP networking, what is the purpose of the “IP” in “TCP/IP”?
a) Internet Protocol
b) Internal Protocol
c) Internet Provider
d) Interface Protocol
Correct Answer: a) Internet Protocol
What is the primary function of a DHCP server in a network?
a) Assigning static IP addresses to devices
b) Resolving domain names to IP addresses
c) Providing dynamic IP addresses to devices on the network
d) Encrypting network traffic
Correct Answer: c) Providing dynamic IP addresses to devices on the network
What does the acronym “WAN” stand for in computer networking?
a) Wireless Access Network
b) Wired Area Network
c) Wide Area Network
d) Web Area Network
Correct Answer: c) Wide Area Network
Which protocol is used for sending and receiving email messages over a network?
a) HTTP
b) SMTP
c) FTP
d) SNMP
Correct Answer: b) SMTP
Which device is used to amplify network signals in order to extend the distance of a network connection?
a) Modem
b) Router
c) Repeater
d) Gateway
Correct Answer: c) Repeater
What is the purpose of VLANs (Virtual Local Area Networks) in computer networking?
a) Encrypting network traffic
b) Improving network performance
c) Grouping devices logically within a single physical network
d) Resolving domain names to IP addresses
Correct Answer: c) Grouping devices logically within a single physical network
Which layer of the OSI model is responsible for end-to-end communication between applications?
a) Physical layer
b) Transport layer
c) Network layer
d) Application layer
Correct Answer: d) Application layer
What is the purpose of ICMP (Internet Control Message Protocol) in computer networks?
a) Resolving domain names to IP addresses
b) Managing network security
c) Diagnosing network connectivity issues
d) Transferring files between client and server
Correct Answer: c) Diagnosing network connectivity issues
Which network topology connects each network device in a linear sequence?
a) Star
b) Bus
c) Ring
d) Mesh
Correct Answer: b) Bus
Which protocol is responsible for dynamically assigning IP addresses to devices on a network?
a) DNS
b) DHCP
c) ARP
d) NAT
Correct Answer: b) DHCP
What is the purpose of SSL (Secure Sockets Layer) in computer networks?
a) Filtering and blocking unauthorized network traffic
b) Encrypting data transmitted over the network
c) Resolving domain names to IP addresses
d) Managing network routing tables
Correct Answer: b) Encrypting data transmitted over the network
Which networking device operates at the Physical layer of the OSI model?
a) Hub
b) Switch
c) Router
d) Gateway
Correct Answer: a) Hub
What is the purpose of a proxy server in computer networks?
a) Providing internet access to end-users
b) Monitoring network performance
c) Filtering and caching web content
d) Assigning IP addresses to devices dynamically
Correct Answer: c) Filtering and caching web content
Which network protocol is used for remote administration and monitoring of network devices?
a) FTP
b) SNMP
c) SMTP
d) DHCP
Correct Answer: b) SNMP
What is the function of a network switch?
a) Connects multiple network segments together
b) Amplifies network signals
c) Routes data packets between networks
d) Filters and forwards data frames within a LAN
Correct Answer: d) Filters and forwards data frames within a LAN
Which TCP/IP protocol is responsible for ensuring reliable data delivery between network devices?
a) HTTP
b) TCP
c) IP
d) UDP
Correct Answer: b) TCP
What is the purpose of a MAC address in computer networking?
a) Identifying devices within a local network
b) Resolving domain names to IP addresses
c) Routing data packets between networks
d) Translating IP addresses to domain names
Correct Answer: a) Identifying devices within a local network
Which device operates at the Network layer of the OSI model?
a) Hub
b) Switch
c) Router
d) Repeater
Correct Answer: c) Router
What does the acronym “FTP” stand for in computer networking?
a) File Transfer Protocol
b) Fast Transfer Protocol
c) File Transmission Protocol
d) File Transport Protocol
Correct Answer: a) File Transfer Protocol
Which layer of the OSI model is responsible for logical addressing and routing of data packets?
a) Data Link layer
b) Network layer
c) Transport layer
d) Application layer
Correct Answer: b) Network layer
What is the primary function of a network gateway?
a) Amplifying network signals
b) Filtering and blocking network traffic
c) Translating between different network protocols
d) Providing internet access to end-users
Correct Answer: c) Translating between different network protocols
Which protocol is used for translating domain names to IP addresses?
a) HTTP
b) DNS
c) SMTP
d) FTP
Correct Answer: b) DNS
What is the purpose of a network hub?
a) Connects multiple network segments together
b) Amplifies network signals
c) Routes data packets between networks
d) Filters and forwards data frames within a LAN
Correct Answer: b) Amplifies network signals
Which networking device operates at the Physical layer of the OSI model?
a) Switch
b) Router
c) Hub
d) Gateway
Correct Answer: c) Hub
What does the acronym “TCP” stand for in computer networking?
a) Transmission Control Protocol
b) Transfer Control Protocol
c) Terminal Control Protocol
d) Telecommunication Control Protocol
Correct Answer: a) Transmission Control Protocol
Which protocol is used for assigning IP addresses to devices dynamically?
a) DNS
b) DHCP
c) ARP
d) NAT
Correct Answer: b) DHCP
What is the purpose of a network repeater?
a) Connects multiple network segments together
b) Amplifies network signals
c) Routes data packets between networks
d) Filters and forwards data frames within a LAN
Correct Answer: b) Amplifies network signals
Which network topology connects each network device to a central hub or switch?
a) Star
b) Bus
c) Ring
d) Mesh
Correct Answer: a) Star
What is the primary function of the Data Link layer in the OSI model?
a) Error detection and correction
b) Logical addressing and routing
c) End-to-end communication between applications
d) Encoding and decoding data signals
Correct Answer: a) Error detection and correction
Which protocol is used for sending and receiving emails?
a) FTP
b) SMTP
c) SNMP
d) DHCP
Correct Answer: b) SMTP
What is the purpose of NAT (Network Address Translation) in computer networking?
a) Translating domain names to IP addresses
b) Filtering network traffic based on IP addresses
c) Dynamically assigning IP addresses to devices
d) Allowing multiple devices to share a single public IP address
Correct Answer: d) Allowing multiple devices to share a single public IP address
What is the function of ARP (Address Resolution Protocol) in computer networking?
a) Assigning IP addresses to devices dynamically
b) Resolving MAC addresses to IP addresses
c) Routing data packets between networks
d) Ensuring data integrity during transmission
Correct Answer: b) Resolving MAC addresses to IP addresses
What is the primary function of a router in a computer network?
a) Forwarding data packets between networks
b) Providing internet access to end-users
c) Storing and retrieving data files
d) Managing network security
Correct Answer: a) Forwarding data packets between networks
Which protocol is used for secure communication over a computer network, often seen in HTTPS connections?
a) FTP
b) SNMP
c) SSH
d) HTTP
Correct Answer: c) SSH
What is the purpose of VLANs (Virtual Local Area Networks) in computer networking?
a) Encrypting network traffic
b) Improving network performance
c) Grouping devices logically within a single physical network
d) Resolving domain names to IP addresses
Correct Answer: c) Grouping devices logically within a single physical network
Which layer of the OSI model is responsible for end-to-end communication between applications?
a) Physical layer
b) Transport layer
c) Network layer
d) Application layer
Correct Answer: d) Application layer
What is the purpose of SSL (Secure Sockets Layer) in computer networks?
a) Filtering and blocking unauthorized network traffic
b) Encrypting data transmitted over the network
c) Resolving domain names to IP addresses
d) Managing network routing tables
Correct Answer: b) Encrypting data transmitted over the network
Which networking device operates at the Data Link layer of the OSI model?
a) Router
b) Switch
c) Hub
d) Repeater
Correct Answer: b) Switch