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.
| 1. |
When the sizeof() function is invoked on an array. What information does it return?(a) Number of elements in the array(b) The largest element in the array(c) The total sum of the ASCII values of the elements in the array(d) The largest ASCII value of any element in the arrayThis question was posed to me during a job interview.My enquiry is from The sizeof() Function topic in portion Arduino Programming of Arduino |
|
Answer» The correct OPTION is (a) Number of ELEMENTS in the array |
|
| 2. |
What is the conversion type for reinterpret casting?(a) Pointer to Variable(b) Variable to Variable(c) Pointer to Pointer(d) Variable to PointerThe question was asked in an interview.My doubt is from Type Conversions in division Arduino Programming of Arduino |
|
Answer» CORRECT choice is (c) POINTER to Pointer For explanation: REINTERPRET CASTING is used to convert a pointer of any data type to another pointer of any other data type. Additionally, this does not MATCH the datatype of the value and the pointer. |
|
| 3. |
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 fileI got this question in quiz.My question is taken from PROGMEM Utility topic in section Arduino Programming of Arduino |
|
Answer» Right option is (a) The avr/pgmspace.h header FILE |
|
| 4. |
What is the use of the tan() 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 online exam.I want to ask this question from Mathematical Functions in portion Arduino Programming of Arduino |
|
Answer» Right option is (c) To find the tan of a NUMBER |
|
| 5. |
What is the return type of the substr() function?(a) int(b) long(c) byte(d) stringI got this question during an online interview.This is a very interesting question from String Manipulation in portion Arduino Programming of Arduino |
|
Answer» Right answer is (d) string |
|
| 6. |
Is there a difference between the = and the == operators?(a) Yes(b) NoThis question was posed to me during an interview for a job.The query is from Operators in chapter Arduino Programming of Arduino |
|
Answer» CORRECT option is (a) YES Explanation: Yes, there is a difference between those two operators. The = operator SIGNIFIES any assignment of values to some variable or data storage, while the == operator is a comparison operator which checks the equality of the operands it WORKS with. |
|
| 7. |
What is the function in Arduino that is capable of reading Strings from a stream and store the acquired value into a String?(a) Stream.readstring()(b) Stream.stringread()(c) Stream.readString()(d) Stream.readfromstring()I got this question in an interview.My enquiry is from Serial and Stream Communications topic in division Arduino Programming of Arduino |
|
Answer» Right choice is (C) Stream.readString() |
|
| 8. |
Which library allows for manipulating the real time clock of an Arduino?(a) RTC Library(b) RT Library(c) Clock Library(d) Time LibraryThis question was addressed to me during an online exam.Origin of the question is Other Libraries in division Arduino Programming of Arduino |
|
Answer» Right answer is (a) RTC LIBRARY |
|
| 9. |
How many tone() functions can be invoked to run simultaneously on an Arduino Board?(a) As many pins are present(b) Infinite number(c) Only one(d) Depending on the number of timers presentThe question was asked in exam.Enquiry is from Advanced Input Output in portion Arduino Programming of Arduino |
|
Answer» Correct option is (c) Only one |
|
| 10. |
What is the difference between an IDE and a compiler?(a) The IDE executes the code while the compiler gives a graphical environment for writing the code(b) The compiler executes the code while the IDE gives a graphical environment for writing the code(c) The compiler links the code to the respective files and the IDE takes it from there(d) The compiler and the IDE are the same thingThe question was posed to me during an online exam.This interesting question is from Programming topic in section Arduino Programming of Arduino |
|
Answer» Right CHOICE is (B) The compiler executes the code while the IDE gives a graphical environment for writing the code |
|
| 11. |
Can PROGMEM be used on arrays?(a) Yes(b) NoThis question was addressed to me during an interview.My enquiry is from PROGMEM Utility topic in division Arduino Programming of Arduino |
|
Answer» Right choice is (a) Yes |
|
| 12. |
Will the delay() function work inside an interrupt routine?(a) Yes(b) NoI got this question in an internship interview.My doubt is from Interrupt Service Routine in chapter Arduino Programming of Arduino |
|
Answer» Correct choice is (b) No |
|
| 13. |
Which one of the control structures is similar to the if-else statement?(a) Switch-case(b) For loop(c) While loop(d) ContinueThe question was posed to me in an interview.My doubt is from Control Structures topic in chapter Arduino Programming of Arduino |
|
Answer» Right answer is (a) Switch-case |
|
| 14. |
Who initiates explicit type casting?(a) The programmer(b) The compiler(c) The microcontroller(d) The assemblerI had been asked this question in final exam.This intriguing question comes from Type Conversions in section Arduino Programming of Arduino |
|
Answer» Correct answer is (a) The programmer |
|
| 15. |
Which of the following control structures is an exit-controlled loop?(a) For loop(b) While loop(c) Const and Goto(d) Do-While loopI have been asked this question in an interview.This is a very interesting question from Control Structures in portion Arduino Programming of Arduino |
|
Answer» The CORRECT choice is (d) Do-While loop |
|
| 16. |
What is the return type of the front() function?(a) char(b) int(c) long(d) shortThis question was posed to me during an interview for a job.This is a very interesting question from String Manipulation in section Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (a) char |
|
| 17. |
In Serial Communications, how many sections is a data packet divided into?(a) 1(b) 2(c) 3(d) 4This question was addressed to me by my school principal while I was bunking the class.My question is from Serial and Stream Communications topic in division Arduino Programming of Arduino |
|
Answer» Correct choice is (d) 4 |
|
| 18. |
What purpose does the Bridge Library serve on the Arduino Yun?(a) Connecting the Linux processor and the microcontroller onboard the Yun(b) Disconnecting the Linux processor and the microcontroller onboard the Yun(c) Making the Linux Processor the master device and the microcontroller, the slave device(d) Making the Linux Processor the slave device and the microcontroller, the master deviceThis question was posed to me in a job interview.This is a very interesting question from Other Libraries topic in division Arduino Programming of Arduino |
|
Answer» Right OPTION is (a) Connecting the Linux processor and the MICROCONTROLLER onboard the Yun |
|
| 19. |
What is the library to be used if one wants to use UART communications on an Arduino?(a) TFT Library(b) SoftwareSerial Library(c) Ethernet Library(d) I2C LibraryThe question was posed to me in a national level competition.I need to ask this question from Standard Libraries topic in chapter Arduino Programming of Arduino |
|
Answer» The correct CHOICE is (B) SoftwareSerial Library |
|
| 20. |
Which chipset is the LCD library for Arduino based on?(a) Hitachi HD44780(b) Hitachi HD45780(c) Hitachi HDD4780(d) Hitachi HD46780I got this question in homework.Asked question is from Standard Libraries topic in division Arduino Programming of Arduino |
|
Answer» The correct option is (a) Hitachi HD44780 |
|
| 21. |
What is the return type of the pulseIn() function?(a) null(b) signed byte(c) unsigned long(d) unsigned intThis question was posed to me at a job interview.Enquiry is from Advanced Input Output topic in section Arduino Programming of Arduino |
|
Answer» The correct CHOICE is (c) unsigned long |
|
| 22. |
Can the digitalRead() function identify analog voltages?(a) Yes, it can(b) No, it cannot(c) Yes, it can but only 2(d) Yes, it can but only 4I have been asked this question during a job interview.This key question is from Digital Input Output in chapter Arduino Programming of Arduino |
|
Answer» Correct answer is (c) YES, it can but only 2 |
|
| 23. |
What is the recipe for compiling Assembly Source Code in the Arduino IDE?(a) recipe.S.o.pattern(b) recipe.A.n.pattern(c) recipe.S.b.pattern(d) recipe.S.i.patternI have been asked this question at a job interview.I would like to ask this question from Uploading topic in section Arduino Programming of Arduino |
|
Answer» CORRECT option is (a) recipe.S.o.pattern For explanation I would say: A recipe in Computer Science is the steps involved in creating something. Here the compiler has a predetermined “Recipe” or way to deal with Assembly Source Codes when the need ARISES. Now since the Arduino IDE can also COMPILE C and C++ source files, it also has a predetermined way to deal with those file types as WELL. |
|
| 24. |
What is the use of the MOSI and MISO pins?(a) To download code from the microcontroller to the computer(b) To verify the program that the computer uploads to the microcontroller(c) To erase the SRAM of the microcontroller(d) To dump or transfer programs from the computer to the microcontrollerThe question was asked in my homework.This interesting question is from Uploading in section Arduino Programming of Arduino |
|
Answer» The correct option is (d) To dump or TRANSFER programs from the computer to the microcontroller |
|
| 25. |
What notation should we use for denoting the breadth of an array?(a) sizeof(a[0])(b) sizeof(a)(c) sizeof(a[])(d) sizeof(a.0)The question was posed to me in an online interview.My doubt stems from The sizeof() Function in chapter Arduino Programming of Arduino |
|
Answer» Correct choice is (a) SIZEOF(a[0]) |
|
| 26. |
What is the use of the attachInterrupt() function?(a) To enable ISR usage(b) To enable ISR usage, but only on certain Arduino Boards(c) To decommission ISR usage for a particular Arduino Board(d) To translate pin numbersI have been asked this question in quiz.My question is from Interrupt Service Routine in division Arduino Programming of Arduino |
|
Answer» The CORRECT OPTION is (a) To enable ISR usage |
|
| 27. |
What is the return type of the millis() function?(a) Signed Long(b) Unsigned Long(c) Signed Float(d) Unsigned IntI got this question during an online interview.My question is based upon Time Functions in section Arduino Programming of Arduino |
|
Answer» Correct answer is (b) Unsigned LONG |
|
| 28. |
Does the UART Architecture require an external clock?(a) Yes(b) NoThis question was posed to me in examination.Origin of the question is Serial and Stream Communications in section Arduino Programming of Arduino |
|
Answer» Correct ANSWER is (b) No |
|
| 29. |
What is the full form of UART?(a) Universal Asynchronous Receiver/Transmitter(b) Universal Anti-Rectifying Transmitter(c) Universal Asynchronous Radio Transmitter(d) Universal Asynchronous Rectifier TransistorI have been asked this question in examination.My query is from Serial and Stream Communications in portion Arduino Programming of Arduino |
|
Answer» Correct option is (a) Universal Asynchronous Receiver/Transmitter |
|
| 30. |
Which Arduino Board does the SigFox Library work with?(a) Arduino MKR1000(b) Arduino MKRFOX1200(c) Arduino MKRZero(d) Arduino MKRFOX1230The question was posed to me during an online exam.Query is from Other Libraries in section Arduino Programming of Arduino |
|
Answer» Correct option is (b) Arduino MKRFOX1200 |
|
| 31. |
If one would want to place a call using an Arduino which library would one use which was specifically designed for that purpose?(a) The Firmata Library(b) The TFT Library(c) The GSM Library(d) The Ethernet LibraryI got this question in a job interview.This key question is from Standard Libraries in section Arduino Programming of Arduino |
|
Answer» The correct option is (c) The GSM Library |
|
| 32. |
What is the use of the Ethernet library?(a) To connect the Arduino to Bluetooth(b) To connect the Arduino to Wi-Fi(c) To connect the Arduino to Li-Fi(d) To connect the Arduino to EthernetI have been asked this question at a job interview.My question is from Standard Libraries in division Arduino Programming of Arduino |
|
Answer» Right choice is (d) To connect the ARDUINO to Ethernet |
|
| 33. |
Why does every compilation of a source code in Arduino check for previous compilations?(a) To delete the previously generated “.o” files(b) To use the previously generated “.o” files(c) To relocate the previously generated “.o” files(d) To copy the previously generated “.o” filesI had been asked this question in exam.This question is from Compilation topic in section Arduino Programming of Arduino |
|
Answer» The correct answer is (b) To use the previously generated “.o” files |
|
| 34. |
How many arguments does the shiftOut() function require?(a) 1(b) 2(c) 3(d) 4I had been asked this question in an interview for internship.Question is taken from Advanced Input Output in section Arduino Programming of Arduino |
|
Answer» Right option is (d) 4 |
|
| 35. |
What is the purpose of the tone() function?(a) To generate a sine wave(b) To generate a cosine wave(c) To generate a stable voltage level(d) To generate a square waveI had been asked this question during an online exam.My doubt is from Advanced Input Output in section Arduino Programming of Arduino |
|
Answer» Correct option is (d) To generate a square wave |
|
| 36. |
Can the loop() function be used to replace the functionality of the setup() function?(a) Yes, it can(b) No, it cannot(c) Yes, it can, but only for certain Arduino Boards(d) Yes, it can, but only for a limited time frameThe question was asked in a job interview.Query is from The loop() Function in division Arduino Programming of Arduino |
|
Answer» Right ANSWER is (a) Yes, it can |
|
| 37. |
What is the use of the digitalPinToInterrupt() function?(a) To create an Interrupt Object(b) To delete an Interrupt Object(c) To map the Arduino Pin to the Interrupt pin(d) To invoke the Interrupt Service RoutineI had been asked this question in unit test.I need to ask this question from Interrupt Service Routine in portion Arduino Programming of Arduino |
|
Answer» Correct choice is (C) To map the Arduino Pin to the Interrupt pin |
|
| 38. |
How many bits of memory does the Short datatype take up?(a) 17(b) 15(c) 16(d) 14I had been asked this question by my school principal while I was bunking the class.This key question is from Datatypes in portion Arduino Programming of Arduino |
|
Answer» Right choice is (c) 16 |
|
| 39. |
How many arguments does the at() function take?(a) 0(b) 1(c) 2(d) 3The question was asked in final exam.I would like to ask this question from String Manipulation in division Arduino Programming of Arduino |
|
Answer» The correct answer is (b) 1 |
|
| 40. |
What is the use of the sq() function?(a) To find the square root of a number(b) To find the square of a number(c) To find the cube of a number(d) To find the cube root of a numberThe question was posed to me in unit test.This interesting question is from Mathematical Functions topic in portion Arduino Programming of Arduino |
|
Answer» CORRECT answer is (b) To find the square of a number For EXPLANATION I WOULD SAY: The sq() function is used to find the square of a number. It takes ONE argument; the number whose square is to be found out. This function can accept any number-based datatypes and gives the output in the double datatype. |
|
| 41. |
What is the name of the ~ operator?(a) Bitwise NOT(b) Logical NOT(c) Bitwise SHIFT(d) Pointer AddressI have been asked this question in my homework.This interesting question is from Operators in chapter Arduino Programming of Arduino |
|
Answer» Correct choice is (a) Bitwise NOT |
|
| 42. |
What is the difference between ternary operators and unary operators?(a) Ternary Operators work with 1 operand while unary operators work with 3 operands(b) Ternary Operators work with 3 operands while unary operators work with 1 operand(c) Ternary Operators work with 2 operands while unary operators work with 3 operands(d) Ternary Operators work with 4 operands while unary operators work with 1 operandThis question was addressed to me in examination.This intriguing question comes from Operators topic in portion Arduino Programming of Arduino |
|
Answer» Right CHOICE is (B) Ternary Operators WORK with 3 operands while unary operators work with 1 operand |
|
| 43. |
What is the maximum number of arguments does the find() function accept?(a) 1(b) 2(c) 3(d) 4The question was posed to me at a job interview.My doubt is from Serial and Stream Communications topic in division Arduino Programming of Arduino |
|
Answer» CORRECT answer is (b) 2 For explanation I WOULD say: The find() function accepts a maximum of 2 PARAMETERS; the target which can be a set of CHARACTERS, and the length of the target which denotes the lexical length of the target. This function then searches for the target throughout the stream and returns a Boolean True if a match is found, otherwise a Boolean False if the target is not found. |
|
| 44. |
Which of the following is not a Digital Encoding Technique?(a) NRZ (Non-Return to Zero)(b) Amplitude Modulation(c) Manchester(d) RZ (Return to Zero)This question was addressed to me in quiz.The doubt is from Digital Input Output topic in section Arduino Programming of Arduino |
|
Answer» The correct option is (b) Amplitude Modulation |
|
| 45. |
Which Arduino Board Architectures can the Audio Frequency Meter Library work on?(a) SAM Architecture(b) Intel Architecture(c) SAMD Architecture(d) ARM ArchitectureThis question was posed to me during a job interview.I would like to ask this question from Other Libraries in chapter Arduino Programming of Arduino |
|
Answer» Right answer is (c) SAMD Architecture |
|
| 46. |
What is the .d file format’s use in C?(a) For managing dependencies(b) For the D programming language(c) For storing the variables and memory locations(d) For creating new errors in dependenciesI have been asked this question during an online exam.My question is taken from Compilation topic in portion Arduino Programming of Arduino |
|
Answer» The correct ANSWER is (a) For managing dependencies |
|
| 47. |
When does the Interrupt Handler execute it’s assigned code?(a) After all the codes executed in the program(b) Before any code is executed in the program(c) Blocks the code from getting executed at any time in the program(d) When the interrupt is in effectI have been asked this question in examination.My doubt is from Interrupt Service Routine in chapter Arduino Programming of Arduino |
|
Answer» The correct option is (d) When the INTERRUPT is in effect |
|
| 48. |
Which of the following escape sequences placed at the end of a string makes the string a Null Terminated String?(a) ‘\p’(b) ‘\u’(c) ‘\0’(d) ‘\1’This question was posed to me during an interview.This intriguing question originated from String Manipulation topic in chapter Arduino Programming of Arduino |
|
Answer» Right answer is (c) ‘\0’ |
|
| 49. |
How many pins are available for interrupt functions in the Arduino Zero?(a) No pins(b) All pins except pin 4(c) Only pin 4(d) Only pin 3The question was asked in class test.I would like to ask this question from Interrupt Service Routine topic in section Arduino Programming of Arduino |
|
Answer» The correct OPTION is (b) All pins EXCEPT pin 4 |
|
| 50. |
How many operands does the >= operator require?(a) 1(b) 2(c) 3(d) 4The question was asked in a job interview.Enquiry is from Operators in portion Arduino Programming of Arduino |
|
Answer» The correct choice is (b) 2 |
|