HOME
FUNDAMENTALS
SETUP
MOVEMENT
REMOTE CONTROL
SENSING
---
-
-
-
Exit
- :
Check Your Understanding:
1. A function allows you to:
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
2. What are the steps required to use a function?
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
3. How do you call a function?
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
4. Which of these is not part of the function definition?
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
Shaft Encoders
(Inventor's Guide)