Sending and Receiving Data in Real Time Through Internet Questions and Answers

IOT Questions and Answers – Sending and Receiving Data in Real Time Through Internet

This set of IOT Multiple Choice Questions & Answers focuses on “Sending and Receiving Data in Real Time Through Internet”.

1. PubNub publishes and subscribes _________ in order to send and receive messages.
a) Network
b) Account
c) Portal
d) Keys

Explanation: To transmit and receive messages in the network, we need to generate our PubNub publishes and subscribes keys.
2. By clicking which key the PubNub will display public, subscribe, and secret keys.
a) Pane
b) Demo Keyset
c) Portal
d) Network

Explanation: PubNub will display public, subscribe, and secret keys when you click on the Demo keyset pane. Each of these keys must be copied and pasted into the code that will publish and subscribe to messages.
3. The messageChannel class declares the _________ class attribute that defines the key string.
a) command_key
b) command-key
c) commandkey
d) Key_command

Explanation: The command key class element of the messageChannel class defines the key string that defines what the code will recognise as the command.
4. _________ method saves the received arguments in three attributes.
a) __Init
b) Init__
c) __Init__
d) _init_

Explanation: __Init__ method saves the received arguments in three attributes with the same names.
5. _________ and _________ saves the publish and subscribe keys that we have generated with the PubNub Admin portal.
a) public_key and subscribe_key
b) Public-key and subscribe-key
c) publickey and subscribekey
d) Key_public and key_subscribe

Explanation: The function Object() { [native code] } then declares public key and subscribe key as local variables. The public and subscribe keys that we generated with the PubNub Admin interface are saved in these local variables.
6. _________ specifies the function that will be called when there is a new message received from the channel.
a) Reconnect
b) Error
c) Connect
d) Callback

Explanation: Many methods declared in the MessageChannel class are specified in the call to this message. Callback: indicates the function that will be invoked when a new message is received from the channel.
7. _________ specifies the function that will be called on an error event.
a) Callback
b) Error
c) Connect
d) Reconnect

Explanation: Many methods declared in the MessageChannel class are specified in the call to this message.
Error: defines the function that will be invoked in the event of an error.
8. _________ Specifies the function that will be called when a successful connection with the PubNub cloud.
a) Callback
b) Error
c) Connect
d) Reconnect

Explanation: Many methods declared in the MessageChannel class are specified in the call to this message. Connect: specifies the function that will be invoked when a successful connection with the PubNub cloud is made.
9. _________ specifies the function that will be called when a successful re-connection is completed.
a) Callback
b) Error
c) Connect
d) Reconnect

Explanation: Many methods declared in the MessageChannel class are specified in the call to this message.
Reconnect: indicates the function that will be invoked after a successful PubNub reconnection has been performed.
10. ___________ specifies the function that will be called when the client disconnects.
a) Callback
b) Error
c) Connect
d) Disconnect

Explanation: Many methods declared in the MessageChannel class are specified in the call to this message.
When the client disconnects from the PubNub cloud, the function Disconnect will be invoked.

11. _________ allows us to control electronic components
a) RETful API
b) RESTful API
c) HTTP
d) MQTT

Explanation: RETful API that allows us to use HTTP requests to control electronic components linked to our Intel Galileo Gen 2 board.

12. MQTT stands for _____________
a) MQ Telemetry Things
b) MQ Transport Telemetry
c) MQ Transport Things
d) MQ Telemetry Transport

Explanation: MQTT was known as MQ Telemetry Transport protocol. MQTT is a lightweight protocol that runs on top of the TCP/IP protocol.
13. MQTT is better than HTTP for sending and receiving data.
a) True
b) False

Explanation: We need to send and receive data in real time over the internet, and a RESTful API isn’t the best solution. Instead, we’ll use MQTT, which is a lighter protocol than HTTP.
14. MQTT is _________ protocol.
a) Machine to Machine
b) Internet of Things
c) Machine to Machine and Internet of Things
d) Machine Things

Explanation: MQTT is a machine-to-machine (M2M) and Internet-of-Things (IoT) connection protocol.
15. Which protocol is lightweight?
a) MQTT
b) HTTP
c) CoAP
d) SPI

Explanation: MQTT is a lightweight protocol that works using the publish subscribe method and runs on top of the TCP/IP protocol.

A message is a piece of data delivered over the internet, but before it is delivered, it is broken down into smaller pieces known as packets. Internet Protocol (IP) and Transport Control Protocol (TCP) are used to transport these messages and packets from one source to the next (TCP). MQTT is a lightweight protocol that works using the publish subscribe method and runs on top of the TCP/IP protocol. Internet Relay Chat (IRC) is used in real-time internet chatting, file transfer, and other applications. It cannot, however, be utilised to efficiently stream data indefinitely . Finally, Web Sockets is a protocol/technology that allows bidirectional data exchange over a single TCP connection.

Leave a Reply

Your email address will not be published. Required fields are marked *