All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 09 · MOCK TEST

Mock 7 – Transport Layer: TCP & UDP (Part 1)

Unit 9: Data Communication and Computer Networks · 16 questions · about 19 minutes. Press End Mock any time to see your score and the correct answers.

All 13 topic-wise mocks in this unit
0 / 16 answered 00:00
Q1. Which of the following is/are true for UDP protocol?
A. It is called Uniform Data Protocol
B. It is called User Datagram Protocol
C. It belongs to Transport Layer
D. It belongs to Network Layer
Choose the correct answer from the options given below:
Q2. Match List - I with List - II.
List - IList - II
A. SMTPI. Network layer
B. UDPII. Transport layer
C. EthernetIII. Application layer
D. IPIV. Data Link layer
Choose the correct answer from the options given below:
Q3. CB84000D001C001C is the content of a UDP header in hexadecimal format. The source port number is
Q4. The packet sent by a node to the source to inform it of congestion is called
Q5. Sequence the following stages of the sliding window protocol for flow control.
A. Sender moves the window to the next set of frames.
B. Sender sends a window of frames.
C. Receiver acknowledges the received frames.
D. If acknowledgment is not received, sender retransmits the frame.
Choose the correct answer from the options given below:
Q6. Consider the three-way handshake during TCP connection establishment between hosts A and B. Let S and R be the random 32-bit initial sequence numbers chosen by A and B respectively. A sends a TCP segment with SYN = 1, SEQ = S and ACK bit = 0, and B accepts the connection request. Which of the following represents the information in the TCP header sent by B to A?
Q7. Which of the following is NOT a field in the TCP header?
Q8. The work done by UDP is/are:
(A) Congestion control
(B) Flow control
(C) Retransmission
(D) Segment transmission
Choose the correct answer from the options given below:
Q9. A TCP server application is programmed to listen on port P on host S. A TCP client is connected to the server over the network. While the TCP connection is active, the server crashes and reboots. Assume the client does not use the TCP keepalive timer. Which of the following behaviours is/are possible?
Statement I: The TCP server application on S can listen on P after reboot.
Statement II: If the client sends a packet after the server reboot, it will receive an RST segment.
Q10. Services provided by the Point-to-Point Protocol (PPP):
A. Frame format
B. Establishment of the link
C. Flow control
D. Sequence numbering
E. Authentication
Choose the correct answer from the options given below:
Q11. IP is responsible for ______ communication while TCP is responsible for ______ communication.
Q12. A computer on a 10 Mbps network is regulated by a token bucket. The token bucket is filled at a rate of 2 Mbps. It is initially filled to capacity with 16 megabits. What is the maximum duration for which the computer can transmit at the full 10 Mbps?
Q13. A TCP server listens on port P on host S, and a client is connected to it. While the connection is active the server crashes and reboots. The client does not use the TCP keepalive timer. Which behaviour is possible?
Statement I: If the client is waiting to receive a packet, it may wait indefinitely.
Statement II: If the client sends a packet after the server reboots, it will receive a FIN segment.

Directions (Q36–40): A 3000 km long trunk operates at 1.536 Mbps and is used to transmit 64-byte frames using a sliding window protocol. The propagation delay is 6 μs/km.

Q14. The minimum number of bits required in the sequence number field of the packet is

Directions (Q36–40): A 3000 km long trunk operates at 1.536 Mbps and is used to transmit 64-byte frames using a sliding window protocol. The propagation delay is 6 μs/km.

Q15. The sender window size to get the maximum efficiency is

Directions (Q36–40): A 3000 km long trunk operates at 1.536 Mbps and is used to transmit 64-byte frames using a sliding window protocol. The propagation delay is 6 μs/km.

Q16. If only 6 bits are reserved for the sequence number field, the efficiency of the system is