0% found this document useful (0 votes)
91 views

Assignment-W2 Nptel Notes

This document contains 15 multiple choice questions from an NPTEL online certification course from IIT Kharagpur about Internet of Things. The questions cover topics like MQTT, CoAP, XMPP, AMQP protocols; addressing in 6LoWPAN; and responsibilities of different layers in IoT architectures. Each question is accompanied by the correct answer and a detailed explanation citing sources from the course lectures.

Uploaded by

Ashish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Assignment-W2 Nptel Notes

This document contains 15 multiple choice questions from an NPTEL online certification course from IIT Kharagpur about Internet of Things. The questions cover topics like MQTT, CoAP, XMPP, AMQP protocols; addressing in 6LoWPAN; and responsibilities of different layers in IoT architectures. Each question is accompanied by the correct answer and a detailed explanation citing sources from the course lectures.

Uploaded by

Ashish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Introduction to
Internet of
ThingsAssignment-
Week 2
TYPE OF QUESTION:MCQ/MSQ
Number ofquestions:15 Total marks: 15 X 1= 15

QUESTION 1:

What of the following is a standard port of MQTT protocol?


a. UDP
b. TCP/IP
c. USART
d. None of these
Correct Answer: b. TCP/IP
Detailed Solution:MQTT uses TCP/IP port 1883.
See lecture 6 @ 2:00

QUESTION 2:

Which of the following is NOT true for MQTT protocol?

a. Publish-subscribe protocol
b. Introduced by Telecommunication service providers in 1999
c. Provide connectivity
d. Standardized by OASIS in 2013
Correct Answer: b. Introduced by Telecommunication service providers in 1999
Detailed Solution:MQTT uses publish/subscribe operation to exchange data between
clients and the server. It was introduced by IBM in 1999 and standardized by OASIS in
2013.
See lecture 6 @ 2:08

QUESTION 3:

Which of the following commands is correct for MQTT unsubscribe method?


a. unsubscribe(topic)
b. unsubscribe(topic, callback)
c. on_unsubscribe(client, userdata, mid)
d. All of the above
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Correct Answer: d. All of the above


Detailed Solution: All the commands are true for MQTT unsubscribe method.The MQTT
unsubscribe method allows us to end a subscription to one or more topics.
See lecture 6 @ 6:30

QUESTION 4:

Can a client subscribe to all the topics available with Broker?


a. Yes
b. No
Correct Answer: a. Yes
Detailed Solution: A client can subscribe to an individual or multiple topics. It can
subscribe to all topics by using the hash character (#).
See lecture 6 @ 13:00

QUESTION 5:

“X” is a web transfer protocol based on Request-Response model designed for M2M
applications.What is “X”?
a. AMQP
b. CoAP
c. Both (a) and (b)
d. None of the above
Correct Answer: b. CoAP
Detailed Solution: CoAP – Constrained Application Protocol is a web transfer protocol. It
is based on request-response model and designed for M2M applications.
See lecture 6 @ 01:20

QUESTION 6:

CoAP is _____ layer protocol.


a. Network
b. Session
c. Transport
d. Presentation
Correct Answer: b. Session
Detailed Solution: CoAP is a session layer protocol, intended for use in resource-
constrained nodes in IoT architecture. It is also considered as an application layer protocol.
See lecture 7 @ 1:30
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 7:

Open standards, security, flexibility, and decentralization are the features of which
protocol?
a. XMPP
b. CoAP
c. AMQP
d. MQTT
Correct Answer: a. XMPP
Detailed Solution: The architecture of XMPP is decentralized. It is based on open
standards, while supporting security features and flexibility (interoperability).
See lecture 7 @ 13:40

QUESTION 8:

BOSH stands for _____________.

a. Bidirectional-streams Over Synchronous HTTP


b. Bidirectional-state Over Secure HTTP
c. Bidirectional Outputfor Synchronous HTTP
d. Bidirectional Output for Secure HTTP
Correct Answer: a. Bidirectional-streams Over Synchronous HTTP
Detailed Solution: BOSH stands forBidirectional-streams Over Synchronous HTTP. This
technology is used for HTTP binding for HTTP.
See lecture 7 @ 16:15 (Reference)

QUESTION 9:

In case of XMPP protocol, binary data must be first encoded to ______ before transmission.
a. base128
b. base32
c. base256
d. base64
Correct Answer: d. base64
Detailed Solution: Any XML character data contained within the XML elements used in
XMPP protocol MUST be encoded using base64.
See lecture 7 @ 16:50
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 10:

XMPP stands for _______.


a. Extensible Messaging and Presence Protocol
b. Extended Messaging and Proxy Protocol
c. Xtensible Messaging and Presence Protocol
d. Xtended Messaging and Proxy Protocol
Correct Answer: a. Extensible Messaging and Presence Protocol
Detailed Solution: It stands for Extensible Messaging and Presence Protocol, which is a
text-based protocol, built on Extensible Markup Language (XML).
See lecture 7 @ 11:35

QUESTION 11:

Is the basic unit of AMQP data “frame” same as the link-layer “frame”?

a. Yes

b. No

Correct Answer: b. No

Detailed Solution:The link-layer “frame” is different from the AMQP unit “frame”.In
AMQP, frame is a formally defined package of connection data. Frames are always written
and readcontiguously ­ as a single unit ­ on the connection.
See lecture 8 @ 02:00

QUESTION 12:

The messaging sub-layer in CoAP is responsible for _______________.


a. Communication
b. Reliability
c. Avoiding duplication of messages
d. Both (a) and (c)
e. Both (b) and (c)
Correct Answer: e. Both (b) and (c)
Detailed Solution: In CoAP, the messaging sub-layer is responsible for reliability and
avoiding duplication of messages.
See lecture 6 @ 05:00
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 13:

In which of the following fields, AMQP offers interoperability?


a. Devices
b. Protocols
c. Algorithms
d. All of these

Correct Answer: d. All of these


Detailed Solution: AMQP enables interoperability between a wide range of different
applications, systems, protocols, algorithms, and messages.
See lecture 8 @ 05:15

QUESTION 14:

In AMQP, the frame type “dispositon” is used to _____________.

a. Inform the changes in state of transfer


b. Control message flow rate
c. Dispose actual messages
d. Dispose new link
Correct Answer: a. Inform the changes in state of transfer
Detailed Solution: The “disposition” frame type is used to inform the changes in state of
transfer.The frame type, “flow”, controls message flow rate.
See lecture 8 @ 07:35

QUESTION 15:

Which one of the following is TRUE for addressing in 6LoWPAN?

a. 16-bit addresses for global unique connectivity


b. 64-bit addresses for PAN specific communication
c. IPv6 multicast is not supported by 802.15.4
d. Both (a) and (b)

Correct Answer: c. IPv6 multicast is not supported by 802.15.4


NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Detailed Solution:In 6LoWPAN, 16-bit addresses are used for PAN specific
communication; 64-bit addresses are used for global unique connectivity; and IPv6
multicast is not supported by 802.15.4.
See lecture 10 @ 05:00

************END***********

You might also like