Practice Data Communication MCQs for NUST NET Engineering Test computer science — topic-wise sets with solved answers.
Q1. What is the primary function of the Physical Layer in the OSI model?
Answer: Transmission of raw bits
Explanation: The Physical Layer is responsible for transmitting raw bits over a physical medium, defining electrical and mechanical specifications.
Q2. Which protocol is used for error detection in Data Link Layer?
Answer: CRC
Explanation: Cyclic Redundancy Check (CRC) is used for error detection in Data Link Layer by calculating a checksum for data frames.
Q3. What is the maximum data rate of a noiseless channel with a bandwidth of 3000 Hz?
Answer: 6000 bps
Explanation: Using Nyquist's theorem, maximum data rate = 2 * bandwidth * log2(L), for binary (L=2), it simplifies to 2 * 3000 = 6000 bps.
Q4. In a CSMA/CD network, what happens when a collision occurs?
Answer: The station sends a jam signal
Explanation: When a collision is detected, the station sends a jam signal to notify other stations, then waits for a random time before retransmitting.
Q5. What is the purpose of the Time To Live (TTL) field in an IP packet?
Answer: To prevent packet looping
Explanation: TTL is used to limit the lifetime of a packet, preventing it from looping indefinitely in the network.
Q6. Which of the following is a characteristic of TCP?
Answer: Guaranteed delivery
Explanation: TCP provides guaranteed delivery through acknowledgments and retransmissions, making it a connection-oriented protocol.
Q7. What is the function of the ARP protocol?
Answer: To resolve IP addresses to MAC addresses
Explanation: ARP is used to resolve IP addresses to MAC addresses, enabling devices to communicate at the Data Link Layer.
Q8. In a Stop-and-Wait protocol, what is the maximum efficiency?
Answer: 1 / (1 + 2a)
Explanation: The efficiency of Stop-and-Wait is given by 1 / (1 + 2a), where a = Tp / Tt, Tp is propagation time and Tt is transmission time.
Q9. What is the purpose of the Nagle's algorithm?
Answer: To improve TCP performance by reducing overhead
Explanation: Nagle's algorithm reduces overhead by buffering small packets and sending them in a single segment, improving TCP performance.
Q10. Which layer is responsible for routing in the OSI model?
Answer: Network Layer
Explanation: The Network Layer is responsible for routing packets between devices on different networks.
Q11. What is the primary function of the Session Layer?
Answer: To establish and manage connections
Explanation: The Session Layer establishes, manages, and terminates connections between applications. NET computer science MCQs often test this core concept.
Q12. In a Go-Back-N protocol, what happens when a packet is lost?
Answer: All packets from the lost packet onwards are retransmitted
Explanation: In Go-Back-N, when a packet is lost, all packets from the lost packet onwards are retransmitted.
Q13. What is the function of the IGMP protocol?
Answer: To manage multicast group membership
Explanation: IGMP is used to manage multicast group membership, allowing devices to join or leave multicast groups.
Q14. Which of the following is a characteristic of UDP?
Answer: Best-effort delivery
Explanation: UDP provides best-effort delivery, meaning it does not guarantee delivery or order of packets.
Q15. What is the purpose of the subnet mask?
Answer: To identify the network ID
Explanation: The subnet mask is used to determine the network ID and host ID parts of an IP address.
Q16. In a token ring network, what happens when a station receives the token?
Answer: It transmits data
Explanation: When a station receives the token, it is allowed to transmit data.
Q17. What is the function of the DNS protocol?
Answer: To resolve domain names to IP addresses
Explanation: DNS is used to resolve domain names to IP addresses, enabling devices to communicate using easy-to-remember names.
Q18. Which layer is responsible for providing flow control in the OSI model?
Answer: Transport Layer
Explanation: The Transport Layer is responsible for providing flow control, ensuring that data is transmitted at a rate that the receiver can handle.
Q19. What is the purpose of the ACK flag in TCP?
Answer: To acknowledge received data
Explanation: The ACK flag is used to acknowledge received data, ensuring reliable data transfer.
Q20. In a sliding window protocol, what is the purpose of the window size?
Answer: To determine the number of packets that can be sent before an ACK is received
Explanation: The window size determines the number of packets that can be sent before an ACK is received, improving efficiency.
Loading...