GkSeries.com

IOT Multiple Choice Questions and Answers – Publishing Messages to the Cloud | IOT MCQs

(1) Publishing messages is handled through ________ Class.
[A] Client()
[B] Server()
[C] Publish()
[D] Batch()
Answer: Client()
(2) client() class provides ________ to create topics.
[A] Software
[B] Classes
[C] Methods
[D] Batch
Answer: Methods

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

(3) ________ method publishes messages to pub/sub.
[A] Client()
[B] Publish()
[C] Server()
[D] Batch()
Answer: Publish()
(4) How many arguments are accepted by publish()?
[A] 5 arguments
[B] 3 arguments
[C] 1 argument
[D] 2 arguments
Answer: 2 arguments
(5) Does publish() method accepts arbitrary arguments.
[A] True
[B] False
Answer: True
(6) The topic in the publish method is in which form?
[A] Binomial formx
[B] Canonical form
[C] Nominal form
[D] Message form
Answer: Canonical form
(7) The message in pub/sub is an opaque blob of ________
[A] Bits
[B] Bytes
[C] Word
[D] Nibble
Answer: Bytes
(8) ________ error will show if we try to send text string instead of bytes.
[A] TypeError
[B] Error
[C] Linker error
[D] Compiler error
Answer: TypeError
(9) What do we call string in python 2?
[A] Str
[B] Unicode
[C] Strs
[D] Unicades
Answer: Unicode
(10) When you publish a message ________ is automatically created?
[A] Client
[B] Server
[C] Batch
[D] Server
Answer: Batch
(11) When the batch is created, it begins a countdown that publishes the batch once sufficient time has elapsed.
[A] True
[B] False
Answer: True
(12) What is the time elapsed after a batch is created?
[A] 0.5 seconds
[B] 0.05 seconds
[C] 1.5 seconds
[D] 1 second
Answer: 0.05 seconds
(13) Every call to publish() will return a class that conforms to the __________ interface.
[A] Batch
[B] Client
[C] Server
[D] Future
Answer: Future

Please share this page

Click Here to Read more questions

Teacher Eligibility Test