Challenge - 5 Problems
Drone Tech Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of Drone Flight Path Calculation
What is the output of this drone flight path calculation code?
Drone Programming
def calculate_flight_path(waypoints): total_distance = 0 for i in range(len(waypoints) - 1): x1, y1 = waypoints[i] x2, y2 = waypoints[i + 1] distance = ((x2 - x1)**2 + (y2 - y1)**2)**0.5 total_distance += distance return round(total_distance, 2) path = [(0, 0), (3, 4), (6, 8)] print(calculate_flight_path(path))
Attempts:
2 left
💡 Hint
Calculate the distance between each pair of points using the Pythagorean theorem and sum them.
✗ Incorrect
The code calculates the distance between (0,0) to (3,4) which is 5, and (3,4) to (6,8) which is also 5. The total is 10.0.
🧠 Conceptual
intermediate1:30remaining
Understanding Drone Data Processing Roles
Which career role primarily focuses on analyzing data collected by drones to improve operations?
Attempts:
2 left
💡 Hint
Think about who works with data after the drone completes its flight.
✗ Incorrect
Data Analysts interpret and process the data collected by drones to provide insights for better decision-making.
🔧 Debug
advanced2:00remaining
Identify the Error in Drone Battery Monitoring Code
What error does this drone battery monitoring code raise when run?
Drone Programming
battery_levels = [100, 85, 60, 40, 20] for i in range(len(battery_levels)): if battery_levels[i] < 30: print(f"Warning: Battery low at {battery_levels[i]}%")
Attempts:
2 left
💡 Hint
Check the syntax of the if statement carefully.
✗ Incorrect
The if statement is missing a colon at the end, causing a SyntaxError.
📝 Syntax
advanced1:30remaining
Which Option Produces the Correct Drone Command Dictionary?
Which option creates a dictionary mapping drone IDs to their status correctly?
Attempts:
2 left
💡 Hint
Remember the correct syntax for dictionary comprehensions in Python.
✗ Incorrect
Option A uses the correct syntax for dictionary comprehension. Others have syntax errors.
🚀 Application
expert2:30remaining
Calculate Total Payload Capacity from Drone Fleet Data
Given the drone fleet data below, what is the total payload capacity of all drones combined?
Drone Programming
fleet = [
{'id': 'D1', 'payload_kg': 5.5},
{'id': 'D2', 'payload_kg': 7.0},
{'id': 'D3', 'payload_kg': 4.5},
{'id': 'D4', 'payload_kg': 6.0}
]
total_payload = sum(drone['payload_kg'] for drone in fleet)
print(round(total_payload, 1))Attempts:
2 left
💡 Hint
Add all payload_kg values and round to one decimal place.
✗ Incorrect
Sum of 5.5 + 7.0 + 4.5 + 6.0 equals 23.0 kg total payload capacity.