0
0
Drone Programmingprogramming~10 mins

Why drones solve real industry problems in Drone Programming - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to make the drone take off.

Drone Programming
drone.[1]()
Drag options to blanks, or click blank then click option'
Aland
Btake_off
Chover
Dmove_forward
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'land' instead of 'take_off' will make the drone land.
2fill in blank
medium

Complete the code to make the drone fly forward by 10 meters.

Drone Programming
drone.move_forward([1])
Drag options to blanks, or click blank then click option'
A10
B5
C15
D20
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a smaller or larger number will move the drone the wrong distance.
3fill in blank
hard

Fix the error in the code to check if the drone's battery is above 20%.

Drone Programming
if drone.battery_level [1] 20:
Drag options to blanks, or click blank then click option'
A<
B<=
C>
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' will check if battery is less than 20, which is wrong here.
4fill in blank
hard

Fill both blanks to create a dictionary of drone sensors with their status.

Drone Programming
sensors_status = {"camera": [1], "gps": [2]
Drag options to blanks, or click blank then click option'
ATrue
BFalse
C"active"
D"inactive"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up True/False or using strings instead of booleans.
5fill in blank
hard

Fill all three blanks to filter drone data for sensors with values above 50.

Drone Programming
filtered_data = {k: v for k, v in drone_data.items() if v [1] [2] and k [3] "temperature"}
Drag options to blanks, or click blank then click option'
A>
B50
C!=
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '!=' will only keep temperature sensor.