Study for the Internet of Things (IOT102) Test. Access comprehensive flashcards and multiple choice questions, each with hints and explanations. Get prepared for your exam!

Multiple Choice

In Arduino sketches, which token is used to include external libraries?

Including external libraries in Arduino sketches is done with a preprocessor directive that brings in the library’s header file. This token signals the compiler to insert the library’s declarations so you can use its functions and objects in your sketch. That’s why the include directive is the correct choice. The other tokens have different roles: break ends a loop or switch, void specifies a function’s return type, and #define creates a macro or constant, not used for bringing in libraries.

Including external libraries in Arduino sketches is done with a preprocessor directive that brings in the library’s header file. This token signals the compiler to insert the library’s declarations so you can use its functions and objects in your sketch. That’s why the include directive is the correct choice. The other tokens have different roles: break ends a loop or switch, void specifies a function’s return type, and #define creates a macro or constant, not used for bringing in libraries.