Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How many arguments are accepted by publish()?(a) 5 arguments(b) 3 arguments(c) 1 argument(d) 2 argumentsI have been asked this question in an online quiz.My enquiry is from Publishing Messages to the Cloud topic in section Working with the Cloud of IOT

Answer»

The correct choice is (d) 2 arguments

To elaborate: This METHOD accepts two positional arguments: the topic to publish to, and the BODY of the message.

2.

By clicking which key the PubNub will display public, subscribe, and secret keys.(a) Pane(b) Demo Keyset(c) Portal(d) NetworkThis question was posed to me by my college professor while I was bunking the class.I want to ask this question from Sending and Receiving Data in Real Time Through Internet in portion Working with the Cloud of IOT

Answer»

The correct choice is (B) DEMO Keyset

To explain: Click on Demo keyset pane and PubNub will display public, subscribe, and secret keys. We MUST copy and PASTE each of these keys to use them in our CODE that will publish messages and subscribe to them.

3.

Every call to publish() will return a class that conforms to the __________ interface.(a) Batch(b) Client(c) Server(d) FutureI have been asked this question in final exam.Query is from Publishing Messages to the Cloud topic in portion Working with the Cloud of IOT

Answer» CORRECT option is (d) FUTURE

Explanation: EVERY call to PUBLISH() will return a class that conforms to the future interface. You can use this to ENSURE that the publish.
4.

What do we call string in python 2?(a) Str(b) Unicode(c) Strs(d) UnicadesThe question was asked in an international level competition.My query is from Publishing Messages to the Cloud topic in section Working with the Cloud of IOT

Answer»

The correct OPTION is (b) UNICODE

Easy explanation: In python 2 the text STRING is called as str, and in python 2 it is called as unicode.

5.

Which command finds out the topic?(a) rostopic bw(b) rostopic delay(c) rostopic echo(d) rostopic findI got this question in an internship interview.This intriguing question comes from Publishing Messages with Commands topic in chapter Working with the Cloud of IOT

Answer»

Right CHOICE is (d) ROSTOPIC find

For explanation: Rostopic find, FINDS topics by type. Rostopic is implemented in python. ROSTOPIC uses YAML_syntax at the COMMAND line

6.

Dash supports static images.(a) True(b) FalseThe question was asked in an interview for internship.Question is taken from Building a Web- based Dashboard in portion Working with the Cloud of IOT

Answer» CORRECT answer is (a) True

Explanation: The dash supports static images and TEXT as well as a CLOCK widget and WEATHER widget.
7.

Dweet.io is used for __________(a) Sharing data(b) Storage(c) Publishing data(d) Alerting devicesThis question was addressed to me during an online interview.The origin of the question is Publishing Data to the Cloud with Dweepy topic in portion Working with the Cloud of IOT

Answer»

Right option is (c) PUBLISHING DATA

Explanation: dweet.io is used to publish the data retrieved from the SENSORS and make it AVAILABLE to DIFFERENT computers and devices all over the world.

8.

_________ 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_subscribeI have been asked this question during a job interview.My question comes from Sending and Receiving Data in Real Time Through Internet in section Working with the Cloud of IOT

Answer»

Right answer is (a) public_key and subscribe_key

Best explanation: Then, the constructor declares two LOCAL variables: public_key and subscribe_key. These local variables SAVE the public and subscribe keys that we had generated with the PUBNUB Admin PORTAL.

9.

ROSTOPIC uses _________ at the command line for representing the content of the message.(a) YAML_syntax(b) rostopic bw(c) rostopic delay(d) rostopic echoI got this question in final exam.My doubt stems from Publishing Messages with Commands topic in division Working with the Cloud of IOT

Answer»

Correct option is (a) YAML_syntax

For EXPLANATION: ROSTOPIC uses YAML_syntax at the command line for representing the content of the MESSAGE. For information on how to USE this YAML SYNTAX for commands LIKE rostopic pub.

10.

Does publish() method accepts arbitrary arguments.(a) True(b) FalseThis question was posed to me in quiz.Asked question is from Publishing Messages to the Cloud in division Working with the Cloud of IOT

Answer»

The CORRECT answer is (a) True

The best I can explain: PUBLISH() method also ACCEPTS arbitrary KEYWORD arguments, which are passed along as attributes of the message.

11.

Does user has authority for all topics.(a) True(b) FalseThis question was posed to me in exam.Query is from Publishing Messages with Commands topic in chapter Working with the Cloud of IOT

Answer»

Right choice is (B) False

To EXPLAIN: If the USER has no authority on topic a warning RESPONSE will come which INDICATES which are not published, if not those topics are published.

12.

rostopic delay will provide delay for ___________(a) Topics which has header(b) Topics which has tail(c) Topics which has tail and head(d) To all topicsI had been asked this question in a job interview.My question comes from Publishing Messages with Commands topic in section Working with the Cloud of IOT

Answer»

The correct CHOICE is (a) Topics which has header

To explain I would say: Rostopic DELAY DISPLAY the delay for topic which has header. Rostopic is IMPLEMENTED in python.

13.

What is the time elapsed after a batch is created?(a) 0.5 seconds(b) 0.05 seconds(c) 1.5 seconds(d) 1 secondI got this question in my homework.I need to ask this question from Publishing Messages to the Cloud topic in chapter Working with the Cloud of IOT

Answer» CORRECT CHOICE is (b) 0.05 seconds

To EXPLAIN I would say: When the batch is created, it begins a countdown that publishes the batch once SUFFICIENT time has ELAPSED by default it is 0.05 seconds.
14.

MQTT is better than HTTP for sending and receiving data.(a) True(b) FalseThis question was addressed to me in my homework.Query is from Sending and Receiving Data in Real Time Through Internet in section Working with the Cloud of IOT

Answer»

Right answer is (a) True

Easy EXPLANATION: We want to send and receive DATA in real time through INTERNET and RESTFUL API is not the most appropriate option to do this. Instead, we will work on MQTT which is LIGHTER than HTTP.

15.

dweet.io provides __________ to send data from IoT devices.(a) JSON(b) HTTP(c) Web API(d) POST HTTPThis question was addressed to me by my school teacher while I was bunking the class.I'm obligated to ask this question of Publishing Data to the Cloud with Dweepy in division Working with the Cloud of IOT

Answer» CORRECT answer is (C) Web API

To explain: The dweet.io data sharing utility provides we api that we can send data from our IOT device, known as THING in dweet.io documentation.
16.

Freeboard.io allows us to build ________(a) Application(b) Dashboard(c) Device(d) OutputI had been asked this question in exam.This is a very interesting question from Building a Web- based Dashboard in portion Working with the Cloud of IOT

Answer»

The correct option is (B) Dashboard

The explanation is: Freeboard.io ALLOWS US to build a dashboard by selecting DATA source and dragging and dropping customizable WIDGETS.

17.

When the batch is created, it begins a countdown that publishes the batch once sufficient time has elapsed.(a) True(b) FalseI have been asked this question in an interview for internship.This question is from Publishing Messages to the Cloud topic in section Working with the Cloud of IOT

Answer» RIGHT choice is (a) True

Explanation: When the BATCH is created, it begins a countdown that PUBLISHES the batch once sufficient TIME has elapsed.
18.

PubNub publishes and subscribes _________ in order to send and receive messages.(a) Network(b) Account(c) Portal(d) KeysI got this question in examination.This interesting question is from Sending and Receiving Data in Real Time Through Internet topic in portion Working with the Cloud of IOT

Answer»

The CORRECT option is (d) KEYS

To EXPLAIN I would say: It is necessary to generate our PubNub publishes and subscribes keys in ORDER to send and receive messages in the NETWORK.

19.

client() class provides ________ to create topics.(a) Software(b) Classes(c) Methods(d) BatchThe question was asked in final exam.The question is from Publishing Messages to the Cloud topic in portion Working with the Cloud of IOT

Answer»

Right answer is (C) Methods

Easy explanation: client() class provides the method to CREATE TOPICS. publish() method publishes messages to pub/sub. PUBLISHING message is handled through the client class.

20.

The visual view displays what?(a) Pie graph(b) Bar graph(c) Line graph(d) HistogramsThe question was posed to me during an online exam.The doubt is from Publishing Data to the Cloud with Dweepy in chapter Working with the Cloud of IOT

Answer»

Right option is (c) LINE graph

The explanation: The visual VIEW DISPLAYS line graph of whatever we want the information that is getting from the SENSORS. Examples are temperature and humidity VALUES.

21.

The messageChannel class declares the _________ class attribute that defines the key string.(a) command_key(b) command-key(c) commandkey(d) Key_commandI have been asked this question in a national level competition.I would like to ask this question from Sending and Receiving Data in Real Time Through Internet topic in chapter Working with the Cloud of IOT

Answer»

Right OPTION is (a) command_key

Explanation: The messageChannel CLASS declares the command_key class ATTRIBUTE that defines the KEY string that defines what the code will understand as the command.

22.

Which protocol is lightweight?(a) MQTT(b) HTTP(c) CoAP(d) SPIThis question was addressed to me in examination.Question is taken from Sending and Receiving Data in Real Time Through Internet topic in section Working with the Cloud of IOT

Answer»

Right choice is (a) MQTT

The best explanation: MQTT is a lightweight PROTOCOL that RUNS on top of the TCP/IP protocol and WORKS with publish subscribe mechanism.

23.

________ uses a clean interface to provide data.(a) Dashzen(b) Ducksboard(c) Klipfolio(d) DashI had been asked this question in semester exam.This is a very interesting question from Building a Web- based Dashboard topic in portion Working with the Cloud of IOT

Answer»

The CORRECT option is (d) Dash

For explanation: Dash uses a CLEAN interface to provide DATA from VARIOUS SOCIAL and new sites, as well as websites monitoring tools and fitness tracking sites.

24.

_________ is used to visualize data collected with the sensor.(a) freeboard.io(b) Dweet.io(c) Dweeting(d) YoctoI had been asked this question in a national level competition.My question comes from Building a Web- based Dashboard topic in section Working with the Cloud of IOT

Answer» RIGHT choice is (a) freeboard.io

Easy EXPLANATION: freeboard.io visualize the data collected with the sensor and published to dweet.io in many gauges and make the dashboard available to DIFFERENT computers and devices all over the WORLD.
25.

_________ Specifies the function that will be called when a successful connection with the PubNub cloud.(a) Callback(b) Error(c) Connect(d) ReconnectThe question was posed to me in an interview.The question is from Sending and Receiving Data in Real Time Through Internet topic in chapter Working with the Cloud of IOT

Answer»

The correct CHOICE is (c) Connect

To explain I would say: The call to this message specifies many methods DECLARED in the MessageChannel class

Connect: specifies the function that will be called when a SUCCESSFUL connection with the PUBNUB cloud.

26.

_________ specifies the function that will be called when there is a new message received from the channel.(a) Reconnect(b) Error(c) Connect(d) CallbackI got this question in an internship interview.I'm obligated to ask this question of Sending and Receiving Data in Real Time Through Internet in portion Working with the Cloud of IOT

Answer»

Correct answer is (d) Callback

Easy explanation: The call to this MESSAGE SPECIFIES MANY methods declared in the MessageChannel class

Callback: specifies the FUNCTION that will be CALLED when there is a new message received from the channel.

27.

_________ method saves the received arguments in three attributes.(a) __Init(b) Init__(c) __Init__(d) _init_I have been asked this question by my school teacher while I was bunking the class.I want to ask this question from Sending and Receiving Data in Real Time Through Internet in portion Working with the Cloud of IOT

Answer»

Correct CHOICE is (C) __Init__

Explanation: __Init__ method saves the received arguments in three ATTRIBUTES with the same NAMES.

28.

Which application supports Google Spreadsheets?(a) Dashzen(b) Ducksboard(c) Klipfolio(d) LeftronicThe question was posed to me in an online quiz.My question is based upon Building a Web- based Dashboard in portion Working with the Cloud of IOT

Answer»

Right option is (B) Ducksboard

To explain: Ducksboard can TAP MANY sites APIs to display DATA, but it also offers its own API, which lets you send your own data into your dashboard. Ducksboard supports Google spreadsheets as a data source.

29.

The processing of publishing data is called as __________(a) Yocto(b) Thing(c) Dweepy(d) DweetingThis question was posed to me in an international level competition.I would like to ask this question from Publishing Data to the Cloud with Dweepy topic in division Working with the Cloud of IOT

Answer»

Correct ANSWER is (d) Dweeting

Explanation: Once we have chosen a UNIQUE for ONE THING, we can start publishing data, a process known as Dweeting.

30.

Publish command message is sent from _________(a) Only publisher to broker(b) Only broker to publisher(c) Publisher to broker and broker to publisher(d) Server to clientI got this question in final exam.My question comes from Publishing Messages with Commands in portion Working with the Cloud of IOT

Answer»

The correct ANSWER is (C) Publisher to broker and broker to publisher

Best explanation: The PUBLIC COMMAND message is sent from a publisher to a broker or from a broker to a subscriber, to publish information on a specified topic or topics.

31.

________ error will show if we try to send text string instead of bytes.(a) TypeError(b) Error(c) Linker error(d) Compiler errorI have been asked this question during an interview.Question is taken from Publishing Messages to the Cloud in division Working with the Cloud of IOT

Answer»

Right answer is (a) TYPEERROR

Best explanation: If we send a TEXT STRING the method will RAISE TypeError. TypeError will show if we try to send text string instead of bytes.

32.

The message in pub/sub is an opaque blob of ________(a) Bits(b) Bytes(c) Word(d) NibbleThis question was posed to me by my college professor while I was bunking the class.The question is from Publishing Messages to the Cloud in section Working with the Cloud of IOT

Answer»

Right ANSWER is (B) BYTES

Best explanation: The message in pub/sub is an opaque blob of bytes, and as such, you must SEND a bytes object in python 3.

33.

MQTT stands for _____________(a) MQ Telemetry Things(b) MQ Transport Telemetry(c) MQ Transport Things(d) MQ Telemetry TransportThis question was addressed to me in exam.My question comes from Sending and Receiving Data in Real Time Through Internet in division Working with the Cloud of IOT

Answer»

The correct option is (d) MQ TELEMETRY TRANSPORT

For EXPLANATION: MQTT was KNOWN as MQ Telemetry Transport protocol. MQTT is a LIGHTWEIGHT protocol that runs on top of the TCP/IP protocol.

34.

Which command displays the band width?(a) rostopic hz(b) rostopic delay(c) rostopic echo(d) rostopic bwThe question was posed to me in quiz.Origin of the question is Publishing Messages with Commands topic in portion Working with the Cloud of IOT

Answer»

Right ANSWER is (d) rostopic bw

Explanation: Rostopic bw displays the bandwidth. The bandwidth reported is the RECEIVED bandwidth. If there are NETWORK CONNECTIVITY ISSUES or rostopic cannot keep up with the publisher.

35.

Which application allows a number of unique background images?(a) Dashzen(b) Ducksboard(c) Klipfolio(d) LeftronicI had been asked this question at a job interview.My question is taken from Building a Web- based Dashboard topic in section Working with the Cloud of IOT

Answer»

The correct choice is (B) Ducksboard

Best explanation: Ducksboard offers a number of UNIQUE background images INCLUDING the default, which LOOKS like wood flooring.

36.

GUID full form is ___________(a) Global Unique Identifier(b) Global User Identifier(c) Gradual User Identifier(d) Gradual Unique IdentifierI got this question in an international level competition.This key question is from Publishing Data to the Cloud with Dweepy in portion Working with the Cloud of IOT

Answer» CORRECT option is (a) Global UNIQUE Identifier

Best explanation: We have to choose a unique NAME for our THING. It is convenient to combine a string with a GUID(Global Unique Identifier).
37.

When you publish a message ________ is automatically created?(a) Client(b) Server(c) Batch(d) ServerI had been asked this question in an interview for job.This question is from Publishing Messages to the Cloud in section Working with the Cloud of IOT

Answer»

Correct ANSWER is (C) Batch

To explain I would say: Whenever we publish a MESSAGE, a batch is automatically created. This way, if you publish a large volume of MESSAGES, it reduces the number of requests made to the SERVER.

38.

What is the java extension file in IoT?(a) .jar(b) .c(c) .exe(d) .pyThis question was posed to me during an interview.The origin of the question is Publishing Messages with Commands topic in portion Working with the Cloud of IOT

Answer»

Right option is (a) .jar

For EXPLANATION I WOULD say: JAVA IDE to run the example in any computer or build .jar file with all the dependencies included and launch it any computer or devices that you want to use as the MQTT client with a command similar to the following line.

39.

_________ allows us to control electronic components(a) RETful API(b) RESTful API(c) HTTP(d) MQTTThe question was asked in quiz.My doubt is from Sending and Receiving Data in Real Time Through Internet in portion Working with the Cloud of IOT

Answer»

Right option is (a) RETful API

For explanation I WOULD say: RETful API that allows US to control electronic COMPONENTS CONNECTED to our INTEL Galileo Gen 2 board through HTTP requests.

40.

Gauge will display the latest value that is running in the board.(a) True(b) FalseThe question was posed to me in examination.My query is from Building a Web- based Dashboard topic in division Working with the Cloud of IOT

Answer» RIGHT option is (a) True

To explain I would SAY: The gauge will display the latest value that the code running in the BOARD dweeted for the ambient temperature in degree Fahrenheit.
41.

freeboard.io itself defines as ________(a) Data based service(b) Fog based service(c) Cloud based service(d) Signals based serviceI got this question in an interview for job.My question is from Building a Web- based Dashboard topic in division Working with the Cloud of IOT

Answer»

Correct answer is (c) Cloud based SERVICE

For EXPLANATION I would say: Freeboard.io defines itself as a cloud based service that allows US to VISUALIZE the internet of things.

42.

What utility of dweet.io allows publishing data?(a) Data sharing(b) Publishing data(c) Storage(d) Alerting devicesI got this question during an internship interview.My question is based upon Publishing Data to the Cloud with Dweepy in division Working with the Cloud of IOT

Answer»

Right answer is (a) DATA sharing

Easiest EXPLANATION: The dweet.io data sharing UTILITY allows us to easily publish data or messages and alerts from IoT DEVICES and then use other devices to subscribe to this data.

43.

___________ specifies the function that will be called when the client disconnects.(a) Callback(b) Error(c) Connect(d) DisconnectI have been asked this question during an internship interview.This is a very interesting question from Sending and Receiving Data in Real Time Through Internet topic in division Working with the Cloud of IOT

Answer»

The CORRECT CHOICE is (d) Disconnect

To explain I would SAY: The call to this message SPECIFIES many methods declared in the MessageChannel class

Disconnect: specifies the function that will be called when the client disconnects from the PubNub cloud.

44.

Dictionary here define what?(a) Key-value pairs(b) JASON(c) dweet.io(d) YoctoI have been asked this question in final exam.I would like to ask this question from Publishing Data to the Cloud with Dweepy topic in division Working with the Cloud of IOT

Answer»

The correct answer is (a) Key-value PAIRS

To ELABORATE: The DICTIONARY defines the key value pairs that we want to send as JASON DATA to dweet.io for our thing. The keys may be the values what we want to KNOW like, temperature, humidity etc.

45.

Which application feature is a world of warcraft gadget?(a) Leftronic(b) Ducksboard(c) Klipfolio(d) DashzenI have been asked this question in my homework.My doubt is from Building a Web- based Dashboard in section Working with the Cloud of IOT

Answer»

The correct option is (d) DASHZEN

Easy EXPLANATION: Dashzen contains many GADGETS. One unique feature of Dashzen is that WORLD of Warcraft GADGET.

46.

Publishing messages is handled through ________ Class.(a) Client()(b) Server()(c) Publish()(d) Batch()I had been asked this question in an interview for job.My doubt stems from Publishing Messages to the Cloud topic in portion Working with the Cloud of IOT

Answer»

Right CHOICE is (a) Client()

For explanation I WOULD say: Publishing message is HANDLED through the client CLASS(aliased as google-cloud-pubsub-publisherclient).

47.

________ method publishes messages to pub/sub.(a) Client()(b) Publish()(c) Server()(d) Batch()The question was posed to me during an interview for a job.The doubt is from Publishing Messages to the Cloud topic in section Working with the Cloud of IOT

Answer» CORRECT answer is (b) PUBLISH()

The explanation is: While client() provides METHOD to create topics, publish() method publishes MESSAGES to pub/sub.
48.

dweet.io is similar as __________(a) GIUD(b) Insta(c) Web api(d) TwitterI have been asked this question by my school principal while I was bunking the class.This is a very interesting question from Publishing Data to the Cloud with Dweepy in portion Working with the Cloud of IOT

Answer»

The correct ANSWER is (d) TWITTER

Explanation: dweet.io DATA SHARING UTILITY defines itself as something similar to twitter for social machines.

49.

The topic in the publish method is in which form?(a) Binomial form(b) Canonical form(c) Nominal form(d) Message formThe question was posed to me during an interview for a job.My question comes from Publishing Messages to the Cloud in portion Working with the Cloud of IOT

Answer»

The CORRECT answer is (b) Canonical form

For explanation I WOULD SAY: The topic is passed ALONG as a string; all topics have the canonical form of projects/{project_name}/topic/{topic_name}.

50.

The message is sent to the input queue of a message flow that contains a _________(a) Subscriber(b) Server(c) Publication node(d) ClientThe question was posed to me by my school teacher while I was bunking the class.The question is from Publishing Messages with Commands in portion Working with the Cloud of IOT

Answer»

The correct CHOICE is (d) Client

To explain I would say: Message is sent to the input queue of a message flow that contains a PUBLISHING node. AUTHORITY to put a message into the queue and to PUBLISH on the specified TOPIC.