












































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 – Final Exam Review (200 Questions) Topics Covered (Full Semester)
Q2. What is the PDU (Protocol Data Unit) at the Transport Layer? A) Frame B) Packet C) Segment (TCP) or Datagram (UDP) D) Bit Answer: C Rationale: Transport layer PDU is segment for TCP, datagram for UDP. Q3. Which OSI layer provides end-to-end error recovery and flow control? A) Network B) Data Link C) Transport D) Session Answer: C Rationale: Transport layer (TCP) provides reliable, ordered, error-checked delivery. Q4. The TCP/IP model combines which OSI layers into the "Application Layer"? A) Application, Presentation, Session B) Physical, Data Link C) Network, Transport D) Session, Transport Answer: A Rationale: TCP/IP Application Layer handles session, presentation, and application functions. Q5. What is encapsulation in networking? A) Adding headers (and trailers) as data moves down the protocol stack B) Removing headers as data moves up C) Encrypting data D) Compressing data Answer: A Rationale: Encapsulation wraps data with layer-specific headers.
Q10. What is the main purpose of the Data Link Layer's Media Access Control (MAC) sublayer? A) Determine which device transmits on a shared medium B) Route packets across networks C) Establish end-to-end connections D) Format application data Answer: A Rationale: MAC protocols (CSMA/CD, CSMA/CA) coordinate access to shared media. Q11. A MAC address is how many bits? 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 hex (e.g., 00:1A:2B:3C:4D:5E). Q12. Which Ethernet standard uses twisted pair cabling and RJ-45 connectors? A) 10Base2 (thinnet) B) 10Base5 (thicknet) C) 10Base-T D) 1000Base-SX Answer: C Rationale: Base-T variants use twisted pair; Base-F uses fiber; Base-2/5 use coaxial. Q13. What is CSMA/CD? 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 Answer: A Rationale: CSMA/CD is used in Ethernet (originally for half-duplex, now mostly full-duplex).
Q14. CSMA/CA is used primarily in: A) Wireless networks (Wi-Fi) B) Wired Ethernet C) Fiber optic networks D) Token Ring Answer: A Rationale: CSMA/CA avoids collisions via RTS/CTS and random backoff. Q15. What is the function of a network switch? A) Forward frames based on MAC address B) Forward packets based on IP address C) Connect different network types D) Amplify signals Answer: A Rationale: Switches operate at Layer 2, learning MAC addresses to forward only to the correct port. Q16. 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 firewall Answer: A Rationale: VLANs improve security and reduce broadcast traffic. Q17. Which protocol resolves IP addresses to MAC addresses? A) DNS B) ARP (Address Resolution Protocol) C) DHCP D) ICMP Answer: B Rationale: ARP broadcasts "Who has IP X?" to get MAC address.
Q22. Which class of IPv4 address has the first octet range 192–223? A) Class A B) Class B C) Class C D) Class D Answer: C Rationale: Class C: 192.0.0.0 – 223.255.255.255, default subnet mask 255.255.255.0. Q23. IPv4 addresses are exhausted. What is the primary replacement? A) IPv B) Classless Inter-Domain Routing (CIDR) C) NAT D) DHCP Answer: A Rationale: IPv6 provides 128-bit address space (3.4×10³⁸ addresses). Q24. What is a subnet mask? A) Identifies which portion of an IP address is the network prefix B) Encryption key C) Default gateway D) DNS server Answer: A Rationale: Subnet mask (e.g., 255.255.255.0) ANDed with IP yields network address. Q25. Given IP 192.168.1.100 with subnet mask 255.255.255.0, what is the network address? 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.
Q26. What is CIDR notation for subnet mask 255.255.255.0? A) / B) / C) / D) / Answer: A Rationale: /24 means 24 leading 1's in subnet mask. Q27. What is a default gateway? A) The router that forwards traffic from a local network to other networks B) A DNS server C) A DHCP server D) A switch Answer: A Rationale: Default gateway is the next-hop router for out-of-subnet traffic. Q28. What is NAT (Network Address Translation)? A) Translating private IP addresses to a public IP for internet access B) Translating MAC addresses C) Encrypting IP headers D) Routing IP multicast Answer: A Rationale: NAT conserves public IPv4 addresses; used in home and enterprise routers. Q29. Which type of NAT maps multiple private IPs to a single public IP using different ports? A) PAT (Port Address Translation, or NAPT) B) Static NAT C) One-to-one NAT D) Twice NAT Answer: A Rationale: PAT is also called "NAT overload."
Q34. Which routing protocol uses hop count as its metric? A) RIP (Routing Information Protocol) B) OSPF C) BGP D) EIGRP Answer: A Rationale: RIP uses hop count (max 15); OSPF uses cost (bandwidth-based). Q35. OSPF (Open Shortest Path First) is a: A) Link-state routing protocol B) Distance-vector routing protocol C) Path-vector protocol D) Static routing protocol Answer: A Rationale: OSPF uses Dijkstra's algorithm; converges quickly. Q36. BGP (Border Gateway Protocol) is used between: A) Autonomous Systems (Internet core routing) B) Within a single LAN C) Between hosts D) Between switches Answer: A Rationale: BGP is the Internet's inter-domain routing protocol. Q37. Which of the following is a distance-vector routing protocol? A) RIP B) OSPF C) IS-IS D) BGP Answer: A Rationale: RIP is distance-vector; OSPF and IS-IS are link-state; BGP is path-vector.
Q38. What is a routing loop? A) Packets cycling endlessly between routers due to inconsistent routing tables B) A physical loop in cabling C) A loopback interface D) A traceroute result Answer: A Rationale: Routing loops are prevented by TTL (time-to-live) and split horizon. Q39. What does TTL (Time to Live) do in an IP packet? A) Decremented each hop; packet discarded when reaches 0 to prevent infinite loops B) Encrypts the packet C) Sets priority D) Indicates packet size Answer: A Rationale: TTL starts at 32–255; traceroute uses TTL exhaustion. Q40. Which protocol is used by ping and traceroute? A) ICMP (Internet Control Message Protocol) B) TCP C) UDP D) ARP Answer: A Rationale: ICMP Echo Request/Reply (ping) and Time Exceeded (traceroute). Q41. 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, acknowledgments, retransmission, flow control.
Q46. What does the TCP sequence number do? A) Orders bytes in the stream and detects duplicates B) Encrypts data C) Identifies the application D) Sets the window size Answer: A Rationale: Sequence numbers enable reliable, in-order delivery. Q47. TCP flow control uses which mechanism? A) Sliding window (advertised receiver window) B) Congestion window C) Retransmission timeout D) Fast retransmit Answer: A Rationale: Receiver's advertised window prevents buffer overflow. Q48. TCP congestion control includes which algorithms? A) Slow start, congestion avoidance, fast retransmit, fast recovery B) Only slow start C) Only congestion avoidance D) Only fast retransmit Answer: A Rationale: These mechanisms prevent network collapse. Q49. What is the maximum segment size (MSS) for TCP? A) Maximum payload in a TCP segment (typically 1460 bytes over Ethernet) B) Maximum total segment size including headers C) Window size D) Sequence number range Answer: A Rationale: MSS = MTU – IP header – TCP header (e.g., 1500 – 20 – 20 = 1460).
Q50. What is a TCP port? A) 16-bit number identifying the sending/receiving application B) IP address extension C) MAC address D) Router interface Answer: A Rationale: Ports (0–65535) allow multiplexing of multiple applications. Q51. Which port numbers are considered "well-known"? A) 0– 1023 B) 1024– 49151 C) 49152– 65535 D) 1– 255 Answer: A Rationale: Ports 0–1023 are assigned to common services (e.g., HTTP=80, HTTPS=443, SSH=22). Q52. HTTP uses port ____ by default. A) 80 B) 443 C) 8080 D) 25 Answer: A Rationale: HTTP = 80; HTTPS = 443. Q53. HTTPS uses port ____ by default. A) 443 B) 80 C) 22 D) 143 Answer: A Rationale: HTTPS is HTTP over TLS/SSL.
Q58. What is a URL? A) Uniform Resource Locator (e.g., https://www.example.com:8080/path) B) User Reference Language C) Universal Routing Label D) Unique Record Locator Answer: A Rationale: URL includes protocol, host, port, path, query. Q59. What is DNS primarily used for? A) Translating domain names to IP addresses B) Assigning IP addresses dynamically C) Routing packets D) Encrypting email Answer: A Rationale: DNS (Domain Name System) is the Internet's phonebook. Q60. What is a DNS resolver? A) Client-side software that queries DNS servers B) Authoritative name server C) Root name server D) TLD name server Answer: A Rationale: Resolvers (usually in OS or router) handle recursive queries. Q61. Which record type maps a domain to an IPv4 address? A) A record B) AAAA record C) CNAME record D) MX record Answer: A Rationale: A = IPv4; AAAA = IPv6.
Q62. Which DNS record type provides mail server information? A) MX (Mail Exchange) B) A C) CNAME D) PTR Answer: A Rationale: MX records point to email servers with priority values. Q63. What is a CNAME record? A) Canonical name (alias for another domain) B) IP address C) Mail server D) Name server Answer: A Rationale: CNAME creates aliases (e.g., www → example.com). Q64. What is a DNS zone? A) A portion of the DNS namespace managed by a specific organization B) A physical server C) A TLD D) A root server Answer: A Rationale: Zones delegate authority for subdomains. Q65. What is DNS caching? A) Storing DNS query results temporarily to reduce latency and load B) Deleting DNS records C) Encrypting DNS queries D) Routing DNS traffic Answer: A Rationale: Caching occurs at resolvers and browsers; TTL controls duration.
Q70. FTP uses which ports for control and data? A) Control: 21, Data: 20 (active mode) B) Control: 20, Data: 21 C) Both on 80 D) Both on 443 Answer: A Rationale: Control (commands) on 21; data (file content) on 20 in active mode. Q71. What is TFTP? A) Trivial File Transfer Protocol (UDP port 69, no authentication) B) TCP-based secure FTP C) HTTP-based file transfer D) Encrypted FTP Answer: A Rationale: TFTP is used for diskless boot, router config backups. Q72. What is SSH used for? A) Secure remote shell and file transfer (SFTP) B) Web browsing C) Email D) DNS Answer: A Rationale: SSH (port 22) replaces Telnet with encryption and authentication. Q73. What is Telnet? A) Unencrypted remote terminal protocol (insecure) B) Secure shell C) File transfer D) Email protocol Answer: A Rationale: Telnet sends credentials in plaintext; replaced by SSH.
Q74. What is a socket in networking? A) Endpoint of a connection identified by IP address + port number B) A physical connector C) A protocol D) A routing table Answer: A Rationale: Sockets are the API for network communication (e.g., TCP socket). Q75. What is the difference between a socket and a port? A) Socket = IP:Port; Port = number alone B) Same thing C) Port = IP:Port D) Socket = number only Answer: A Rationale: A socket uniquely identifies an endpoint (IP+port). Q76. What is a firewall? A) Device that filters traffic based on rules (IP, port, protocol, state) B) A router C) A switch D) A hub Answer: A Rationale: Firewalls can be hardware, software, or cloud-based. Q77. What is a stateful firewall? A) Tracks connection state (NEW, ESTABLISHED, RELATED) B) Filters only individual packets C) Only inspects application layer D) Only blocks ICMP Answer: A Rationale: Stateful firewalls improve security by understanding connection context.