Explore topic-wise MCQs in Arduino.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Arduino knowledge and support exam preparation. Choose a topic below to get started.

1.

How many types of macros are there?

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
2.

#warning and #error are two preprocessor directives and the job of #warning is to throw a message to the Arduino IDE. However, which of these preprocessor directives stops the compilation process?

A. #error
B. #warning
C. #include
D. #define
Answer» B. #warning
3.

What character does the preprocessor look out for whilst searching for commands in the code?

A. x
B. @
C. #
D. !
Answer» D. !
4.

What is the way of throwing an error using preprocessing directives to the Arduino Compiler and forcing it to stop compilation?

A. #stop
B. #cut
C. #error
D. #warning
Answer» D. #warning
5.

What is the correct execution process of an Arduino code.

A. Editor->Compiler->Preprocessor
B. Editor->Preprocessor->Compiler
C. Preprocessor->Editor->Compiler
D. Compiler->Preprocessor->Editor
Answer» C. Preprocessor->Editor->Compiler
6.

What is the use of #define?

A. To define macros
B. To define pointer variables
C. To define file names
D. To create variables
Answer» B. To define pointer variables
7.

What is the #include Preprocessor Directive used for?

A. For getting operating system information
B. For performing read/write operations
C. For importing header files or other codes into the existing code
D. For compiling the written code
Answer» D. For compiling the written code