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.
| 101. |
How many times can a variable declared ‘const’ be fed a value in any program?(a) 1(b) 26(c) 30(d) 0This question was addressed to me in exam.Query is from Variable Scope and Qualifiers in chapter Arduino Programming of Arduino |
|
Answer» The correct answer is (a) 1 |
|
| 102. |
If a program has 4 functions then will all of them be able to access the data held by a global variable?(a) Yes(b) NoThis question was addressed to me in exam.The question is from Variable Scope and Qualifiers topic in division Arduino Programming of Arduino |
|
Answer» The correct answer is (a) Yes |
|
| 103. |
Which of these functions are used to partially or fully substitute a string?(a) replace()(b) size()(c) subs()(d) substring()This question was posed to me in an online quiz.I would like to ask this question from String Manipulation topic in portion Arduino Programming of Arduino |
|
Answer» Right answer is (a) replace() |
|
| 104. |
How many arguments does the back() function take?(a) 0(b) 1(c) 2(d) 3This question was posed to me in an internship interview.My doubt is from String Manipulation in chapter Arduino Programming of Arduino |
|
Answer» Correct CHOICE is (a) 0 |
|
| 105. |
What is the overflow point of the millis() function?(a) 10 day(b) 30 days(c) 50 days(d) 70 daysI have been asked this question by my school teacher while I was bunking the class.My question is taken from Time Functions in division Arduino Programming of Arduino |
|
Answer» RIGHT option is (C) 50 days To explain I WOULD say: The millis() function gives the up-time or the time since the Arduino started to run the program. The overflow point of this function is 50 days. This means that the value RETURNED by this function will return to 0 after 50 days. |
|
| 106. |
What is the purpose of the |
|
Answer» CORRECT answer is (c) Bitwise Left Shift The BEST I can explain: The << operator takes two numbers as operands. Then it SHIFTS the bits of the first operand by the value present in the second operand from right to left. The second operand however has to be a number less than 32 only. Otherwise the operation will not work. |
|
| 107. |
What is the function of the readBytesUntil() function?(a) Reads only integers from a stream(b) Reads any characters from a stream(c) Reads only special characters from a stream(d) Tokenizes a string from a streamThe question was asked in an interview.This key question is from Serial and Stream Communications in section Arduino Programming of Arduino |
|
Answer» CORRECT choice is (b) READS any characters from a stream Easy explanation: The readBytesUntil() function belongs to the Stream class. It is USED for reading any characters from a stream. The function continues to read characters entered until the termination character is found. It then puts all the collected DATA into a buffer. |
|
| 108. |
How many arguments does the analogRead() function have?(a) 1(b) 2(c) 3(d) 4The question was asked in final exam.This key question is from Analog Input Output topic in division Arduino Programming of Arduino |
|
Answer» The correct answer is (a) 1 |
|
| 109. |
Can the digitalWrite() function be used from any analog pin?(a) No, it cannot(b) Yes, it can, but only on certain Arduino Boards(c) Yes, it can(d) Yes, it can, but only through certain pinsThis question was addressed to me by my school teacher while I was bunking the class.I need to ask this question from Digital Input Output in portion Arduino Programming of Arduino |
|
Answer» The correct option is (b) Yes, it can, but only on certain ARDUINO BOARDS |
|
| 110. |
How many architectures does the Arduino subfolder in the Hardware section contain?(a) 2(b) 3(c) 4(d) 9I got this question in an interview for internship.My doubt is from Compilation topic in section Arduino Programming of Arduino |
|
Answer» The correct choice is (a) 2 |
|
| 111. |
What are the two modes that the pinMode() method sets for a particular pin?(a) DIGITAL and ANALOG(b) INPUT and OUTPUT(c) TX and RX(d) READ and WRITEThis question was addressed to me by my school teacher while I was bunking the class.My doubt stems from Setting Pin Mode in section Arduino Programming of Arduino |
|
Answer» Right choice is (B) INPUT and OUTPUT |
|
| 112. |
What is the maximum number of arguments for the constrain() function?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in a national level competition.This question is from Mathematical Functions in section Arduino Programming of Arduino |
|
Answer» The correct answer is (c) 3 |
|
| 113. |
Which of the following boards does the WifiNINA Library work on?(a) Arduino MKR 1010(b) Arduino Due(c) Arduino MKR VIDOR 3000(d) Arduino MicroI have been asked this question by my college director while I was bunking the class.My question is from Other Libraries topic in chapter Arduino Programming of Arduino |
|
Answer» The correct choice is (a) Arduino MKR 1010 |
|
| 114. |
What library is to be required for manipulating audio on the Arduino Due?(a) AudioMan.h(b) PulseAudio.h(c) Audio.h(d) Sound.hThis question was addressed to me in a job interview.My doubt stems from Other Libraries topic in portion Arduino Programming of Arduino |
|
Answer» Right answer is (c) Audio.h |
|
| 115. |
What is the purpose of the MKRNB Library?(a) Connecting to the internet over GSM(b) Connecting to the internet over Ethernet(c) Connecting to the internet over Wi-Fi(d) Connecting to the internet over LANI have been asked this question in an international level competition.This key question is from Other Libraries in portion Arduino Programming of Arduino |
|
Answer» Right CHOICE is (a) Connecting to the INTERNET over GSM |
|
| 116. |
What happens to the output if the analogReadResolution() function is invoked with a resolution higher than the board’s ADC can physically handle?(a) The output is padded with zeros(b) The output is not obtained as an error is thrown during compile time(c) The output is not obtained as an error is thrown during run time(d) The output is padded with onesThe question was asked during an interview.My query is from Analog Input Output in portion Arduino Programming of Arduino |
|
Answer» Right OPTION is (a) The output is padded with zeros |
|
| 117. |
How to view each command that gets executed during the compilation process?(a) Enable Verbose Output(b) Disable Verbose Output(c) Show Sketch Folder(d) Open Serial PlotterThe question was posed to me in class test.The above asked question is from Compilation topic in chapter Arduino Programming of Arduino |
|
Answer» Right answer is (a) ENABLE Verbose Output |
|
| 118. |
What compiler toolchain is used to compile the Arduino Sketches?(a) AVR-G++/GCC(b) Python(c) PowerShell(d) PerlI have been asked this question in an interview for internship.The above asked question is from Compilation topic in portion Arduino Programming of Arduino |
|
Answer» The correct option is (a) AVR-G++/GCC |
|
| 119. |
Arduino Codes are referred to as ________ in the Arduino IDE.(a) drawings(b) notes(c) sketches(d) linksI had been asked this question in an online quiz.My query is from Programming in division Arduino Programming of Arduino |
|
Answer» Right answer is (C) sketches |
|
| 120. |
Can you run an Arduino code in Raspberry Pi or any other microcontroller or embedded system?(a) Yes(b) NoThe question was asked during an online interview.This interesting question is from Programming in division Arduino Programming of Arduino |
|
Answer» Right choice is (b) No |
|
| 121. |
What is the use of the typeid() function?(a) To find the datatype of the variable(b) To find the “const” status of the variable(c) To find the address of the variable(d) To find the value of the variableThe question was posed to me in an online quiz.This intriguing question comes from Type Conversions in section Arduino Programming of Arduino |
|
Answer» The CORRECT choice is (a) To find the datatype of the variable |
|
| 122. |
What is the use of the sin() function?(a) To find the sine of a number(b) To find the cosine of a number(c) To find the tan of a number(d) To find the inverse tan of a numberI have been asked this question during an interview.Question is from Mathematical Functions topic in chapter Arduino Programming of Arduino |
|
Answer» Correct answer is (a) To FIND the SINE of a number |
|
| 123. |
What method does the int datatype use for storing negative numbers?(a) 1’s Complement(b) 2’s Complement(c) 3’s Complement(d) 4’s ComplementThis question was posed to me during a job interview.The above asked question is from Datatypes topic in chapter Arduino Programming of Arduino |
|
Answer» The correct answer is (b) 2’s Complement |
|
| 124. |
Can the Arduino read sensor data from a pin while the delay() function is in effect?(a) Yes(b) NoThis question was addressed to me in an international level competition.The origin of the question is Time Functions in portion Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (b) No |
|
| 125. |
Can an infinite loop be dangerous to embedded systems due to memory leak?(a) Yes(b) Yes, but only if it is used within a limited scope(c) No(d) Yes, but only for some Arduino BoardsThe question was asked during an interview for a job.This is a very interesting question from Looping topic in portion Arduino Programming of Arduino |
|
Answer» Correct answer is (a) Yes |
|
| 126. |
What is the resolution of the micros() function on the Arduino Nano?(a) 2 Microseconds(b) 3 Microseconds(c) 4 Microseconds(d) 5 MicrosecondsI had been asked this question by my college director while I was bunking the class.This is a very interesting question from Time Functions topic in section Arduino Programming of Arduino |
|
Answer» Right answer is (c) 4 Microseconds |
|
| 127. |
What is the function of the Scheduler Library?(a) To allow queueing of functions(b) To allow for cancelling of functions(c) To allow for parallel execution of functions(d) To allow for serial initialization of functionsI have been asked this question in my homework.The doubt is from Other Libraries in division Arduino Programming of Arduino |
|
Answer» Correct choice is (c) To allow for parallel execution of FUNCTIONS |
|
| 128. |
Which interface does SD.h depend on for communication between the SD Card Module and the Arduino?(a) SPI(b) I2C(c) USB(d) TTLI have been asked this question in semester exam.This interesting question is from Standard Libraries topic in section Arduino Programming of Arduino |
|
Answer» The correct answer is (a) SPI |
|
| 129. |
Can the analogRead() function be used from any digital pin?(a) No, it cannot(b) Yes, it can, but only on certain Arduino Boards(c) Yes, it can(d) Yes, it can, but only through certain pinsI had been asked this question in class test.Question is from Analog Input Output in division Arduino Programming of Arduino |
|
Answer» The correct ANSWER is (d) Yes, it can, but only through certain pins |
|
| 130. |
What is the use of the analogReference() function?(a) To change the digital signal reference value(b) To change the analog signal reference value(c) To print the analog signal reference voltage(d) To print the digital signal reference voltageThe question was asked in my homework.This is a very interesting question from Analog Input Output topic in portion Arduino Programming of Arduino |
|
Answer» The correct answer is (b) To change the analog signal reference value |
|
| 131. |
Can a programmer not use the loop function at all in a code?(a) Yes(b) No(c) Yes, but it needs to be called at least once(d) Yes, but it needs to be commented outThis question was posed to me in an international level competition.I would like to ask this question from The loop() Function topic in division Arduino Programming of Arduino |
|
Answer» The correct ANSWER is (a) Yes |
|
| 132. |
Which software is used to upload the Arduino Sketches to the board?(a) avrdude(b) avrgcc(c) g++(d) cpython for windowsThe question was asked in quiz.This key question is from Uploading in section Arduino Programming of Arduino |
|
Answer» Right answer is (a) AVRDUDE |
|
| 133. |
Is the Arduino programming language a general-purpose language?(a) Yes(b) NoI had been asked this question in an online quiz.The above asked question is from Programming in section Arduino Programming of Arduino |
|
Answer» The CORRECT choice is (b) No |
|
| 134. |
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->EditorThis question was posed to me in an interview.Question is taken from Preprocessing topic in chapter Arduino Programming of Arduino |
|
Answer» Right choice is (B) Editor->Preprocessor->Compiler |
|
| 135. |
Which of the sizes of data given below require us to shut off all interrupts while inputting them into a volatile variable?(a) 1 bit(b) 2 bit(c) 2 bytes(d) 0.5 bytesI got this question by my school teacher while I was bunking the class.The above asked question is from Variable Scope and Qualifiers topic in chapter Arduino Programming of Arduino |
|
Answer» Correct option is (C) 2 bytes |
|
| 136. |
Is there any difference between the usage of the size() and the length() function?(a) Yes(b) NoThis question was posed to me in an interview for internship.My question comes from String Manipulation in section Arduino Programming of Arduino |
|
Answer» Right ANSWER is (b) No |
|
| 137. |
What is the name of the control structure used to stop any loop prematurely and only exit out of the loop, not affecting the running of the rest of the program?(a) The continue statement(b) The break statement(c) The exit statement(d) The purge statementThis question was posed to me in an international level competition.This interesting question is from Control Structures in section Arduino Programming of Arduino |
|
Answer» The correct answer is (b) The BREAK statement |
|
| 138. |
What datatype should one use to represent 2147483610?(a) Int(b) Byte(c) Short(d) LongI got this question in class test.I'm obligated to ask this question of Datatypes in section Arduino Programming of Arduino |
|
Answer» Correct choice is (d) Long |
|
| 139. |
What is the name of the ^ operator?(a) Bitwise XNOR(b) Bitwise NAND(c) Bitwise XOR(d) Bitwise ANDI have been asked this question during an online interview.My enquiry is from Operators topic in portion Arduino Programming of Arduino |
|
Answer» Correct choice is (c) BITWISE XOR |
|
| 140. |
Which of the following Arduino Boards does the USBHost Library work on?(a) Arduino Nano(b) Arduino Due(c) Arduino Uno(d) Arduino MicroThis question was addressed to me during an internship interview.My question comes from Other Libraries topic in section Arduino Programming of Arduino |
|
Answer» Right option is (b) Arduino Due |
|
| 141. |
After the compilation process, the file containing the assembly instructions for the microcontroller is stored in a file. What is the file type?(a) .o(b) .hex(c) .cpp(d) .hppI had been asked this question in a job interview.My doubt is from Compilation topic in division Arduino Programming of Arduino |
|
Answer» Right answer is (B) .hex |
|
| 142. |
What is the use of the Arduino.h header file?(a) It gives root access to the microcontroller’s file system(b) It enables the programmer to access all of Arduino’s core functionality(c) It allows other people to create libraries for the Arduino code(d) It doesn’t have any use and can be omitted at any point of time in the codeI had been asked this question during an online exam.My query is from Compilation in portion Arduino Programming of Arduino |
|
Answer» Right answer is (b) It enables the programmer to ACCESS all of Arduino’s core functionality |
|
| 143. |
What language is the Arduino IDE built on?(a) C/C++(b) Python(c) HTML(d) JavaI have been asked this question in an internship interview.Question is taken from Programming topic in portion Arduino Programming of Arduino |
|
Answer» The correct choice is (d) Java |
|
| 144. |
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-staticI had been asked this question in class test.The above asked question is from PROGMEM Utility in section Arduino Programming of Arduino |
|
Answer» Right answer is (a) Globally DEFINED or static |
|
| 145. |
What function will we use to find out the number of elements in an array?(a) sizeof()(b) size()(c) sf()(d) sizeOf()This question was addressed to me during an online interview.My question is from The sizeof() Function topic in chapter Arduino Programming of Arduino |
|
Answer» Correct CHOICE is (a) sizeof() |
|
| 146. |
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() MacroI had been asked this question during an online exam.My question is from PROGMEM Utility topic in section Arduino Programming of Arduino |
|
Answer» Correct answer is (C) F() Macro |
|
| 147. |
What is the math function to find out the minimum of 2 numbers?(a) The min() function(b) The minimum_number() function(c) The m() function(d) The minimumOf() functionThe question was posed to me in an interview for internship.My question is taken from Mathematical Functions in division Arduino Programming of Arduino |
|
Answer» Right answer is (a) The min() function |
|
| 148. |
Is there a difference between iteration and recursion?(a) Yes(b) No(c) Yes, but only in some programming languages(d) Yes, but it depends on the version of programming language usedThe question was asked in an interview for internship.The question is from Looping topic in chapter Arduino Programming of Arduino |
|
Answer» Right option is (a) Yes |
|
| 149. |
What is the default time limit that is set automatically if no value is passed as the limit to the setTimeout() function?(a) 100 milliseconds(b) 1500 milliseconds(c) 1000 milliseconds(d) 2432 millisecondsThis question was addressed to me at a job interview.My question is from Serial and Stream Communications topic in chapter Arduino Programming of Arduino |
|
Answer» Right answer is (c) 1000 milliseconds |
|
| 150. |
On which of the following Arduino Boards does the analogReadResolution() function not work?(a) Arduino Zero(b) Arduino MKR Vidor 4000(c) Arduino Due(d) Arduino UnoI got this question during an online exam.This interesting question is from Analog Input Output in section Arduino Programming of Arduino |
|
Answer» Correct answer is (d) Arduino Uno |
|