Test you knowledge and understanding of MQTT with these short quizzes.
MQTT
MQTT Basics
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
A test of MQTT Basics
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
In a Publish/Subscribe model how does the publisher know who is subscribing.
Correct
Incorrect
-
Question 2 of 10
2. Question
MQTT uses
Correct
Incorrect
-
Question 3 of 10
3. Question
MQTT-SN uses
Correct
Incorrect
-
Question 4 of 10
4. Question
Each client that connects to a broker must have a unique client id?
Correct
Incorrect
-
Question 5 of 10
5. Question
When connecting to an MQTT broker you always need a username and password?
Correct
Incorrect
-
Question 6 of 10
6. Question
An MQTT broker can use any port, but by default it uses port 1883?
Correct
Incorrect
-
Question 7 of 10
7. Question
MQTT transmits data to and from a broker in which format.
Correct
Incorrect
-
Question 8 of 10
8. Question
Messages sent to an MQTT broker are encrypted by default?
Correct
Incorrect
-
Question 9 of 10
9. Question
You can subscribe to multiple topics at once using wild cards?
Correct
Incorrect
-
Question 10 of 10
10. Question
You must always start your topic hierachy with a / e.g. /topic name?
Correct
Incorrect
References:
- Beginners Guide to MQTT
- Understanding MQTT Topics and Topic Naming Design
- Mosquitto Username and Password Authentication -Configuration and Testing
MQTT Basics -Retained Messages,Clean Sessions and Last Will
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
This quiz Tests your Knowledge of Retained messages,last will messages and clean sessions.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
The Last Will Message is used to:
Correct
Incorrect
-
Question 2 of 10
2. Question
To Receive a last will message.
Correct
Incorrect
-
Question 3 of 10
3. Question
The Last will message is sent from?
Correct
Incorrect
-
Question 4 of 10
4. Question
When you publish a message to a topic with the retained flag set what happens to the message?
Correct
Incorrect
-
Question 5 of 10
5. Question
To receive a retained message?
Correct
Incorrect
-
Question 6 of 10
6. Question
To delete a retained message from a broker you must?
Correct
Incorrect
-
Question 7 of 10
7. Question
When you connect to a broker with clean session flag set to true what Happens?
Correct
Incorrect
-
Question 8 of 10
8. Question
You connect to a broker with the clean session flag set to false and subscribe to the topic house/sensor1.
You then disconnect and after about 10 minutes you reconnect with the same client. Do you need to Subscribe to the topic house/sensor1 again?Correct
Incorrect
-
Question 9 of 10
9. Question
You connect to a broker with the clean session flag set to false, and subscribe to the topic house/sensor1 with QOS 1.You then disconnect, and after about 10 minutes you reconnect with the same client. If another client publishes messages on house/sensor1 with QOS 1 while you are disconnected. What happens when you reconnect?
Correct
Incorrect
-
Question 10 of 10
10. Question
You connect to a broker with the clean session flag set to false, and subscribe to the topic house/sensor1 with QOS 0.You then disconnect, and after about 10 minutes you reconnect with the same client. If another client publishes messages on house/sensor1 with QOS 1 while you are disconnected. What happens when you reconnect?
Correct
Incorrect
References:
- Understanding Retained Messages -MQTT by Example
- MQTT Last Will and Testament Examples
- MQTT Clean Sessions and QOS Examples
Using The MQTT Python Client
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Quick Quiz to test your knowledge of using the Paho Python MQTT clients.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
You install the paho python MQTT client using the pip command?
Correct
Incorrect
-
Question 2 of 10
2. Question
Before you can publish a message you need to create a connection to a MQTT broker?
Correct
Incorrect
-
Question 3 of 10
3. Question
You can use the Python client without an MQTT broker?
Correct
Incorrect
-
Question 4 of 10
4. Question
You need to subscribe before you can publish?
Correct
Incorrect
-
Question 5 of 10
5. Question
The broker stores all MQTT messages just like Email?
Correct
Incorrect
-
Question 6 of 10
6. Question
The retain flag is set by a client when it subscribes to a topic
Correct
Incorrect
-
Question 7 of 10
7. Question
You can tell if the message you receive is a retained message?
Correct
Incorrect
-
Question 8 of 10
8. Question
When connecting the clean session flag is False by default?
Correct
Incorrect
-
Question 9 of 10
9. Question
You have connected to a broker and subscribed to a topic that you know should contain your sensor data which is being published every seconds but you don’t’ see any data. What is the most likely cause?
Correct
Incorrect
-
Question 10 of 10
10. Question
You can publish on several topics with a single publish
Correct
Incorrect
References:
- Receiving Messages with the Paho MQTT Python Client
- Two Way communication Using MQTT and Python
- Handling Multiple Client Connections-Python MQTT
- Simple Python MQTT Publish and Subscribe Example Script
- My Python Working Notes
- Paho Python MQTT Client – Understanding Callbacks
- Paho Python MQTT Client-Understanding The Loop
- Paho Python MQTT Client Objects
- Python MQTT Client Connections– Working with Connections
- Paho Python MQTT Client – Publish With Examples