TCP MCQ Quiz in தமிழ் - Objective Question with Answer for TCP - இலவச PDF ஐப் பதிவிறக்கவும்

Last updated on Mar 19, 2025

பெறு TCP பதில்கள் மற்றும் விரிவான தீர்வுகளுடன் கூடிய பல தேர்வு கேள்விகள் (MCQ வினாடிவினா). இவற்றை இலவசமாகப் பதிவிறக்கவும் TCP MCQ வினாடி வினா Pdf மற்றும் வங்கி, SSC, ரயில்வே, UPSC, மாநில PSC போன்ற உங்களின் வரவிருக்கும் தேர்வுகளுக்குத் தயாராகுங்கள்.

Latest TCP MCQ Objective Questions

Top TCP MCQ Objective Questions

TCP Question 1:

The TCP/IP model does not have ____ and _____ layers but _____ layer include required functions of these layers.

  1. Session, Application, Presentation

  2. Presentation, Application, Session 
  3. Session, Presentation, Application
  4. Link, Internet, Transport

Answer (Detailed Solution Below)

Option 3 : Session, Presentation, Application

TCP Question 1 Detailed Solution

RFC 1122

TCP/IP Model

OSI Layer

Application layer

Application Layer

Session Layer

Presentation Layer

Transport Layer

Transport Layer

Internet Layer

Network Layer

     Link Layer

Data Link Layer

Physical Layer


Application Layer of TCP/IP corresponds to the Application layer, Session layer, the Presentation layer of OSI.

Therefore, the TCP/IP model does not have Session and  Presentation layers but the Application layer includes the required functions of these layers.

TCP Question 2:

Consider a receiver in a sliding window protocol uses of 6 bits window length. What is the sequence number of one hundred and eighty frame?

Assume Sequence number starts with 0 with SR as a sliding window protocol.

Answer (Detailed Solution Below) 51

TCP Question 2 Detailed Solution

Concept:

In a sliding window protocol,

window size of sender = Ws = 26 bits = 64

window size of sender = window size of receiver

Calculation:

∴ Ws +Wr   =  n

Ws = Wr

∴ 2Ws    =  

∴ n = 2 × 64  =  128

1st frame → 0 (sequence number)

128th frame → 127

129th frame → 0

180th frame → 51

TCP Question 3:

Which of the following is not a field in TCP header ? 

  1. Sequence Number 
  2. Checksum 
  3. Fregmentation offset  
  4. Window size 

Answer (Detailed Solution Below)

Option 3 : Fregmentation offset  

TCP Question 3 Detailed Solution

The correct answer is Fregmentation offset

Key Points

  • Fragmentation Offset:
    • This is not a field in the TCP header; rather, it is a field in the IP header. The IP protocol allows large packets to be fragmented into smaller fragments for transmission over networks with smaller Maximum Transmission Unit (MTU) sizes.
    • The fragmentation offset field in the IP header indicates the position of a fragment in the original, unfragmented packet.

Additional Information

  • Sequence Number:
    • This field in the TCP header is used to identify the order of the bytes sent in a TCP connection. It is crucial for ensuring that the data is received in the correct order and for handling retransmissions.
  • Checksum:
    • The checksum field in the TCP header is used for error-checking purposes. It helps verify the integrity of the TCP header and data. The sender calculates the checksum based on the contents of the TCP header and data, and the receiver verifies it to detect any transmission errors.
  • Window Size:
    • The window size field in the TCP header is used to manage flow control in a TCP connection. It indicates the amount of data, in bytes, that can be sent by the sender before an acknowledgment is required from the receiver. Adjusting the window size allows for efficient data transfer and congestion control.

TCP Question 4:

State whether the following statements are true or false.

(i) FTP is primarily designed for large file transfers with the ability to resume downloads after a download has been interrupted.

(ii) TCP establishes a connection at both ends before any data can flow.

  1. a) (i) - True, (ii) - False
  2. b)(i) - True, (ii) - True
  3. c) (i) - False, (ii) - True
  4. d) (i) - False, (ii) - False

Answer (Detailed Solution Below)

Option 2 : b)(i) - True, (ii) - True

TCP Question 4 Detailed Solution

Key Points

 Option 1: FTP is primarily designed for large file transfers with the ability to resume downloads after a download has been interrupted.

True, FTP is a TCP/IP protocol that transfers files between FTP servers and clients. FTP was designed specifically for transferring large files. All you need to do to start using the protocol is an FTP client. The good thing about FTP is that what it lacks in security it makes up for with its file management capabilities. File transfer protocol is a way to download, upload, and transfer files from one location to another on the internet and between computer systems.

Option 2: TCP establishes a connection at both ends before any data can flow.

True, TCP uses a three-way handshake to establish a reliable connection. The connection is full-duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. It establishes a connection at both ends before any data can flow. The exchange of these four flags is performed in three steps—SYN, SYN-ACK, and ACK.

6156fa78fc1866265d01b217 16345822853521

Hence the correct answer is (i) - True, (ii) - True.

TCP Question 5:

Consider the three-way handshake mechanism followed during TCP connection establishment between hosts P and Q. Let X and Y be two random 32-bit starting sequence numbers chosen by P and Q respectively. Suppose P sends a TCP connection request message to Q with a TCP segment having SYN bit = 1, SEQ number = X, and ACK bit = 0. Suppose Q accepts the connection request. Which one of the following choices represents the information present in the TCP segment header that is sent by Q to P?

  1. SYN bit = 0, SEQ number = X + 1, ACK bit = 0, ACK number = Y, FIN bit = 1
  2. SYN bit = 1, SEQ number = X + 1, ACK bit = 0, ACK number = Y, FIN bit = 0
  3. SYN bit = 1, SEQ number = Y, ACK bit = 1, ACK number = X, FIN bit = 0
  4. SYN bit = 1, SEQ number = Y, ACK bit = 1, ACK number = X + 1, FIN bit = 0

Answer (Detailed Solution Below)

Option 4 : SYN bit = 1, SEQ number = Y, ACK bit = 1, ACK number = X + 1, FIN bit = 0

TCP Question 5 Detailed Solution

Answer: Option 4

Concept

  • In TCP, for Connection Establishment 3-way handshake protocol is used.
  • FIN bit : FIN bit is set while terminating the connection.
  • Syn bit : Syn bit is used for initiating the request for connection establishment.
  • Ack bit : Ack bit is used for indicating that the segment contains the acknowledgment.
  • Sequence Number : In TCP , Sequence number used for counting each byte transferred in a particular connection and in each Segment Header, Sequence number field contains the Sequence number of first byte of data part of the Segment.
  • Ack Number: In TCP , Ack number indicates the Sequence number of Byte expected next.

Explanation:

GIven

F1 Shraddha Raju 17.03.2021 D14

Next segment will be a piggybacked Acknowledgement segment So Ack bit = 1 and  Q will increment the Sequence number ( which it received from P) put this into Ack Number field. Syn = 1 as Q will also establish the connection from Q to P and Sequence number will be Y(As given in Question).

F1 Shraddha Raju 17.03.2021 D15

So , SYN bit = 1 SEQ Number = Y ACK bit = 1 ACK number = X+1 FIN bit = 0. Matches with Option 4.​

TCP Question 6:

In TCP/IP, which layer is between the Transport layer and the Link Layer?

  1. Application layer
  2. Transport layer
  3. Link layer
  4. Network layer
  5. Session layer

Answer (Detailed Solution Below)

Option 4 : Network layer

TCP Question 6 Detailed Solution

The correct answer is Network layer.

Important Points

  • The Network layer is the third layer in the open system interconnection (OSI) model and is responsible for the host to host communication over a network.

Additional Information

  • The Transmission Control Protocol (TCP) is the most common form of connection-oriented transmission today. The connections are identified and tracked using port numbers that range between 0 and 65,535. One useful benefit of TCP is that it uses a positive acknowledgment with retransmission technique where the receiving device must respond back to the sender that it indeed received the data it was sent.

TCP Question 7:

Suppose a TCP message that contains 1024 bytes of user data and 20 bytes of TCP header is passed to IP for delivery across to network of the internet. The first network uses MTU 512 bytes and second network uses MTU 256 bytes. Each network’s MTU gives the size of largest IP datagram that can be carried in a link layer frame. Assume all IP headers are 20 bytes. How many fragments are received by destination and what will be the offset of 5th fragment?

  1. Fragment = 8
  2. offset = 116
  3. offset = 87
  4. fragments = 5

Answer (Detailed Solution Below)

Option :

TCP Question 7 Detailed Solution

Data:

TCP message contains 1024 bytes of data

TCP header = 20 bytes

Total TCP segment length = 1024 + 20 = 1044 Bytes

Payload length from 0 to 1043.

CASE1:

First network uses MTU of 512 bytes.

IP payload = 512 – 20 = 492 bytes

492 is not a multiple of 8. So, we will take 488.

So, first fragment will go from 0 to 487

Second from 488 to 975.

Third fragment from 976 to 1043.

Since MTU of other networks is less it is the bottleneck.

CASE 2:

MTU size = 256 bytes

Payload length = 256 – 20 = 236 bytes

We will consider 232, because 236 is not a multiple of 8.

1st fragment from 0 to 231

2nd fragment from 232 to 463

3rd fragment from 464 to 695

4th fragment from 696 to 927

5th fragment from 928 to 1043

So, total 5 fragments are required.

Offset value of 5th fragment = 928 ÷  8 = 116

TCP Question 8:

Consider a TCP session for which the bandwidth is 4 Gbps. TCP session starts with a hexadecimal number BCAF. What is the minimum time in seconds before BCAF sequence number can be used again?

Answer (Detailed Solution Below) 8 - 9

TCP Question 8 Detailed Solution

4 Gbps → 1 second

\(1b \to \frac{1}{{4 \times {{10}^9}\;}}\;seconds\)

\(\frac{1}{8}\;B \to \frac{1}{{500 \times {{10}^6}\;}}\;seconds\)

\(1 \; B \rightarrow \frac{8}{{4 \times {{10}^9}\;}}\;seconds\)

Sequence number = 32 bits

\({2^{32}}\;B \rightarrow \frac{8 \times 2^{32}}{{4 \times {{10}^9}\;}}\;seconds\)

\({2^{32}}B \to 8.5899\;seconds\)

The minimum time before this sequence number can be used again is 8.5899  ≈ 9 seconds

TCP Question 9:

The followings are names of data unit in each layer. Which choice is not a correct match?

  1. Segments : Transport layer
  2. Frames : Network layer
  3. Bits : Physical layer
  4. Messages : Presentation layer
  5. Message : Application layer

Answer (Detailed Solution Below)

Option 2 : Frames : Network layer

TCP Question 9 Detailed Solution

In the OSI-reference model, the networking system is decided into 7 layers.

Each layer has its own data unit in which they communicate.

 

Layers

Data unit

1.

Physical layer

Bits

2.

Data link layer

Frames

3.

Network layer

Packet

4.

Transport layer

Segment

5.

Session layer

Messages

6.

Presentation layer

Messages

7.

Application layer

Messages

TCP Question 10:

Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIX socket API.

  1. listen, accept, bind, recv
  2. bind, listen, accept, recv
  3. bind, accept, listen, recv
  4. accept, listen, bind, recv

Answer (Detailed Solution Below)

Option 2 : bind, listen, accept, recv

TCP Question 10 Detailed Solution

F1 R.S Deepak 11.01.2020 D 1

BIND:

bind () function call binds a unique local name to the socket with descriptor socket. After calling socket (), a descriptor does not have a name associated with it.

LISTEN:

It causes a bound TCP socket to enter the listening state. It waits for the connections to socket.

ACCEPT:

It accepts a connection on a socket.

RECV:

It is used to read incoming data on connection-oriented sockets or connectionless sockets.

Get Free Access Now
Hot Links: teen patti master king teen patti pro teen patti club teen patti club apk