NPTEL

Introduction to Internet of Things Week 7 Quiz Answer

In this article i am gone to share NPTEL Course Introduction to Internet of Things Unit 9 – Week 7 Assignment Quiz Answer with you..

Introduction to Internet of Things Week 7 Quiz Answer

Also visit: Google Cloud Computing Foundations Week 5 Quiz Answer

 

Unit 9 – Week 7 Quiz Answer


Assignment 7

Question 1)
Protocol used for connection less socket programming:
  • UDP
  • TCP
  • Both
  • None
Question 2)
Which one is an SDN controller:
  • POX 
  • ONOS 
  • OpenDayLight
  • All of the above
Question 3)
Give the output of the following snippet:
Name= “Split-this-string” Name.split(“-“)
  • [“Split”, “this”, “string”]</span > 
  • Split, this, string 
  • [“Split-“, “this-“, “string”] 
  • Split this string
Question 4)
Which of the following is not a function in matplotlib library of Python:
  • title()
  • display() 
  • show() 
  • subplot() 
Question 5)
Application program interface (API) used between application and control planes is known as:
  • Eastbound API 
  • Southbound API 
  • Northbound API </span >
  • Westbound API
Question 6)
The bind() function in Python socket programming is used to:
  • Send data to the socket 
  • Initiate the connection
  • Read data from the socket
  • Specify the port for service on the specified host </span >
Question 7)
Opening a file in append mode in Python:
  • Overrides the existing data in the file
  • Cannot write data to a file in append mode
  • Adds the new data to the end of the existing file</span >
  • Adds the new data at the beginning of the existing file 
Question 8)
A typical socket program on raspberry pi using python:
  • Server performs the task/service requested by the client
  • Creates a two-way communication between two nodes in a network 
  • Both a and b
  • None of these
Question 9)
In Python based socket programming, which of these is/are represent a socket family?
  • AF_UNIX
  • AF_INET
  • Both a and b
  • None of these
Question 10)
n Python based socket programming, which of these is/are represent a socket type?
  • AF_INET
  • AF_UNIX
  • SOCK_STREAM 
  • SOCK_DATA
Question 11)
Arrange the following events sequentially (starting from the first step to the last) for sending data from client to server using sockets and saving it?

A. Create a client and server
B. Establish connection between the two
C. Send data from the client to the server
D. Save the data in a file

  • A-B-C-D
  • A-C-D-B 
  • C-B-D-A
  • None of the sequences are true
Question 12)
The ion() function in matplotlib plotting:
  • Adds lines to the plot
  • provides title to the plot
  • makes subplots in the plot area
  • turns on interactive plot mode</span >
Question 13)
The following are the limitations of our current traditional networks:</b >
  • Centralized control.
  • Switch configuration required according to the installed operating system (OS).
  • Vendor-specific architecture of switches limits dynamic configuration according to application-specific requirements.
  • All of the above
Question 14)
The basic SDN concept involves:
  • Separate control logic from hardware switches 
  • Define the control logic in a centralized manner 
  • Control the entire network including individual switches 
  • All of the above
Question 15)
Control message from a switch to controller in SDN is termed as:
  • Control message
  • Data message
  • Flow-rule message
  • PACKET-IN message