Assignment-W7
Assignment-W7
Introduction to
Internet of Things
Assignment-Week 7
TYPE OF QUESTION: MCQ/MSQ
QUESTION 1:
a. SocketFamily
b. SocketType
c. SocketName
d. SocketProtocol
Correct Answer: b. SOCK_STREAM refers to a type of SocketType, i.e either TCP socket or
UDP socket.
QUESTION 2:
If you want to change the label of the Y-axis while plotting a graph using matplotlib in Python, what
among the following functions do you use? Suppose you have imported matplotlib as plt
a. plt.show()
b. plt.plot()
c. plt.ylabel()
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
d. plt.yaxis()
QUESTION 3:
a. Unix protocols
b. Internet Protocol (IP)
c. File sharing
d. Time slicing
Detailed Solution The AF_INET specifies the rules and standards of the Internet protocol,
hence the socket acts as an IP socket. (Please refer Lecture 31@14:13)
QUESTION 4:
a. TCP socket
b. UDP socket
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
c. TAP socket
d. None of the given
Detailed Solution: sock.recvfrom() is the form used to receive data from UDP sockets. Refer
to any standard socket programming documentations.
QUESTION 5:
QUESTION 6:
During remote server access using socket programming what is the utility of the
<socket_name>.listen() function?
a. To create a new socket
b. To bind the socket to connection
c. To wait for clients to connect
d. To close the connection
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detailed Solution: listen() function makes the server wait for incoming client connections
(Refer Lecture 31 ppt no 13)
QUESTION 7:
Which among the following is the correct direction for PACKET_OUT type messages in SDN?
Detailed Solution: PACKET_OUT messages are sent from switches to the controller upon
receipt of new unknown packets. Refer lecture 33, ppt no 20.
QUESTION 8:
QUESTION 9:
During remote server access by a Raspberry Pi, where the Raspberry Pi acts as a client, the client needs
the following?
Detailed Solution: A client can communicate with a server only if both IP address and port
numbers are known. (Please refer Lecture 31@14:13)
QUESTION 10:
With respect to the concept of soft time-out and hard time-out in SDN switches, which of the
following relations hold?
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 11:
Correct Answer: c. Traditional Network: Routing Table, Software Defined Network: Flow Table
Detailed Solution: All switches in traditional network have routing tables and those in Software Defined
Network have flow tables (Please refer Lecture 33@17:15)
QUESTION 12:
Consider the following figure below. To which issue of SDN does this particular figure can be related to?
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detailed Solution: The given figures shows the tabular structure of how flow rules are installed within
SDN switches, so it pertains to flow rule placement issues. Refer Lecture 33@18:54, Rule Placement.
QUESTION 13:
With respect to the directional APIs in SDN, what is the functionality of East-Westbound APIs?
QUESTION 14:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
a. Tree
b. Flat
c. Mesh
d. Line
QUESTION 15:
Integrating SDN with IoT is not recommended and is not a suitable approach to follow
a. False
b. True
Detailed Solution: SDN integration with IoT is highly recommended for efficient delivery of
services. Refer Lecture 35.
************END***********