Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to select a protocol based on {{BLANK_1}} requirements.
IOT Protocols
if device_power < 10: protocol = '[1]' else: protocol = 'WiFi'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing WiFi for low power devices, which consumes more power.
✗ Incorrect
Bluetooth Low Energy is chosen for low power devices.
2fill in blank
mediumComplete the code to select a protocol based on {{BLANK_1}} needs.
IOT Protocols
if required_bandwidth > 1000: protocol = '[1]' else: protocol = 'LoRaWAN'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Zigbee or BLE which have lower bandwidth.
✗ Incorrect
WiFi supports high bandwidth suitable for large data transfer.
3fill in blank
hardFix the error in selecting a protocol for low {{BLANK_1}}.
IOT Protocols
if latency > 100: protocol = 'LoRaWAN' else: protocol = '[1]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing LoRaWAN or Zigbee which have higher latency.
✗ Incorrect
Ethernet provides low latency suitable for real-time applications.
4fill in blank
hardFill both blanks to select a protocol based on power and bandwidth.
IOT Protocols
if device_power < 5 and bandwidth < 250: protocol = '[1]' else: protocol = '[2]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up protocols for power and bandwidth requirements.
✗ Incorrect
Zigbee is good for low power and low bandwidth; WiFi is for higher bandwidth needs.
5fill in blank
hardFill all three blanks to create a dictionary mapping criteria to protocols.
IOT Protocols
protocol_map = {
'low_power': '[1]',
'high_bandwidth': '[2]',
'low_latency': '[3]'
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning LoRaWAN incorrectly to high bandwidth or low latency.
✗ Incorrect
Bluetooth Low Energy is for low power, WiFi for high bandwidth, Ethernet for low latency.