Module 3 - Fundamentals of Network Communication

Practice Assessment - Socket API & Digital Transmissions

Question 1 Which of the following applications would you select TCP protocol for?

File transfer
Web browsing

Question 2 In BSD socket API, which type of socket is used to create a TCP socket?

SOCK_STREAM

Question 3 In BSD socket API, which type of socket is used to create a UDP socket?

SOCK_DGRAM

Question 4 In BSD socket API, which system call is used to assign a network address to the socket?

bind()

Question 5 In BSD socket API, if a client knows the server name but not server’s network address, what system call should the client use to get server’s network address?

gethostbyname()

Question 6 In a transmission system, which of the following statement is true for a receiver

Receives energy from medium
Converts received signal into a form suitable for delivery to user

Question 7 In digital transmission, long distance digital communications require the use of a generator to recover original data sequence and re-transmits on next segment

True

Question 8 In twisted pair, a category 5 UTP cable can support a data rate of up to 16MHz

False

Question 9 Which of the following statement is true for optical fiber

All of the above

Question 10 Which of the following are advantages of optical fiber

No corrosion
Noise immunity

Graded Assessment - Socket API & Digital Transmissions

Question 1 In BSD socket API, which call is usually used for transmitting data in the connectionless mode?

sendto()

Question 2 Which of following statement about TCP/UDP sockets is wrong?

TCP is faster than UDP

Question 3 Which of following are commonly used as digital communication medium?

All of the above

Question 4 Consider a network link that has distance of 100 meters, and signal traverses at the speed of light in cable 2.5 x 10^8 meters per second. The link has transmission bandwidth of 100 megabits/second (100 x 10^6 bits per second). The packet size is 400 bits. What is the signal propagation delay?

4 x 10^-7 seconds

Question 5 Consider a network link that has distance of 100 meters, and signal traverses at the speed of light in cable 2.5 x 10^8 meters per second. The link has transmission bandwidth of 100 megabits/second (100 x 10^6 bits per second). The packet size is 400 bits. What is the packet transmission delay?

4 x 10^-6 seconds

Question 6 An API allows application programs to access certain resources through a predefined interface?

True

Question 7 In transport protocol, which of the following statements is true for User Datagram Protocol

It enables best-effort connectionless transfer of individual block of information

Question 8 Which of the following sentences are true for connectionless stream mode of service

Destination address with each block
Send/receive to/from multiple peer processes
No setup overhead and delay

Question 9 In transmission delay, in order to reduce the number of bits in a message we use data compression

True

Question 10 Which of the following is true of data compression algorithms

Represent the information using fewer bits
Recover information approximately
Recover original information exactly

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.