Data Communication MCQs set 3 for NTS NAT-ICS (Computer Science Track) computer science — 20 solved questions.
Q1. In a Stop-and-Wait protocol, what happens when a packet is lost?
Answer: Sender retransmits
Explanation: In Stop-and-Wait, the sender retransmits the packet if it doesn't receive an ACK within a certain time frame.
Q2. What is the purpose of the Time To Live (TTL) field in IP packets?
Answer: Preventing infinite loops
Explanation: TTL prevents packets from circulating indefinitely by decrementing the value at each hop until it reaches 0.
Q3. What is the primary difference between half-duplex and full-duplex communication?
Answer: Transmission direction
Explanation: Half-duplex allows transmission in both directions, but not simultaneously, while full-duplex allows simultaneous transmission.
Q4. What is the primary advantage of using UDP over TCP?
Answer: Lower overhead
Explanation: UDP has lower overhead due to its connectionless nature and lack of acknowledgment mechanisms.
Q5. Which protocol is used for dynamically assigning IP addresses?
Answer: DHCP
Explanation: DHCP dynamically assigns IP addresses to devices on a network, simplifying network configuration.
Q6. What is the primary function of the DNS protocol?
Answer: Resolving domain names to IP
Explanation: DNS resolves domain names to IP addresses, enabling users to access websites using easy-to-remember names.
Q7. In a network, what is the purpose of the default gateway?
Answer: Routing packets outside the network
Explanation: The default gateway routes packets from a local network to external networks, such as the internet.
Q8. What is the primary purpose of the ICMP protocol?
Answer: Error reporting
Explanation: ICMP is used for error reporting and diagnostic functions, such as ping and traceroute.
Q9. Which of the following is a type of transmission media?
Answer: Coaxial cable
Explanation: Coaxial cable is a type of transmission media used for carrying data signals.
Q10. Which protocol is used for error detection in Data Communication?
Answer: CRC
Explanation: CRC (Cyclic Redundancy Check) is a protocol used for error detection by calculating a checksum for data packets.
Q11. What is the function of the Presentation Layer in the OSI model?
Answer: Data compression and encryption
Explanation: The Presentation Layer is responsible for data compression, encryption, and formatting. NET computer science MCQs often test this core concept.
Q12. In a network, what is the primary function of a bridge?
Answer: Segmenting a network into smaller sub-networks
Explanation: A bridge segments a network into smaller sub-networks, improving performance and reducing collisions.
Q13. A packet is transmitted from a sender to a receiver with a propagation delay of 50 ms and transmission delay of 20 ms. What is the total delay?
Answer: 70 ms
Explanation: Total delay = propagation delay + transmission delay = 50 ms + 20 ms = 70 ms.
Q14. What is the primary advantage of using a hub in a network?
Answer: Simplified network topology
Explanation: A hub simplifies network topology by connecting multiple devices to a single point.
Q15. What is the function of the Data Link Layer in the OSI model?
Answer: Error detection and correction
Explanation: The Data Link Layer is responsible for error detection and correction, as well as framing and flow control.
Q16. A channel has a data rate of 1000 bps and a packet size of 1000 bits. What is the transmission delay?
Answer: 1 s
Explanation: Transmission delay = packet size / data rate = 1000 bits / 1000 bps = 1 s.
Q17. What is the primary disadvantage of using a bus topology?
Answer: Single point of failure
Explanation: A bus topology has a single point of failure, as a break in the backbone cable can bring down the entire network.
Q18. In a network, what is the primary function of a router?
Answer: Routing data between nodes
Explanation: A router routes data between nodes, connecting multiple networks and determining the best path.
Q19. What is the purpose of the SYN flag in TCP?
Answer: To establish a connection
Explanation: The SYN flag is used to establish a connection, initiating the three-way handshake.
Q20. What is the primary advantage of using a ring topology?
Answer: Improved fault tolerance
Explanation: A ring topology can be made fault-tolerant by using a dual-ring configuration, allowing data to be transmitted in both directions.