AMCAT Computer Networks 1 — Questions and Answers
Question 1: Which layer of the OSI model is responsible for end-to-end communication and error recovery between hosts?
- Network Layer
- Data Link Layer
- Transport Layer (Correct answer)
- Session Layer
Correct answer: Transport Layer
The Transport Layer (Layer 4) provides end-to-end communication, error recovery, and flow control between source and destination hosts.
Question 2: What is the maximum number of hosts that can be assigned in a Class C IP network?
- 254 (Correct answer)
- 256
- 512
- 65534
Correct answer: 254
A Class C network has 8 host bits, giving 2^8 = 256 addresses, but 2 are reserved (network and broadcast), leaving 254 usable host addresses.
Question 3: Which protocol is used to automatically assign IP addresses to devices on a network?
- DNS
- ARP
- DHCP (Correct answer)
- ICMP
Correct answer: DHCP
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, gateways, and DNS servers to network devices.
Question 4: In a network with subnet mask 255.255.255.192, how many subnets and hosts per subnet are created from a Class C address?
- 2 subnets, 62 hosts
- 4 subnets, 62 hosts (Correct answer)
- 4 subnets, 64 hosts
- 2 subnets, 64 hosts
Correct answer: 4 subnets, 62 hosts
255.255.255.192 = /26, borrowing 2 bits gives 4 subnets, and the remaining 6 host bits yield 2^6 - 2 = 62 usable hosts per subnet.
Question 5: Which of the following is a connection-oriented protocol at the Transport Layer?
- UDP
- IP
- TCP (Correct answer)
- ICMP
Correct answer: TCP
TCP (Transmission Control Protocol) is connection-oriented, establishing a connection via a three-way handshake before data transfer begins.
Question 6: What does ARP stand for and what is its primary function?
- Address Resolution Protocol; maps IP to MAC addresses (Correct answer)
- Address Routing Protocol; routes packets between networks
- Automatic Routing Protocol; assigns routes dynamically
- Application Resolution Protocol; resolves domain names
Correct answer: Address Resolution Protocol; maps IP to MAC addresses
ARP (Address Resolution Protocol) maps a known IP address to its corresponding MAC (physical) address within a local network segment.
Question 7: Which topology provides the highest fault tolerance because every node is connected to every other node?
- Bus topology
- Star topology
- Ring topology
- Mesh topology (Correct answer)
Correct answer: Mesh topology
In a full mesh topology, every node has a direct connection to every other node, providing the highest redundancy and fault tolerance.
Which layer of the OSI model is responsible for end-to-end communication and error recovery between hosts?