InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Is there any difference between exit-controlled loop structure and entry-controlled loop structure?(a) Yes(b) NoI had been asked this question during an interview.I would like to ask this question from Looping topic in division Arduino Programming of Arduino |
|
Answer» Right option is (a) Yes |
|
| 52. |
What is the name of the | operator?(a) Logical OR(b) Bitwise OR(c) Logical AND(d) Bitwise ANDI have been asked this question in my homework.The query is from Operators in portion Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (b) Bitwise OR |
|
| 53. |
What is the use of the SD.h Library in Arduino?(a) To communicate with the SD Card Module(b) To communicate with another microcontroller(c) To communicate with the computer(d) To communicate with the internetI had been asked this question in an interview for internship.This intriguing question originated from Standard Libraries topic in chapter Arduino Programming of Arduino |
|
Answer» Correct option is (a) To communicate with the SD CARD Module |
|
| 54. |
What is the use of the interrupt mode?(a) Decides which type of transition to trigger on(b) Decides when to turn off interrupts(c) Decides which pin to turn off(d) Decides when to turn off the Arduino BoardThe question was asked in class test.My question comes from Interrupt Service Routine in portion Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (a) Decides which type of transition to trigger on |
|
| 55. |
What is the use of pin change interrupts?(a) To change pins during interrupts(b) To use more pins for interrupts(c) To disable pin usage during interrupts(d) To enable pin usage during interruptsThe question was posed to me during a job interview.The origin of the question is Interrupt Service Routine in portion Arduino Programming of Arduino |
|
Answer» Correct answer is (b) To use more pins for interrupts |
|
| 56. |
Which of these devices are supported by the Wire Library?(a) I2C Bus(b) Wi-Fi Devices(c) Bluetooth Devices(d) Cellular DevicesThe question was asked during an online exam.I would like to ask this question from Standard Libraries topic in chapter Arduino Programming of Arduino |
|
Answer» Correct option is (a) I2C Bus |
|
| 57. |
What is the return type of the delayMicroseconds() function?(a) Unsigned Int(b) Signed Int(c) Unsigned Long(d) Signed LongThis question was addressed to me by my school principal while I was bunking the class.Asked question is from Time Functions in section Arduino Programming of Arduino |
|
Answer» Correct OPTION is (a) UNSIGNED Int |
|
| 58. |
How many RX-TX pairs of pins are present in the Arduino Mega?(a) 1(b) 2(c) 3(d) 4This question was addressed to me during an interview.This interesting question is from Serial and Stream Communications in division Arduino Programming of Arduino |
|
Answer» The correct option is (d) 4 |
|
| 59. |
Which of the following statements is not true when dealing with the Firmata library?(a) The Firmata Library is used to establish communications between the Arduino and the Desktop(b) The Firmata Library uses the Firmata Protocol for communicating data(c) The Firmata Library uses the Midi Message Format(d) The Firmata Library can only be used on an Arduino UnoThis question was addressed to me in class test.My question is taken from Standard Libraries in chapter Arduino Programming of Arduino |
|
Answer» The correct ANSWER is (d) The Firmata Library can only be used on an ARDUINO Uno |
|
| 60. |
What is the need for a quantizer in Digital Communications?(a) Break up a sampled signal to a finite dataset(b) Sample a pure analog signal(c) Sample a digital signal(d) Encode an analog signalI have been asked this question in an interview for job.Origin of the question is Digital Input Output topic in division Arduino Programming of Arduino |
|
Answer» Right option is (a) Break up a SAMPLED signal to a finite dataset |
|
| 61. |
Is the loop() function a replacement of the main() function in the Arduino Programming Environment?(a) No, it is a replacement for the constructor(b) Yes, it is a replacement(c) Yes, but only for certain Arduino Boards(d) No, it is not a replacementThe question was posed to me by my college director while I was bunking the class.I need to ask this question from The loop() Function in section Arduino Programming of Arduino |
|
Answer» Right answer is (d) No, it is not a replacement |
|
| 62. |
Can external generic C/C++ libraries be imported to the Arduino IDE and used in the code?(a) Yes, external C/C++ libraries can be used with the Arduino code(b) No, no external libraies can be imported to the Arduino code(c) Yes, but only libraries that are approved by the company can be used(d) Yes, but the libraries must be written in Arduino Code onlyI got this question in an online interview.This is a very interesting question from Programming topic in portion Arduino Programming of Arduino |
|
Answer» The correct choice is (a) YES, external C/C++ libraries can be used with the Arduino code |
|
| 63. |
Which of the following file format is generated once the C code is compiled?(a) .c(b) .h(c) .ino(d) .oThis question was addressed to me during an interview for a job.I'd like to ask this question from Compilation in division Arduino Programming of Arduino |
|
Answer» RIGHT choice is (d) .o Explanation: All C code is compiled to a .o file. This file FORMAT is called the OBJECT File Format. The COMPILER creates these object files during compilation, for each SOURCE code and then links each of these together for making the executable file for that language. |
|
| 64. |
What is the difference between the INPUT and INPUT_PULLUP arguments in the pinMode() function?(a) They are both the same(b) INPUT supports only analog voltages while INPUT_PULLUP supports only digital voltage readings(c) INPUT takes the default reading as 0 while INPUT_PULLUP takes default reading as 1023(d) INPUT takes the default reading as 1023 while INPUT_PULLUP takes the default reading as 0The question was asked during an internship interview.My query is from Setting Pin Mode topic in division Arduino Programming of Arduino |
|
Answer» RIGHT option is (c) INPUT takes the default reading as 0 while INPUT_PULLUP takes default reading as 1023 To explain: The pinMode() function has 2 arguments; the pin number and the MODE. The pin number argument takes the number of the pin as input while the mode can be SET in 3 different ways, including INPUT, OUTPUT, and INPUT_PULLUP. Here the OUTPUT argument makes the pin ready for sending signals, the INPUT argument makes the pin take a voltage as input from an external SOURCE. The INPUT_PULLUP also does the same function as INPUT however only differing in the aspect of base voltage, where the INPUT argument pulls down the voltage of that port to 0V every time there is no voltage is detected across the port while the INPUT_PULLUP argument pulls up the voltage across the port to the maximum for that board whenever there is no input voltage across the port, and the reading at the port decreases with INCREASE in voltage applied across the port. |
|
| 65. |
What type of signal does the analogWrite() method generate when a pin is set to OUTPUT mode?(a) Digital Signal(b) Pulse Code Modulated Signal(c) Pulse amplitude Modulated Signal(d) Pulse Width Modulated SignalI have been asked this question in examination.Enquiry is from Setting Pin Mode topic in chapter Arduino Programming of Arduino |
|
Answer» Correct answer is (d) PULSE Width Modulated Signal |
|
| 66. |
Select the correct name for the SPI master-slave configuration.(a) Dependent Slave Configuration(b) Independent Master Configuration(c) Independent Slave Configuration(d) Chained Master and Slave ConfigurationThis question was addressed to me at a job interview.Origin of the question is Uploading topic in portion Arduino Programming of Arduino |
|
Answer» Correct choice is (c) INDEPENDENT SLAVE Configuration |
|
| 67. |
Where does the Arduino IDE search if it needs to find out the Name of a type of Arduino Board?(a) build.txt(b) boards.txt(c) build.core(d) Arduino.hThe question was posed to me in an online quiz.The query is from Compilation in division Arduino Programming of Arduino |
|
Answer» CORRECT choice is (b) BOARDS.txt To elaborate: 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. |
|
| 68. |
What functions are a static variable visible to?(a) Only Static Functions(b) All Types of Functions(c) Only Functions with a return type(d) Only Non Static FunctionsI have been asked this question during an interview for a job.My question comes from Variable Scope and Qualifiers topic in division Arduino Programming of Arduino |
|
Answer» Right ANSWER is (a) Only STATIC Functions |
|
| 69. |
What is the function of the strcmp() function?(a) To compare two strings(b) To compile two strings(c) To concatenate two strings(d) To converge two stringsThis question was addressed to me in a job interview.I need to ask this question from String Manipulation topic in division Arduino Programming of Arduino |
|
Answer» Right ANSWER is (a) To compare TWO strings |
|
| 70. |
What is the return type for the shiftOut() function?(a) double(b) null(c) long(d) intI have been asked this question in final exam.I want to ask this question from Advanced Input Output in section Arduino Programming of Arduino |
|
Answer» Right option is (b) null |
|
| 71. |
What are the three components of a for-loop?(a) initialization, conditional, increment/decrement(b) conditional, memory allocation, memory deletion(c) reset, increment, conditional(d) reset, increment/decrement, memory allocationThis question was addressed to me in unit test.I'd like to ask this question from Looping topic in portion Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (a) initialization, conditional, increment/decrement |
|
| 72. |
How many parameters does the flush() function accept?(a) 0(b) 1(c) 2(d) 4I got this question in quiz.I'm obligated to ask this question of Serial and Stream Communications topic in chapter Arduino Programming of Arduino |
|
Answer» Right ANSWER is (a) 0 |
|
| 73. |
What is the numeric base of the math operations performed in binary?(a) 1(b) 2(c) 3(d) 4I got this question in exam.The query is from Digital Input Output in chapter Arduino Programming of Arduino |
|
Answer» Right choice is (B) 2 |
|
| 74. |
What do we need to do if we want to run the setup() function in an infinite loop?(a) Call the setup() function from a custom named function(b) Call the setup() function from a constructor(c) Call the setup() function from the loop() function(d) Call the setup() function from the destructorI got this question in semester exam.I'm obligated to ask this question of The setup() Function topic in chapter Arduino Programming of Arduino |
|
Answer» The correct CHOICE is (c) Call the setup() function from the loop() function |
|
| 75. |
How many types of macros are there?(a) 1(b) 2(c) 3(d) 4The question was posed to me in my homework.My query is from Preprocessing in portion Arduino Programming of Arduino |
|
Answer» Correct answer is (b) 2 |
|
| 76. |
Is the Arduino code an Object-Oriented programming language or a Procedural programming language?(a) The Arduino Code follows the Object-Oriented ideology(b) The Arduino Code follows the Top-Down Procedural ideology(c) The Arduino Code follows the Bottom-Up Procedural ideology(d) The Arduino Code follows a custom Procedural IdeologyThe question was asked in a job interview.This intriguing question originated from Programming topic in section Arduino Programming of Arduino |
|
Answer» Correct answer is (a) The ARDUINO Code FOLLOWS the Object-Oriented ideology |
|
| 77. |
Is it possible to write code for the Arduino in any other programming language?(a) Yes, you can write(b) No, it only allows the use of Arduino Code(c) Yes, but you must write the code in C/C++ only(d) Yes, but you must write the code in Python OnlyThe question was posed to me during an online interview.Asked question is from Programming in division Arduino Programming of Arduino |
|
Answer» Right option is (a) Yes, you can write |
|
| 78. |
How many pins are available for interrupt functions in the Arduino Uno?(a) No pins(b) All pins except pin 2 and 3(c) Only pin 2(d) Only pins 2 and 3I had been asked this question in an interview for internship.Question is taken from Interrupt Service Routine topic in section Arduino Programming of Arduino |
|
Answer» Correct OPTION is (b) All pins except pin 2 and 3 |
|
| 79. |
What is the use of the Interrupt Service Routine in an Arduino?(a) To automate functions(b) To boot up the arduino(c) To make more memory(d) To exit any code that is runningThe question was asked during an interview.Asked question is from Interrupt Service Routine in division Arduino Programming of Arduino |
|
Answer» Correct answer is (a) To automate FUNCTIONS |
|
| 80. |
From which memory does the compiler revert to if a variable is declared volatile?(a) RAM(b) Storage Register(c) ROM(d) EEPROMI had been asked this question by my school principal while I was bunking the class.The doubt is from Variable Scope and Qualifiers in division Arduino Programming of Arduino |
|
Answer» Right choice is (a) RAM |
|
| 81. |
What is the purpose of the pow(x,y) function?(a) To find x^y(b) To find y^x(c) To find e^x(d) To find 10^yI have been asked this question in my homework.This interesting question is from Mathematical Functions in section Arduino Programming of Arduino |
|
Answer» Right choice is (a) To find x^y |
|
| 82. |
How to make the loop function run only once but the code inside run infinitely?(a) Create a recursive function call statement(b) Create a nested infinite loop within the loop() function(c) Call the setup() function from the loop() function(d) Call the loop() function from the setup() functionI had been asked this question in unit test.I need to ask this question from The loop() Function topic in section Arduino Programming of Arduino |
|
Answer» Correct choice is (b) Create a nested infinite loop within the loop() function |
|
| 83. |
#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) #defineThe question was posed to me in an international level competition.My query is from Preprocessing in chapter Arduino Programming of Arduino |
|
Answer» The correct OPTION is (a) #error |
|
| 84. |
How many configuration files are there which allows us to customize the architecture in an Arduino in order to add support for custom boards?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in class test.My enquiry is from Compilation topic in portion Arduino Programming of Arduino |
|
Answer» The correct option is (c) 3 |
|
| 85. |
How can you assign the binary number 101 to an integer variable?(a) Var = B101(b) Var = 101(c) Var = bin(101)(d) Var = Bin(101)I had been asked this question in examination.This question is from Datatypes topic in section Arduino Programming of Arduino |
|
Answer» Right answer is (a) Var = B101 |
|
| 86. |
What language is a typical Arduino code based on?(a) C/C++(b) Java(c) Python(d) Assembly CodeThis question was posed to me during an interview.I need to ask this question from Programming in division Arduino Programming of Arduino |
|
Answer» The correct option is (a) C/C++ |
|
| 87. |
What is the meaning of the data returned by the sizeof() function?(a) Length(b) Location(c) Pointer(d) MemoryI had been asked this question by my school principal while I was bunking the class.The above asked question is from The sizeof() Function topic in section Arduino Programming of Arduino |
|
Answer» Correct choice is (a) Length |
|
| 88. |
What is the use of the detachInterrupt() function?(a) To turn off interrupt(b) To turn on interrupt(c) To disable interrupt functions for the remaining ON time.(d) To turn off the ArduinoI have been asked this question in an online quiz.My question is based upon Interrupt Service Routine in division Arduino Programming of Arduino |
|
Answer» RIGHT option is (a) To turn off interrupt Easy explanation: The interrupt SERVICE ROUTINE can be used to automate a NUMBER of functions in an arduino. In a situation where the entire focus of the code is bound to ONE function, the ISR can act as a pause for the arduino to stop the current function temporarily and divert memory to another function. The detachInterrupt() function turns off the ISR functionality temporarily. |
|
| 89. |
In C++ what type of operator is a cast operator?(a) Unary(b) Binary(c) Ternary(d) QuaternaryThis question was addressed to me in an interview.My question is from Type Conversions in chapter Arduino Programming of Arduino |
|
Answer» Correct answer is (a) Unary |
|
| 90. |
What is the special escape sequence for newline in C++?(a) ‘\b’(b) ‘\m’(c) ‘\n’(d) ‘\\’This question was posed to me in a job interview.Question is from String Manipulation in section Arduino Programming of Arduino |
|
Answer» Right choice is (C) ‘\N’ |
|
| 91. |
What is the use of the sqrt() function?(a) To find the square of a number(b) To find the square root of a number(c) To find the cube root of a number(d) To find the cube of a numberThe question was posed to me in an interview.Question is taken from Mathematical Functions in section Arduino Programming of Arduino |
|
Answer» Right answer is (b) To find the SQUARE root of a number |
|
| 92. |
What is the resolution of the micros() function on the Arduino LilyPad?(a) 2 Microseconds(b) 4 Microseconds(c) 6 Microseconds(d) 8 MicrosecondsThis question was addressed to me during an interview.I want to ask this question from Time Functions in division Arduino Programming of Arduino |
|
Answer» Correct option is (d) 8 MICROSECONDS |
|
| 93. |
How many bits of memory does the bool datatype occupy?(a) 2(b) 4(c) 6(d) 8This question was posed to me by my college professor while I was bunking the class.I'd like to ask this question from Datatypes topic in portion Arduino Programming of Arduino |
|
Answer» Correct OPTION is (d) 8 |
|
| 94. |
What is the return type of the micros() function?(a) Signed Long(b) Signed Int(c) Unsigned Long(d) Unsigned IntThis question was posed to me in an interview for internship.Question is from Time Functions in chapter Arduino Programming of Arduino |
|
Answer» Right choice is (c) UNSIGNED Long |
|
| 95. |
Can the tone() and noTone() functions be used for digital communications?(a) No, they cannot be used(b) Yes, they can be used but only on certain Arduino Boards(c) Yes, they can be used for all digital pins and Arduino Boards(d) Yes, they can be used but only for certain pinsThis question was addressed to me in class test.This is a very interesting question from Advanced Input Output in portion Arduino Programming of Arduino |
|
Answer» Right option is (c) Yes, they can be used for all digital pins and ARDUINO Boards |
|
| 96. |
Which of the following is not a method to convert analog signals to digital signals?(a) Pulse Code Modulation(b) Pulse Amplitude Modulation(c) Pulse Width Modulation(d) Frequency ModulationI have been asked this question in semester exam.This intriguing question originated from Digital Input Output topic in division Arduino Programming of Arduino |
|
Answer» Correct answer is (d) Frequency Modulation |
|
| 97. |
Can the loop() function be used to call another function that is custom defined by the programmer?(a) Yes, it can call(b) No, it cannot call(c) Yes, it can call but only functions with no return values(d) Yes, it can call but only functions with return valuesThis question was addressed to me during an internship interview.My question is taken from The loop() Function topic in division Arduino Programming of Arduino |
|
Answer» Correct option is (a) YES, it can call |
|
| 98. |
How many arguments does the digitalRead() function have?(a) 1(b) 2(c) 3(d) 4This question was posed to me during an interview.This interesting question is from Digital Input Output in section Arduino Programming of Arduino |
|
Answer» Correct CHOICE is (a) 1 |
|
| 99. |
How many times does the setup() function run on every startup of the Arduino System?(a) 1(b) 2(c) 3(d) 4I have been asked this question during an online interview.My question comes from The setup() Function in chapter Arduino Programming of Arduino |
|
Answer» The correct answer is (a) 1 |
|
| 100. |
In which memory does the Arduino save data in when the PROGMEM Utility is invoked?(a) EEPROM(b) SRAM(c) Flash(d) DRAMI had been asked this question in an interview for job.This interesting question is from PROGMEM Utility topic in chapter Arduino Programming of Arduino |
|
Answer» The correct choice is (c) Flash |
|