☑ MCQ PRACTICE

Computer Networks Unit 4

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

📚 Computer Networks
📖 Unit 4
🎯 MCQs
Computer Networks MCQs - Unit 4

Computer Networks MCQs - Unit 4

1

The transport layer provides

A only bit transmission
B only routing
C only encryption
D end-to-end (process-to-process) communication
Correct Answer end-to-end (process-to-process) communication
2

Which of the following is a transport service primitive?

A LISTEN
B ROUTE
C STUFF
D HASH
Correct Answer LISTEN
3

A port number is

A 8 bits long
B 16 bits long
C 32 bits long
D 48 bits long
Correct Answer 16 bits long
4

A socket address consists of

A a MAC address and a cable type
B an IP address and a port number
C a URL and a file name
D a domain name only
Correct Answer an IP address and a port number
5

TCP is

A connectionless and unreliable
B connectionless and reliable
C connection-oriented and reliable
D a network layer protocol
Correct Answer connection-oriented and reliable
6

UDP is

A connectionless and unreliable
B connection-oriented and reliable
C a data link protocol
D an application protocol
Correct Answer connectionless and unreliable
7

The TCP three-way handshake consists of

A FIN, ACK and RST
B SYN, SYN+ACK and ACK
C GET, POST and PUT
D HELLO, BYE and OK
Correct Answer SYN, SYN+ACK and ACK
8

A TCP connection is released using

A a single RST only always
B no packets
C a four-way handshake (FIN and ACK in each direction)
D an ARP request
Correct Answer a four-way handshake (FIN and ACK in each direction)
9

The minimum size of the TCP header is

A 20 bytes
B 8 bytes
C 40 bytes
D 60 bytes
Correct Answer 20 bytes
10

The size of the UDP header is

A 20 bytes
B 8 bytes
C 16 bytes
D 40 bytes
Correct Answer 8 bytes
11

The UDP header contains

A source port, destination port, length and checksum
B sequence number and window size
C source address and TTL
D flags and urgent pointer
Correct Answer source port, destination port, length and checksum
12

TCP flow control is done using

A a fixed window of one byte
B a sliding window advertised by the receiver
C no window
D a router table
Correct Answer a sliding window advertised by the receiver
13

In TCP slow start, the congestion window grows

A exponentially
B linearly only
C not at all
D randomly
Correct Answer exponentially
14

The well-known port number for DNS is

A 25
B 53
C 80
D 443
Correct Answer 53
15

The well-known port number for SMTP is

A 53
B 25
C 80
D 110
Correct Answer 25
16

The well-known port number for HTTP is

A 80
B 25
C 53
D 443
Correct Answer 80
17

Which application commonly uses UDP?

A File transfer with FTP
B Web browsing over HTTP/1.1
C DNS queries
D Email delivery over SMTP
Correct Answer DNS queries
18

The problem of delayed duplicate packets during connection establishment is solved by

A parity bits
B bit stuffing
C CRC
D the three-way handshake
Correct Answer the three-way handshake
19

The two-army problem shows that

A every channel is reliable
B no connection can be made
C reliable agreement over an unreliable channel cannot be guaranteed
D UDP is always better
Correct Answer reliable agreement over an unreliable channel cannot be guaranteed
20

The retransmission timeout in TCP is based on

A the measured round-trip time
B the packet size only
C the server's name
D a fixed value of zero
Correct Answer the measured round-trip time
21

Nagle's algorithm is used to

A reduce the number of small segments sent
B increase the number of small segments
C encrypt segments
D drop all segments
Correct Answer reduce the number of small segments sent
22

The SYN flag in a TCP segment is used for

A connection release only
B data compression
C error correction
D connection establishment
Correct Answer connection establishment
23

Multiplexing at the transport layer means

A several connections can share one network address
B one connection uses several networks
C no connection is allowed
D data is encrypted
Correct Answer several connections can share one network address
24

RTP (Real-time Transport Protocol) typically runs over

A ARP
B ICMP
C Ethernet only
D UDP
Correct Answer UDP
25

TCP treats data as

A a byte stream with no message boundaries
B fixed-size messages with boundaries
C only text lines
D only images
Correct Answer a byte stream with no message boundaries

Fill in the Blanks

26 The unit of data at the transport layer in TCP is the ______.
Correct Answer segment
27 A port number is ______ bits long.
Correct Answer 16
28 A socket address is the combination of an IP address and a ______ number.
Correct Answer port
29 The TCP three-way handshake consists of SYN, SYN+ACK and ______.
Correct Answer ACK
30 The UDP header is ______ bytes long.
Correct Answer 8
31 The minimum size of the TCP header is ______ bytes.
Correct Answer 20
32 TCP flow control uses a sliding ______ advertised by the receiver.
Correct Answer window
33 In slow start, the congestion window grows ______.
Correct Answer exponentially
34 The well-known port number of HTTP is ______.
Correct Answer 80
35 The well-known port number of DNS is ______.
Correct Answer 53
36 The well-known port number of SMTP is ______.
Correct Answer 25
37 TCP is ______-oriented and reliable.
Correct Answer connection
38 UDP stands for ______ Datagram Protocol.
Correct Answer User
39 TCP stands for ______ Control Protocol.
Correct Answer Transmission
40 A TCP connection is released using a ______-way handshake.
Correct Answer four
← Back to All MCQs