

MCQOPTIONS
Saved Bookmarks
This section includes 10 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. |
Give the output of the following code. |
A. | Error |
B. | 12 |
C. | 1 |
D. | 13View Answer |
Answer» C. 1 | |
6. |
What would the following code output? |
A. | Error |
B. | 0 |
C. | 0xa |
D. | 0xABView Answer |
Answer» B. 0 | |
7. |
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 | |
8. |
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 | |
9. |
Check the validity of the two statements derived from the two lines of code supplied below. |
A. | Statements i, ii and iii are all false |
B. | Only Statement iii is false |
C. | Statements ii and iii are true |
D. | Only statement i is trueView Answer |
Answer» C. Statements ii and iii are true | |
10. |
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 | |