CNIP Assignment 05 JanApr2024
CNIP Assignment 05 JanApr2024
QUESTION 1:
Consider the following statements.
(i) UDP is a wrapper of the IP layer.
(ii) TCP is suitable for short message transfer where reliability is not a concern.
Which of the above statement(s) is/are correct?
a) Only i
b) Only ii
c) Both i and ii
d) None of the above
QUESTION 2:
When the select() system call returns zero?
a) An error was encountered
b) Call timed out without any event ready for the sockets monitored
c) Zero is the number of sockets that have events pending (read, write, exception)
d) OS kills the process.
QUESTION 3:
When you create a socket as s = socket(domain, type, protocol), why do you set the value of the
protocol parameter as zero?
a) The system selects the default protocol number for the domain and socket type requested.
b) No protocol needed
c) Since a computer understands binary so that it can be either 0 or 1
d) None of the above
1
NPTEL Online Certification Courses
Explanation: Setting the protocol parameter to zero is a way of indicating that you want the
system to choose the default protocol for the specified socket type and address family. This is often
suitable for most common use cases, where the default protocol is the one expected for the given
socket type and address family (e.g., TCP for SOCK_STREAM and IPv4).
QUESTION 4:
SOCK STREAM represents
a) UDP-based Datagram Socket
b) TCP-based Stream Socket
c) QUIC-based Stream Socket
d) None of the above
QUESTION 5:
Socket Address is:
a) IPv4 Address Translated to Ipv6 Address
b) Combination of IP Address and Port Address
c) Combination of MAC Address and domain Address
d) Application Layer Address
QUESTION 6:
(i) UDP does not have any flow control and congestion control mechanism.
(ii) UDP is suitable for purposes where error checking and correction is less important than timely
delivery.
Which of the above statement(s) is/are true?
a) Only i
b) Only ii
c) Both i and ii
d) None the above
QUESTION 7:
Packet integrity can be checked by the checksum mechanism.
a) True
b) False
2
NPTEL Online Certification Courses
QUESTION 8:
Consider the following statements regarding the slow start phase of the TCP congestion control
algorithm. Note that CWND stands for the TCP congestion window. The CWND increases linearly
after every round trip time till threshold.
a) True
b) False
QUESTION 9:
Consider a TCP connection in a state where there are no outstanding ACKs. The sender sends two
segments back to back. The sequence numbers of the first and second segments are 230 and 290
respectively. The first segment was lost but the second segment was received correctly by the
receiver.
Let X be the amount of data carried in the first segment (in bytes) and Y be the ACK number sent
by the receiver. The values of X and Y are:
a) 60 and 290
b) 230 and 291
c) 60 and 231
d) 60 and 230
QUESTION 10:
In TCP congestion control mechanism is triggered once
3
NPTEL Online Certification Courses