- :
Check Your Understanding:
  1. 1. A function allows you to:
  2. Use a sensor of your own design
    Use an analog sensor as a digital sensor
    Write a segment of code once, name it and then use it throughout the program
    Write a segment of code once and then use it under a different name throughout the program
  3. 2. What are the steps required to use a function?
  4. Declare it first and then Call it
    Call it first and then declare it
    Name it and then Declare it
    Call it and then Use it
  5. 3. How do you call a function?
  6. Type the word CALL (all caps) and then the function name
    Type the word USE (all caps) and then the function name
    Type the function name as a command, ending with a semicolon
    Type the word VOID (all caps) and then the function name
  7. 4. Which of these is not part of the function definition?
  8. The word, void
    Function name followed by parentheses
    A set of square brackets with the code the function is to execute within them
    A set of curly braces with the code the function is to execute within them