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. |
What is the use of the boilerplate code given below? |
| A. | Reading Strings from Flash Memory |
| B. | Reading Integers from Flash Memory |
| C. | Reading files from Flash Memory |
| D. | Reading special characters from Flash MemoryView Answer |
| Answer» C. Reading files from Flash Memory | |
| 2. |
What is the purpose of the boilerplate code given below? |
| A. | To copy data from the SRAM |
| B. | To copy data from the EEPROM |
| C. | To copy data from the Flash Memory |
| D. | To copy data to the EEPROMView Answer |
| Answer» D. To copy data to the EEPROMView Answer | |
| 3. |
In which versions of the Arduino IDE can the PROGMEM Utility be used without declaration in the Arduino code? |
| A. | Any Arduino IDE version above 2.0 |
| B. | Any Arduino IDE version above 1.0 |
| C. | Any Arduino IDE version below 1.0 |
| D. | Any Arduino IDE version above 3.1 |
| Answer» C. Any Arduino IDE version below 1.0 | |
| 4. |
Given below are four lines of boilerplate code. Which ones are faulty? |
| A. | Lines 1 and 3 |
| B. | Lines 3 and 4 |
| C. | Lines 1 and 2 |
| D. | Lines 3 and 2View Answer |
| Answer» C. Lines 1 and 2 | |
| 5. |
What is the equivalent macro for the PROGMEM Utility when dealing with sending data that is to be printed, into the Flash memory? |
| A. | A() Macro |
| B. | C() Macro |
| C. | F() Macro |
| D. | N() Macro |
| Answer» D. N() Macro | |
| 6. |
Can PROGMEM be used on arrays? |
| A. | Yes |
| B. | No |
| Answer» B. No | |
| 7. |
Can the PROGMEM Utility work on non-static variables? |
| A. | Yes |
| B. | No |
| Answer» B. No | |
| 8. |
What type of variables does the PROGMEM Utility work on? |
| A. | Globally Defined or static |
| B. | Defined inside a function and non-static |
| C. | Defined inside a for-loop and non-static |
| D. | Defined inside a while-loop and non-static |
| Answer» B. Defined inside a function and non-static | |
| 9. |
Which header file contains the PROGMEM Utility? |
| A. | The avr/pgmspace.h header file |
| B. | The pmspace.h header file |
| C. | The avr/pspace.h header file |
| D. | The avr/progmem.h header file |
| Answer» B. The pmspace.h header file | |
| 10. |
In which memory does the Arduino save data in when the PROGMEM Utility is invoked? |
| A. | EEPROM |
| B. | SRAM |
| C. | Flash |
| D. | DRAM |
| Answer» D. DRAM | |