You are on page 1of 19
OQ — @ sanfoundry.com/1000-arduir °o SANFOUNDRY Arduino MCQ (Multiple Choice Questions) Here are 1000 Arduino MCQ (Chapterwise). 1. What is Arduino? a) Programming language b) Image editing software c) Open-source electronics platform d) Text editor Ay, Answer: ¢ Explanation: Arduino is an open-source hardware and software platform that is easy to use. Arduino boards are capable of reading analog or digital input signals from various sensors. EUS NT] YES sas 2. How many types of Arduino do we have? a)4 b)8 c) 12 d) 16 * View Answer Answer: b Explanation: There are 4 Arduino boards and 4 Arduino shields that fit on top of Arduino compatible boards to provide additional capability like connecting to the internet, motor controller, LCD screen controlling, ete. Aa YidNdallOl. Mere dle 4 APQUITIO VOdIUS dia 4 Arduino shields that fit on top of Arduino compatible boards to provide additional capability like connecting to the internet, motor controller, LCD screen controlling, etc.. 3. What language is a typical Arduino code based on? a) Assembly Code b) Python c) Java d) C/C++ a View Answer Answer: d Explanation: The Arduino code is basically a lightly modified version of the C++ programming language. It includes certain functions or modules that are specific to the development of the Arduino platform and was preinstalled in the language by the developers. 4. Arduino shields are also called as a) Another Arduinos b) Extra peripherals “ _atly modified version of the C++ programming language. It includes certain functions or modules that are specific to the development of the Arduino platform and was preinstalled in the language by the developers. 4. Arduino shields are also called as a) Another Arduinos b) Extra peripherals c) Add on modules d) Connectivity modules * View Answer Answer: c Explanation: The Arduino boards can connect with add- on modules termed as shields. Multiple, and possibly stacked shields may be individually addressable via an |2C serial bus. 5. What language is the Arduino IDE built on? a) Java b) HTML ©) C/C++ d) Python We ower. txplanation: The Arduino boards can connect with add- on modules termed as shields. Multiple, and possibly stacked shields may be individually addressable via an |2C serial bus. A 5. What language is the Arduino IDE built on? a) Java b) HTML c) C/C++ d) Python i Answer Answer: a Explanation: The Arduino code is primarily a subset of the C++ programming language. However, the IDE (Integrated Development Environment) was written in the Java programming language. An IDE is a software that provides primarily a graphical user interface for compiling and maintaining/editing code for a platform. advertisement @ EDN Sy Sign up for the latest news, a | ee Electronic Design News Electronic Design News (EDN) Is An Electronics Community For Engineers, By Engineers EDN Subscribe > 6. How many analog pins are used in Arduino Mega board? a) 12 b) 16 8 d) 14 * View Answer Answer: b Explanation: It has lots of digital input/output pins, 14 can be used as PWM output 16 analog inputs, a USB connection, a power jack, and a reset button. 7. Arduino IDE consists of 2 functions. What ay they? a) Loop() and build() and setup() EDN a EDN Electronic Design News a Answer: b Explanation: It has lots of digital input/output pins, 14 can be used as PWM output 16 analog inputs, a USB connection, a power jack, and a reset button. 7. Arduino IDE consists of 2 functions. What are they? a) Loop() and build() and setup() b) Build() and loop() c) Setup() and build() d) Setup() and loop() * View Answer Answer: d Explanation: Setup() is called once in the program when a sketch starts after power-up. It is used to initialixe variables, input and output pin modes, and other libraries needed in the sketch. Loop() is used after setup() been called, function loop() is executed repeatedly in thé main program. It controls the board until t board is powered off or is reset. EDN a EDN Electronic Design News A Opt) IS usea aTter setupl) been callea, tunction loop() is executed repeatedly in the main program. It controls the board until the board is powered off or is reset. 8. Arduino Codes are referred to as the Arduino IDE. a) sketches b) drawings c) links d) notes * View Answer Answer: a Explanation: Any Arduino Code that is saved using the Arduino IDE, is referred toasa “sketch” by the Arduino IDE. These “sketches” are nothing but the code saved in the extension name being “.ino”. a file with 9. What is the default bootloader of the Arduino UNO? a) AIR-boot b) GAG c) Optiboot bootloader d) Bare box EDN a EDN Electronic Design News a oduction d) Pico-Power © View Answer 11. What is the use of the Arduino.h header file? a) It enables the programmer to access all of Arduino’s core functionality b) It doesn’t have any use and can be omitted at any point of time in the code c) It gives root access to the microcontroller’s file system d) It allows other people to create libraries for the Arduino code * View Answer Answer: a Explanation: The Arduino.h file is not something that we encounter during the process of writing the code for the Arduino board because the preprocessor takes care of it before compilation. However, it is a very important file without which we cannot access the Arduino’s features like GPIO IO, Analog etc. EDN a EDN Electronic Design News a mething that we encounter during the process of writing the code for the Arduino board because the preprocessor takes care of it before compilation. However, it is a very important file without which we cannot access the Arduino's features like GPIO IO, Analog |O, etc. 12. What is the use of the Vin pin present on some Arduino Boards? a) To ground the Arduino Board b) To power the Arduino Board c) To provide a 5V output d) Is used for plugging in 3V supply * View Answer Answer: b Explanation: The Vin Pin can be used for accepting a 9V power supply which is usually given through the external Jack. It can also be used for getting a 9V output when the Arduino is powered through the Jack, thus acting as both a power source and a short from the power source both when needed. | AD ANA Ab in than parenct auaciitinn neacnee af an EDN Sti eea iy a EDN Electronic Design News A WAnswer J Answer: b Explanation: The Vin Pin can be used for accepting a 9V power supply which is usually given through the external Jack. It can also be used for getting a 9V output when the Arduino is powered through the Jack, thus acting as both a power source and a short from the power source both when needed. 13. What is the correct execution process of an Arduino code? a) Editor->Preprocessor->Compiler b) Preprocessor->Editor->Compiler c) Compiler->Preprocessor->Editor d) Editor->Compiler->Preprocessor a Answer Answer: a Explanation: The code that is written is first done so with the help of the editor. Without the editor there will be no place where the programmer can write his or her code. a | that the code is handed over to the preprocessor and finally the compiler which EDN a EDN Electronic Design News 15. Which board is the first to use a I ee gee Electronic Design News (EDN) Is An Electronics Community For Engineers, By Engineers microcontroller within the build USB? a) RedBoard b) Leonardo c) LilyPad d) UNO * View Answer Answer: b Explanation: The Leonard is Arduino's first development board to use one microcontroller with built-in USB. This means that it can be cheaper and simple, And also, code libraries are available which allow the board to emulate a computer keyboard etc. 16. Which Arduino Board contains an onboard joystick? a) Arduino Nano b) Arduino UNO 7) Arditina Fenlara EDN a EDN Electronic Design News A (MCortex MU+ b) ARM Cortex M3 c) Atmega32u4 d) Atmega328P View Answer 19. Which software is used to upload the Arduino Sketches to the board? a) avrgcc b) gtt c) cpython for windows d) avrdude my, Answer: d Explanation: The AVR-GCC/G++ software is a compiler which can take C/C++ code as input and translate or compile it into Binary Code that follows the instruction set for the AVR Microcontrollers. After that process is done, the avrdude software has the job of uploading the hex file to the microcontroller, more specifically the AVR Microcontroller family. advertisement | ema & 8 EDN Rieu a EDN Electronic Design News « 4DN —_ Subscribe to our electronics community for design engineers & professionals Electronic Design News EDN Subscribe > 20. What is the use for the 2 serial pins on the Arduino Diecimila? a) To send PWM signals b) To send and receive Serial TTL signals c) To send and receive GPIO digital signals d) To receive analog signals a View Answer Answer: b Explanation: There are two pins for sending and receiving the Serial TTL Signals. The nie (for transmission) and the RX (for receiving). In tha Arditing Diarimila thay ara cannactad ta EDN Rieu a EDN Electronic Design News OQ — @ sanfoundry.com/1000-arduir °o A (Wanswer 25. What is the difference between an IDE and a compiler? a) The compiler executes the code while the IDE gives a graphical environment for writing the code b) The compiler links the code to the respective files and the IDE takes it from there c) The compiler and the IDE are the same thing d) The IDE executes the code while the compiler gives a graphical environment for writing the code * View Answer Answer: a Explanation: According to the primary definitions of a compiler and an IDE, the job of debugging and executing a piece of code falls on the compiler, while the job of the IDE is to provide an easy to use environment for writing the code in the first place. 26. What will be the output of the followin: pur A © View Answer 27. Where does the Arduino IDE search if it needs to find out the Name of a type of Arduino Board? a) Arduino.h b) build.txt c) boards.txt d) build.core * View Answer Answer: ¢ Explanation: The different types of Arduino Boards which are also commonly referred to as “Variants” are present in the boards.txt file. This is a particularly important file because it contains the different configuration information for different Arduino Boards like which compiler toolchain to execute on a particular variant. run on every startup of the Arduino System? a)4 b)5 28. How many times does the setup() ior? | pansy A (sis a particularly important tile because it contains the different configuration information for different Arduino Boards like which compiler toolchain to execute on a particular variant. 28. How many times does the setup() function run on every startup of the Arduino System? a)4 b) 5 cd2 d)1 Answer: d Explanation: The setup() function is used predominantly to configure the pins, variables, Serial data, etc. and is executed only once throughout the entire cycle of the program. However other than the above- mentioned uses, it can also be used to execute technically all aspects of an Arduino program, but since it only runs one time, it’s not very useful for anything other than A configuring. RE READY F . A [rv View Answer 39. What type of signal does the analogWrite() function output? a) Pulse Code Modulated Signal b) Frequency Modulated Signal c) Pulse Width Modulated Signal d) Pulse Amplitude Modulated Signal 7 View Answer | Answer: c Explanation: The Pulse Width Modulated Signal is the one which is transmitted by the analogWrite() function. This is done in an attempt to replicate the analog functionality to control certain sensors and actuators. 40. What is the objective of the code given below if it is executed on the Arduino Uno? #include int pin=13; void setup() { pinMode(pin, OUTPUT); 4 Serial .begin(9600); AuUARWN OQ — @ sanfoundry.com/1000-arduir °o a ~ view Answer 45. What is the resolution of the micros() function on the Arduino Nano? a) 7 Microseconds b) 4 Microseconds c) 6 Microseconds d) 2 Microseconds my, Answer: b Explanation: The micros() function gives the up-time of the Arduino program in microseconds. This function has a resolution, i.e. the intervals in which it gives an output. This resolution depends on the Frequency of the specific Arduino Board that its running on. On the Arduino Duemilanove it’s resolution is 4 Microseconds. 46. What is the use of the Interrupt Service Routine in an Arduino? a) To boot up the arduino :

You might also like