Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Data Link LayerEasy
Q1. What is a MAC address?
- A.A port number for applications
- B.A physical address burned into a NIC✓ Correct
- C.An IP address used for routing
- D.A logical address assigned by software
Explanation
A MAC (Media Access Control) address is a 48-bit physical address burned into the network interface card (NIC) by the manufacturer.
Report an error in this question
Data Link LayerEasy
Q2. Which error detection method appends a calculated value at the end of the data?
- A.All of the above✓ Correct
- B.Parity check only
- C.Hamming code only
- D.CRC method only
Explanation
All three methods (parity check, CRC, and Hamming code) append redundant bits at the end of data for error detection or correction.
Report an error in this question
Data Link LayerEasy
Q3. How many bits are in a MAC address?
- A.32 bits
- B.48 bits✓ Correct
- C.128 bits
- D.64 bits
Explanation
A MAC address is 48 bits (6 bytes) long, typically represented as six pairs of hexadecimal digits (e.g., AA:BB:CC:DD:EE:FF).
Report an error in this question
Data Link LayerEasy
Q4. What is the main function of the data link layer?
- A.Node-to-node delivery of frames✓ Correct
- B.Routing packets between networks
- C.Physical signal encoding
- D.End-to-end message delivery
Explanation
The data link layer is responsible for node-to-node (hop-to-hop) delivery of frames between directly connected devices.
Report an error in this question
Data Link LayerEasy
Q5. What does CSMA/CD stand for?
- A.Carrier Sense Media Access with Collision Detection
- B.Central Station Multiple Access with Collision Detection
- C.Carrier Sense Multiple Access with Collision Detection✓ Correct
- D.Carrier Signal Multiple Access with Collision Division
Explanation
CSMA/CD stands for Carrier Sense Multiple Access with Collision Detection. It is the access method used in traditional Ethernet networks.
Report an error in this question
Data Link LayerEasy
Q6. Which sublayer of the data link layer controls access to the shared medium?
- A.Physical sublayer
- B.Network sublayer
- C.LLC sublayer
- D.MAC sublayer✓ Correct
Explanation
The MAC sublayer controls how devices share access to the transmission medium. It defines protocols like CSMA/CD and token passing.
Report an error in this question
Data Link LayerEasy
Q7. What is framing in the data link layer?
- A.Assigning IP addresses to each host
- B.Dividing data into units called frames✓ Correct
- C.Converting digital signals to analog form
- D.Encrypting data for secure transfer
Explanation
Framing is the process of dividing a stream of bits from the network layer into manageable data units called frames.
Report an error in this question
Data Link LayerEasy
Q8. Simple parity check can detect which type of errors?
- A.Only even number of bit errors
- B.Only odd number of bit errors✓ Correct
- C.All types of errors in data
- D.Only burst errors in frames
Explanation
Simple (single-bit) parity check can only detect an odd number of bit errors. If an even number of bits are flipped, the error goes undetected.
Report an error in this question
Data Link LayerEasy
Q9. Which protocol is used to resolve an IP address to a MAC address?
- A.DNS
- B.RARP
- C.DHCP
- D.ARP✓ Correct
Explanation
ARP (Address Resolution Protocol) is used to map a known IP address to a MAC address on a local network.
Report an error in this question
Data Link LayerEasy
Q10. In Ethernet, what happens when a collision is detected?
- A.Data is retransmitted right away immediately
- B.The entire network shuts down completely
- C.Devices wait a random time then retransmit✓ Correct
- D.The frame is discarded permanently by all
Explanation
When a collision is detected in CSMA/CD Ethernet, the devices stop transmitting, send a jam signal, and wait a random time (backoff) before retrying.
Report an error in this question
Data Link LayerHard
Q11. If the generator polynomial for CRC is x^3 + 1, what is the binary divisor?
- A.1001✓ Correct
- B.1101
- C.1111
- D.1011
Explanation
The polynomial x^3 + 1 = x^3 + x^0 corresponds to binary 1001 (bit positions 3 and 0 are set).
Report an error in this question
Data Link LayerMedium
Q12. In Selective Repeat ARQ, what is the maximum window size if the sequence number has m bits?
- A.2^(m-1)✓ Correct
- B.2^m
- C.2^m - 1
- D.2^m + 1
Explanation
In Selective Repeat, the maximum window size for both sender and receiver is 2^(m-1) to avoid ambiguity between new and retransmitted frames.
Report an error in this question
Data Link LayerMedium
Q13. Which access method does IEEE 802.11 (Wi-Fi) use?
- A.CSMA/CD method
- B.Token passing
- C.CSMA/CA method✓ Correct
- D.FDMA technique
Explanation
IEEE 802.11 uses CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) because collision detection is impractical in wireless networks.
Report an error in this question
Data Link LayerMedium
Q14. What is the minimum frame size in standard Ethernet (IEEE 802.3)?
- A.64 bytes✓ Correct
- B.46 bytes
- C.32 bytes
- D.128 bytes
Explanation
The minimum Ethernet frame size is 64 bytes (including header and trailer). This ensures that collisions are detected before the entire frame is transmitted.
Report an error in this question
Data Link LayerMedium
Q15. What is the purpose of bit stuffing in HDLC?
- A.To prevent the flag pattern in data✓ Correct
- B.To compress the transmitted data
- C.To encrypt the frame contents
- D.To increase available bandwidth
Explanation
Bit stuffing inserts a 0 after five consecutive 1s in the data to prevent the flag pattern (01111110) from accidentally appearing within the frame content.
Report an error in this question
Data Link LayerMedium
Q16. In the Go-Back-N ARQ protocol, what happens when an error is detected in frame n?
- A.The entire connection is terminated
- B.Only frame n is retransmitted alone
- C.All frames from n onward are resent✓ Correct
- D.Frame n is skipped and ignored
Explanation
In Go-Back-N, when an error is detected in frame n, the receiver discards all subsequent frames, and the sender retransmits frame n and all following frames.
Report an error in this question
Data Link LayerMedium
Q17. What is a VLAN (Virtual LAN)?
- A.A logical group of devices on a network✓ Correct
- B.A wireless LAN using access points
- C.A LAN without any switch devices
- D.A LAN that uses virtual machine hosts
Explanation
A VLAN is a logical grouping of network devices that functions as a separate LAN segment, regardless of the physical location of the devices.
Report an error in this question
Data Link LayerMedium
Q18. What is the window size at the receiver in the Go-Back-N protocol?
- A.Same as sender window size
- B.Equal to N minus 1
- C.Always exactly 1 only✓ Correct
- D.Equal to 2^(m-1)
Explanation
In Go-Back-N, the receiver window size is always 1, meaning it can only accept frames in order. Out-of-order frames are discarded.
Report an error in this question
Data Link LayerMedium
Q19. What is the purpose of the LLC sublayer?
- A.Collision detection on the wire
- B.Signal encoding and modulation
- C.Physical addressing of devices
- D.Flow and error control for frames✓ Correct
Explanation
The LLC (Logical Link Control) sublayer provides flow control and error control services. It also provides multiplexing for network layer protocols.
Report an error in this question
Data Link LayerMedium
Q20. In the Hamming code, how many redundancy bits are needed for a 4-bit data word?
- A.3✓ Correct
- B.2
- C.5
- D.4
Explanation
Using the formula 2^r >= m + r + 1 where m=4: 2^3 = 8 >= 4 + 3 + 1 = 8. So 3 redundancy bits are needed.
Report an error in this question
Data Link LayerMedium
Q21. What is the exponential backoff algorithm used for in Ethernet?
- A.Increasing the link bandwidth
- B.Performing error correction tasks
- C.Determining wait time after collision✓ Correct
- D.Assigning MAC addresses to NICs
Explanation
The binary exponential backoff algorithm determines how long a station should wait before retransmitting after a collision. The wait time increases exponentially with each successive collision.
Report an error in this question
Data Link LayerHard
Q22. What is the purpose of the IEEE 802.1Q tag in Ethernet frames?
- A.Quality of Service marking
- B.VLAN identification tagging✓ Correct
- C.Frame payload encryption
- D.Error correction coding
Explanation
IEEE 802.1Q adds a 4-byte tag to Ethernet frames to identify which VLAN the frame belongs to. The tag includes a 12-bit VLAN ID field.
Report an error in this question
Data Link LayerHard
Q23. What is the difference between persistent and non-persistent CSMA?
- A.There is no functional difference between the two modes
- B.Non-persistent is significantly faster than persistent always
- C.Persistent transmits when idle; non-persistent waits randomly before sensing✓ Correct
- D.Persistent CSMA relies on a token passing mechanism
Explanation
In persistent CSMA, a station continuously senses the channel and transmits immediately when idle. In non-persistent CSMA, a station waits a random interval before sensing again if the channel is busy.
Report an error in this question
Data Link LayerHard
Q24. What is the Hamming distance needed to correct t errors?
- A.2t
- B.t + 1
- C.2t + 1✓ Correct
- D.t
Explanation
To correct t errors, the minimum Hamming distance must be 2t + 1. This ensures that even with t bit errors, the received codeword is closer to the original than any other valid codeword.
Report an error in this question
Data Link LayerHard
Q25. In the PPP (Point-to-Point Protocol) frame, what is the role of the LCP (Link Control Protocol)?
- A.Establishing and maintaining the link✓ Correct
- B.Resolving domain names for hosts
- C.Assigning IP addresses to endpoints
- D.Routing packets across the network
Explanation
LCP is responsible for establishing, configuring, maintaining, and terminating the point-to-point link. It handles authentication, compression negotiation, and link quality monitoring.
Report an error in this question
Data Link LayerHard
Q26. In Ethernet, why is there a minimum frame size requirement of 64 bytes?
- A.To reduce processing overhead on devices
- B.To support VLAN tagging in the header
- C.To maintain backward compatibility with hubs
- D.To ensure collision detection within the network✓ Correct
Explanation
The minimum frame size ensures that a frame is still being transmitted when the collision signal returns from the farthest point on the network (collision domain). This is based on the round-trip propagation delay.
Report an error in this question
Data Link LayerHard
Q27. In the HDLC protocol, what type of frame is used for flow and error control without carrying any data?
- A.U-frame
- B.P-frame
- C.I-frame
- D.S-frame✓ Correct
Explanation
S-frames (Supervisory frames) in HDLC are used for flow and error control. They carry ACK, NAK, and flow control information but no user data.
Report an error in this question
Data Link LayerHard
Q28. What is the maximum number of VLANs supported by IEEE 802.1Q?
- A.65535
- B.1024
- C.4094✓ Correct
- D.256
Explanation
IEEE 802.1Q uses a 12-bit VLAN ID field, supporting 2^12 = 4096 VLANs. VLAN 0 and 4095 are reserved, leaving 4094 usable VLANs.
Report an error in this question
Data Link LayerHard
Q29. CRC-32 used in Ethernet can detect all burst errors of length up to how many bits?
- A.32✓ Correct
- B.64
- C.24
- D.16
Explanation
CRC-32 can detect all burst errors of length 32 or fewer bits. It can also detect most burst errors longer than 32 bits with very high probability.
Report an error in this question
Data Link LayerHard
Q30. In a sliding window protocol with a window size of 7 and sequence numbers 0-7, what is the maximum sender window size in Go-Back-N?
- A.7✓ Correct
- B.8
- C.3
- D.4
Explanation
In Go-Back-N with m-bit sequence numbers (2^m = 8 here), the maximum sender window size is 2^m - 1 = 7 to prevent ambiguity.
Report an error in this question