Multiple Choice Questions & Answers on Publishing Messages to the Cloud

Multiple Choice Questions & Answers on Publishing Messages to the Cloud

1. The message in pub/sub is an opaque blob of ________
a) Bits
b) Bytes
c) Word
d) Nibble
Answer: Bytes

2. When you publish a message ________ is automatically created?
a) Client
b) Server
c) Batch
d) Server
Answer: Batch

3. Every call to publish() will return a class that conforms to the __________ interface.
a) Batch
b) Client
c) Server
d) Future
Answer: Future

4. ________ 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

5. Publishing messages is handled through ________ Class.
a) Client()
b) Server()
c) Publish()
d) Batch()
Answer: Client()

6. ________ method publishes messages to pub/sub.
a) Client()
b) Publish()
c) Server()
d) Batch()
Answer: Publish()

7. client() class provides ________ to create topics.
a) Software
b) Classes
c) Methods
d) Batch
Answer: Methods

8. 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

9. How many arguments are accepted by publish()?
a) 5 arguments
b) 3 arguments
c) 1 argument
d) 2 arguments
Answer: 2 arguments

10. The topic in the publish method is in which form?
a) Binomial form
b) Canonical form
c) Nominal form
d) Message form
Answer: Canonical form

11. What do we call string in python 2?
a) Str
b) Unicode
c) Strs
d) Unicades
Answer: Unicode

12. When the batch is created, it begins a countdown that publishes the batch once sufficient time has elapsed.
a) True
b) False
Answer: True

13. Does publish() method accepts arbitrary arguments.
a) True
b) False
Answer: True

Comments