All commands have correct syntax; negative ascend reduces altitude, which is allowed.
Final Answer:
No error; program runs and prints altitude 2. -> Option B
Quick Check:
Negative ascend allowed = altitude 2 [OK]
Hint: Negative ascend changes altitude down, not error [OK]
Common Mistakes:
Thinking negative ascend causes error
Missing parentheses in commands
Assuming print syntax is wrong
5. You want a drone to survey a large farm by flying over 5 points and collecting data at each. Which programming approach best solves this efficiently?
hard
A. Fly randomly and hope to cover all points.
B. Write separate commands for each point manually.
C. Use a loop to fly to each point and collect data automatically.
D. Only collect data at the first point to save time.
Solution
Step 1: Understand the problem
Surveying multiple points requires repeating similar actions for each point.
Step 2: Choose efficient programming method
Using a loop automates flying and data collection at each point, saving time and reducing errors.
Final Answer:
Use a loop to fly to each point and collect data automatically. -> Option C
Quick Check:
Loop automates repeated tasks = A [OK]
Hint: Loops repeat tasks efficiently [OK]
Common Mistakes:
Writing repetitive manual commands
Flying randomly without control
Skipping data collection points
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.