Drone Basics
Variables
Loops/Functions
Logic
Command Prompt
100

What command makes the drone leave the ground?

What is takeoff

100

What is a variable used for?

What is to store information/data.

100

What does a loop do?

What is repeat instructions

100

What programming word is used to make a decision?

What is if

100

CLI stands for

What is Command Line Interface

200

What command safely ends a flight and brings the drone to the ground?

Land

200

Which of these is a variable name?

  • 25
  • batteryLevel
  • Takeoff
  • Fly Forward

What is batteryLevel

200

What is a function?

What is a reusable block of code

200

If the first condition is true, which block of code runs?

What is if

200

Which command changes from one folder (directory) to another?

What is cd

300

A drone flies forward 50 cm, yaws right 90°, then flies forward another 50 cm. Is it flying in a straight line or changing direction?

What is changing directions

300

What is the value of distance after this code runs?
distance = 50
distance = distance + 25

What is 75

300

hat do you have to do after creating a function if you want it to run?

What is call the function

300

What programming word means "otherwise"?

What is else

300

Which command displays the files and folders in the current directory?

What is dir

400

Which command would you use to rotate the drone 90 degrees to the right without changing its location?

What is yaw

400

What is the value of speed after this code runs? 

speed = 10
speed = speed * 2

What is 20

400

A loop repeats a command 5 times. The drone moves forward 20 cm each time. How far does it travel?

What is 100 cm

400

if battery > 50:
    fly_forward()
else:
    land()
The battery level is 30%. What will the drone do?

What is land

400

What IP address is commonly used to refer to your own computer (localhost)?

What is 127.0.0.1

500

Which drone maneuver typically uses more battery power than normal flight?

What is a flip

500

A variable named flips starts at 2. Then this code runs:
flips = flips + 3

What is the new value of flips?

What is 5

500

What shape is created by repeating:

  • Move Forward
  • Turn Right 90°

four times?

What is a square

500

if light == "green":
    go()
elif light == "yellow":
    slow_down()
else:
    stop()
What happens when the light is yellow?

What is slow down

500

What Python package manager command is used to install applications and libraries from the command line?

What is pip install