Completed: 0/0
TCP (Transmission Control Protocol) MCQ - Transport Layer
1.
TCP operates at which OSI layer?
Network Layer
Transport Layer
Session Layer
Data Link Layer
TCP is a Transport Layer (Layer 4) protocol.
2.
TCP is classified as which type of protocol?
Connection-oriented and reliable
Connectionless and unreliable
Connectionless and reliable
Broadcast-based
TCP establishes a connection and ensures reliable delivery.
3.
Which mechanism establishes a TCP connection?
Two-way handshake
Three-way handshake
Four-way handshake
ARP process
TCP uses a 3-way handshake to establish connections.
4.
What is the correct order of the TCP 3-way handshake?
SYN → SYN-ACK → ACK
ACK → SYN → FIN
SYN → ACK → FIN
FIN → ACK → SYN
Connection setup follows SYN, SYN-ACK, then ACK.
5.
Which TCP flag is used to initiate a connection?
SYN
ACK
FIN
RST
The SYN flag is used to request a connection.
6.
Which TCP feature guarantees data delivery?
Reliable data transfer
Best-effort delivery
Broadcasting
Multicasting
TCP retransmits lost data to guarantee delivery.
7.
How does TCP ensure correct order of data?
Sequence numbers
IP addresses
MAC addresses
Port scanning
Sequence numbers help reassemble data in order.
8.
Which TCP mechanism detects lost packets?
Acknowledgments (ACK)
Checksum only
MAC filtering
ARP
Missing ACKs indicate lost segments.
9.
Which TCP feature prevents receiver overload?
Flow control
Routing
Fragmentation
Encapsulation
Flow control uses sliding window to regulate data rate.
10.
Which algorithm is used by TCP for flow control?
Sliding window
Stop-and-wait only
Flooding
Token passing
Sliding window allows efficient flow control.
11.
Which TCP feature adjusts speed during congestion?
Congestion control
Flow control
Sequencing
Encapsulation
TCP slows down transmission when congestion occurs.
12.
Which TCP flag is used to terminate a connection?
FIN
SYN
ACK
PSH
FIN indicates no more data will be sent.
13.
TCP connection termination typically uses which flags?
FIN and ACK
SYN and ACK
RST only
PSH and URG
FIN and ACK are exchanged to close a TCP session.
14.
Which application requires TCP reliability?
File download
Live video streaming
Online gaming
VoIP calls
File transfers need complete and accurate delivery.
15.
Which TCP feature is critical for online banking?
Error control
Broadcasting
Multicasting
Best-effort delivery
Error control ensures secure and accurate transactions.
16.
Which protocol is the main alternative to TCP?
UDP
ICMP
ARP
HTTP
UDP is faster but unreliable compared to TCP.
17.
What happens if a TCP segment is lost?
It is retransmitted
It is ignored
Connection is dropped immediately
Receiver repairs it
TCP retransmits lost segments to ensure reliability.
18.
Which field tracks byte order in TCP?
Sequence number
Window size
Checksum
Port number
Sequence numbers maintain correct data order.
19.
TCP congestion control primarily helps to?
Reduce network overload
Increase broadcast traffic
Speed up ARP
Eliminate routing
Congestion control avoids overwhelming the network.
20.
Which TCP feature ensures data arrives exactly once?
Reliability and acknowledgments
Best-effort delivery
Broadcasting
Multicasting
ACKs and retransmission prevent duplication or loss.
1.
Which TCP feature ensures data is delivered without loss?
Reliable data transfer
Broadcasting
Multicasting
Best-effort delivery
TCP retransmits lost packets to ensure reliable delivery.
2.
Which port number is used by HTTP over TCP?
80
21
25
443
HTTP uses TCP port 80 for communication.
3.
Which TCP flag is used to start a connection?
SYN
ACK
FIN
RST
SYN is used by the client to request a TCP connection.
4.
TCP data units at the transport layer are called?
Segments
Frames
Packets
Bits
TCP uses segments as its Protocol Data Unit (PDU).
5.
Which protocol is more reliable for file downloads?
TCP
UDP
ICMP
ARP
TCP guarantees correct and complete file delivery.
6.
Why does TCP use a three-way handshake?
To establish a reliable connection
To speed up data transfer
To reduce bandwidth
To avoid port numbers
The 3-way handshake synchronizes sequence numbers and confirms readiness.
7.
How does TCP handle network congestion?
By adjusting transmission rate
By dropping all packets
By switching to UDP
By disabling acknowledgments
TCP congestion control reduces speed when congestion is detected.
8.
What is the purpose of sequence numbers in TCP?
Ensure correct data order
Identify MAC address
Encrypt data
Control routing
Sequence numbers help reassemble data in the correct order.
9.
Which TCP mechanism prevents a fast sender from overwhelming a slow receiver?
Flow control
Routing
Fragmentation
Encapsulation
Flow control uses window size to match sender and receiver speed.
10.
Why is TCP preferred for secure transactions like online banking?
Reliable and error-controlled delivery
Faster than UDP
Uses no ports
Connectionless communication
TCP ensures data accuracy, integrity, and correct sequencing.
Congratulations!
Attempted: 0
Correct: 0
Wrong: 0
Percentage: 0%

0 Comments