IS 123
Computer Networks
Midterms Exam Review (Qns & Ans)
2025
1. Which protocol is used to dynamically assign IP addresses to
devices in a network?
A. DNS
B. DHCP
C. ARP
D. ICMP
- ANS: B. DHCP
- Rationale: Dynamic Host Configuration Protocol (DHCP)
automatically assigns IP addresses, subnet masks, and other
network configuration parameters to devices.
©2025
,2. What is the main purpose of the subnet mask in IP
addressing?
A. To identify the default gateway
B. To divide an IP address into network and host portions
C. To encrypt data transmission
D. To enable multicast communication
- ANS: B. To divide an IP address into network and host
portions
- Rationale: The subnet mask determines which part of an IP
address represents the network and which part identifies the host.
3. Which layer of the OSI model is responsible for end-to-end
communication and error recovery?
A. Transport
B. Data Link
C. Network
D. Session
- ANS: A. Transport
- Rationale: The Transport layer ensures reliable delivery of
data between devices by managing error detection and
retransmission.
©2025
, 4. What is the primary function of the Border Gateway Protocol
(BGP)?
A. Resolving domain names into IP addresses
B. Routing traffic between autonomous systems on the Internet
C. Ensuring secure communication between devices
D. Establishing a VPN connection
- ANS: B. Routing traffic between autonomous systems on
the Internet
- Rationale: BGP is a routing protocol that manages how
packets are routed across different networks globally.
5. What is the main advantage of using IPv6 over IPv4?
A. Larger address space
B. Faster transmission speeds
C. Improved DNS resolution
D. Lower packet loss
- ANS: A. Larger address space
- Rationale: IPv6 supports 128-bit addressing, providing
significantly more unique IP addresses than IPv4’s 32-bit
addressing.
©2025
Computer Networks
Midterms Exam Review (Qns & Ans)
2025
1. Which protocol is used to dynamically assign IP addresses to
devices in a network?
A. DNS
B. DHCP
C. ARP
D. ICMP
- ANS: B. DHCP
- Rationale: Dynamic Host Configuration Protocol (DHCP)
automatically assigns IP addresses, subnet masks, and other
network configuration parameters to devices.
©2025
,2. What is the main purpose of the subnet mask in IP
addressing?
A. To identify the default gateway
B. To divide an IP address into network and host portions
C. To encrypt data transmission
D. To enable multicast communication
- ANS: B. To divide an IP address into network and host
portions
- Rationale: The subnet mask determines which part of an IP
address represents the network and which part identifies the host.
3. Which layer of the OSI model is responsible for end-to-end
communication and error recovery?
A. Transport
B. Data Link
C. Network
D. Session
- ANS: A. Transport
- Rationale: The Transport layer ensures reliable delivery of
data between devices by managing error detection and
retransmission.
©2025
, 4. What is the primary function of the Border Gateway Protocol
(BGP)?
A. Resolving domain names into IP addresses
B. Routing traffic between autonomous systems on the Internet
C. Ensuring secure communication between devices
D. Establishing a VPN connection
- ANS: B. Routing traffic between autonomous systems on
the Internet
- Rationale: BGP is a routing protocol that manages how
packets are routed across different networks globally.
5. What is the main advantage of using IPv6 over IPv4?
A. Larger address space
B. Faster transmission speeds
C. Improved DNS resolution
D. Lower packet loss
- ANS: A. Larger address space
- Rationale: IPv6 supports 128-bit addressing, providing
significantly more unique IP addresses than IPv4’s 32-bit
addressing.
©2025