





















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































Computer Networking – Midterm Exam Review (200 Questions) Topics Covered (Typical First Half)
Answer: B Rationale: The Physical Layer (Layer 1) handles bits, signaling, cabling, and connectors. Q2. What is the PDU (Protocol Data Unit) at the Data Link Layer? A) Bit B) Frame C) Packet D) Segment Answer: B Rationale: Data Link layer PDU is a frame (includes header, payload, trailer). Q3. Which OSI layer is responsible for logical addressing (IP addresses) and routing? A) Data Link B) Physical C) Network D) Transport Answer: C Rationale: The Network Layer (Layer 3) handles logical addressing and packet forwarding. Q4. The TCP/IP model has how many layers? A) 4 layers B) 5 layers C) 7 layers D) 3 layers
Q8. What is the maximum theoretical throughput of a 1000 Mbps (1 Gbps) Ethernet link in bytes per second? A) 125 MB/s B) 1000 MB/s C) 1 GB/s D) 125 MB/s (theoretical) Answer: A Rationale: 1 Gbps ÷ 8 = 125 MB/s (theoretical; actual is less due to overhead). Q9. Which guided transmission medium is most resistant to electromagnetic interference (EMI)? A) Unshielded twisted pair (UTP) B) Shielded twisted pair (STP) C) Coaxial cable D) Fiber optic Answer: D Rationale: Fiber optic uses light, not electricity, so it is immune to EMI. Q10. Which encoding scheme uses voltage transitions to represent bits? A) NRZ B) Manchester encoding C) AMI D) 4B/5B Answer: B Rationale: Manchester encoding has a transition at every bit period, enabling clock recovery. Q11. What is the maximum length of a 10Base-T Ethernet segment? A) 100 meters
B) 185 meters C) 500 meters D) 2 kilometers Answer: A Rationale: 10Base-T (twisted pair) maximum segment length is 100 meters. Q12. A MAC address is how many bits long? A) 32 bits B) 48 bits C) 64 bits D) 128 bits Answer: B Rationale: MAC addresses are 48 bits (6 bytes), usually written in hexadecimal. Q13. What is the broadcast MAC address? A) FF:FF:FF:FF:FF:FF B) 00:00:00:00:00: C) 01:00:5E:00:00: D) 33:33:00:00:00: Answer: A Rationale: All 48 bits set to 1 is the broadcast address (for ARP, etc.). Q14. What is CSMA/CD in Ethernet? A) Carrier Sense Multiple Access with Collision Detection B) Carrier Sense Multiple Access with Collision Avoidance C) Constant Signal Multiple Access with Carrier Detection D) Carrier Sense Multiple Access with Collision Domain
Q18. What is a broadcast domain? A) Set of devices that receive a broadcast frame from any device B) Set of devices that share a collision domain C) A single switch port D) A router interface Answer: A Rationale: Routers and VLANs separate broadcast domains. Q19. What is a VLAN (Virtual Local Area Network)? A) Logical segmentation of a switch into multiple isolated broadcast domains B) A physical network segment C) A type of router D) A security protocol Answer: A Rationale: VLANs improve security and reduce broadcast traffic. Q20. What does a switch do when it receives a frame with an unknown destination MAC address? A) Floods the frame out all ports (except the receiving port) B) Drops the frame C) Sends an ARP request D) Forwards only to the router Answer: A Rationale: Unknown unicast flooding is a normal switch behavior. Q21. What is the function of ARP (Address Resolution Protocol)? A) Resolves IP address to MAC address on a local network B) Resolves MAC to IP address
C) Assigns IP addresses dynamically D) Routes packets between networks Answer: A Rationale: ARP broadcasts "Who has IP X?" to get the corresponding MAC address. Q22. What is an ARP cache? A) Table storing IP-to-MAC mappings learned via ARP B) Routing table C) DNS cache D) Switch MAC table Answer: A Rationale: ARP cache entries expire after a few minutes. Q23. What is a MAC address table in a switch? A) Maps MAC addresses to switch ports B) Maps IP to MAC C) Maps VLAN to ports D) Routing table Answer: A Rationale: Switches learn MAC addresses from source addresses in incoming frames. Q24. What is an Ethernet frame trailer? A) Frame Check Sequence (FCS) for error detection (CRC) B) Source MAC address C) Destination MAC address D) IP header
Q28. How many IPv4 addresses exist? A) Approximately 4.3 billion (2³²) B) 256 C) 65, D) 3.4×10³⁸ Answer: A Rationale: 2³² = 4,294,967,296 addresses. Q29. What is a subnet mask used for? A) Identifies which portion of an IP address is the network prefix B) Encrypts IP packets C) Assigns IP addresses D) Resolves hostnames Answer: A Rationale: Subnet mask ANDed with IP yields network address. Q30. Which class of IPv4 address has the first octet range 1–126? A) Class A B) Class B C) Class C D) Class D Answer: A Rationale: Class A: 1.0.0.0 – 126.255.255.255, default mask 255.0.0.0 (/8). Q31. Which class of IPv4 address has the first octet range 128–191? A) Class B B) Class A C) Class C D) Class D
Answer: A Rationale: Class B: 128.0.0.0 – 191.255.255.255, default mask 255.255.0.0 (/16). Q32. Which class of IPv4 address has the first octet range 192–223? A) Class C B) Class B C) Class A D) Class D Answer: A Rationale: Class C: 192.0.0.0 – 223.255.255.255, default mask 255.255.255. (/24). Q33. What is the loopback IP address? A) 127.0.0. B) 0.0.0. C) 255.255.255. D) 192.168.0. Answer: A Rationale: 127.0.0.1 is the IPv4 loopback address (tests local TCP/IP stack). Q34. What is the network address for 192.168.1.100 with subnet mask 255.255.255.0? A) 192.168.1. B) 192.168.0. C) 192.168.1. D) 0.0.0. Answer: A Rationale: 192.168.1.100 & 255.255.255.0 = 192.168.1.0.
Answer: A Rationale: 255.255.0.0 has 16 leading 1's. Q39. What is the subnet mask for /28? A) 255.255.255. B) 255.255.255. C) 255.255.255. D) 255.255.255. Answer: A Rationale: /28 = 28 bits = 255.255.255.240 (4 bits for hosts, 16 addresses). Q40. How many IP addresses are in a /28 subnet? A) 16 B) 8 C) 32 D) 64 Answer: A Rationale: 2^(32-28) = 2⁴ = 16 addresses. Q41. How many usable host addresses in a /28 subnet? A) 14 B) 16 C) 15 D) 13 Answer: A Rationale: 16 total minus network and broadcast = 14 usable.
Q42. What is the private IP address range for Class A? A) 10.0.0.0 – 10.255.255.255 (10.0.0.0/8) B) 172.16.0.0 – 172.31.255. C) 192.168.0.0 – 192.168.255. D) 169.254.0.0 – 169.254.255. Answer: A Rationale: Private ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. Q43. What is APIPA (Automatic Private IP Addressing)? A) 169.254.0.0/16, assigned when DHCP fails B) Loopback C) Multicast D) Public IP range Answer: A Rationale: APIPA allows link-local communication without DHCP. Q44. What is VLSM (Variable Length Subnet Mask)? A) Using different subnet masks within the same network B) Fixed subnet masks C) Classful addressing D) No subnetting Answer: A Rationale: VLSM enables efficient address allocation. Q45. What is CIDR (Classless Inter-Domain Routing)? A) Variable-length prefixes (e.g., /23, /27) anywhere, enabling route aggregation B) Fixed class-based masks
Answer: A Rationale: PAT is used in home routers (masquerading). Q49. What is a static NAT? A) One-to-one mapping between a private IP and a public IP B) Many-to-one using ports C) Dynamic mapping D) No translation Answer: A Rationale: Static NAT is used for servers needing inbound access. Q50. What is a default route? A) Route used when no specific route matches (0.0.0.0/0) B) Static route C) Dynamic route D) Host route Answer: A Rationale: Default gateway is a default route. Q51. What is a routing table? A) Database of routes (destination, next hop, interface, metric) B) ARP cache C) MAC table D) DNS cache Answer: A Rationale: Routers and hosts maintain routing tables.
Q52. What is a static route? A) Manually configured route (does not adapt to failures) B) Dynamically learned route C) Default route D) Host route Answer: A Rationale: Static routes are simple but not fault-tolerant. Q53. Which protocol provides dynamic IP address configuration? A) DHCP (Dynamic Host Configuration Protocol) B) DNS C) ARP D) ICMP Answer: A Rationale: DHCP automates IP assignment. Q54. What are the four steps of DHCP? A) Discover, Offer, Request, Acknowledge (DORA) B) SYN, SYN-ACK, ACK C) Request, Grant, Use, Release D) Open, Send, Receive, Close Answer: A Rationale: DORA: client broadcasts Discover, server Offers, client Requests, server Acknowledges. Q55. What is a DHCP lease? A) Time a client can use an IP address before renewing B) Reservation
Answer: A Rationale: ping sends ICMP Echo Request and waits for Echo Reply. Q59. What is the difference between TCP and UDP? A) TCP is connection-oriented, reliable; UDP is connectionless, unreliable B) UDP is reliable; TCP is unreliable C) Both are connectionless D) Both are reliable Answer: A Rationale: TCP provides sequencing, ACKs, retransmission; UDP does not. Q60. Which transport layer protocol is used by HTTP? A) TCP B) UDP C) Both D) Neither Answer: A Rationale: HTTP requires reliable delivery, so it uses TCP port 80. Q61. Which transport layer protocol is used by DNS? A) UDP (mostly) and TCP (for large responses) B) TCP only C) UDP only D) Neither Answer: A Rationale: DNS uses UDP port 53 for queries; TCP for zone transfers and large responses.
Q62. Which transport layer protocol is used by DHCP? A) UDP B) TCP C) Both D) Neither Answer: A Rationale: DHCP uses UDP (client port 68, server port 67). Q63. Which transport layer protocol is used by TFTP? A) UDP port 69 B) TCP port 69 C) UDP port 21 D) TCP port 20 Answer: A Rationale: TFTP (Trivial File Transfer Protocol) uses UDP. Q64. A TCP segment header contains which fields? A) Source port, destination port, sequence number, ACK number, flags, window, checksum B) Only source and destination ports C) Only sequence number D) Only flags Answer: A Rationale: TCP header is 20–60 bytes with multiple control fields. Q65. What is the TCP three-way handshake? A) SYN, SYN-ACK, ACK B) SYN, ACK, FIN