QUESTION IMAGE
Question
question 5 of 10
in the makecode micro:bit reaction speed test program, how do you
determine how long it takes a user to react?
a. use a stopwatch to time users and how long it takes them to
react. add the times together and divide by the number of users to
get an average.
b. keep track of the total running time of the program from when the
user is prompted and when they react. subtract one time from the
other to get the reaction time.
c. log how long it takes to create a function and set up two button-
press events. add this to the reaction time.
d. input the reaction times into another computer. instruct the
computer to perform the calculations.
To determine reaction time in the micro:bit program, we track the time when the user is prompted (start time) and when they react (end time). Subtracting the start time from the end time gives the reaction time. Option A is incorrect as a stopwatch isn't used in the program's logic. Option C is wrong because function setup time isn't related to reaction time. Option D is incorrect as the program itself can calculate, no need for another computer.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. Keep track of the total running time of the program from when the user is prompted and when they react. Subtract one time from the other to get the reaction time.