Challenge - 5 Problems
Drone Industry Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this drone flight status code?
Consider this code snippet that simulates a drone's battery check before flight. What will it print?
Drone Programming
battery_level = 15 if battery_level < 20: print("Warning: Battery too low for flight") else: print("Battery sufficient for flight")
Attempts:
2 left
💡 Hint
Check the battery_level value and the condition in the if statement.
✗ Incorrect
Since battery_level is 15, which is less than 20, the if condition is true, so it prints the warning message.
🧠 Conceptual
intermediate1:30remaining
Why do drones use GPS for delivery?
Which of the following best explains why drones rely on GPS technology for delivery tasks?
Attempts:
2 left
💡 Hint
Think about how drones find their way to the right place.
✗ Incorrect
GPS provides accurate location data so drones can fly autonomously to the correct delivery address.
🔧 Debug
advanced2:30remaining
Identify the error in this drone altitude control code
This code is meant to keep the drone at 100 meters altitude. What error will it cause?
Drone Programming
altitude = 90 while altitude < 100: altitude += 5 print(f"Drone altitude: {altitude} meters")
Attempts:
2 left
💡 Hint
Check the syntax of the while loop.
✗ Incorrect
The while statement is missing a colon at the end, causing a SyntaxError.
🚀 Application
advanced2:00remaining
How does drone data improve agriculture?
Which option best describes how drones help farmers improve crop health?
Attempts:
2 left
💡 Hint
Think about how drones use cameras and sensors in farming.
✗ Incorrect
Drones take pictures from above to spot problems in crops early, helping farmers act quickly.
❓ Predict Output
expert3:00remaining
What is the output of this drone delivery simulation code?
This code simulates a drone delivering packages with a battery check. What will it print?
Drone Programming
packages = ["Box1", "Box2", "Box3"] battery = 50 for package in packages: if battery < 20: print(f"Cannot deliver {package}, battery too low") break print(f"Delivering {package}") battery -= 20 else: print("All packages delivered successfully")
Attempts:
2 left
💡 Hint
Track battery level after each delivery and when the loop breaks.
✗ Incorrect
Battery starts at 50. After delivering Box1, battery is 30. Before Box2, battery is 30 (>=20), so it delivers Box2 and battery becomes 10. Before Box3, battery is 10 (<20), so it cannot deliver Box3 and breaks.