Hardest Trivia Questions Quiz On Arduino Programming And C++

100 Questions

Settings
Please wait...
Hardest Trivia Questions Quiz On Arduino Programming And C++

.


Questions and Answers
  • 1. 
    • A. 

      Tre

    • B. 

      Galileo

    • C. 

      Zero

    • D. 

      Leonardio

  • 2. 
    In C program, if you pass an array as an argument to a function,what actually gets passed?
    • A. 

      Value of elements in array

    • B. 

      First element of the array

    • C. 

      Base address of the array

    • D. 

      Address of the last element of array

  • 3. 
    The Serial.print() function is used for printing __________________to the connected Serial device.
    • A. 

      Hexadecimal values

    • B. 

      ASCII Characters

    • C. 

      Binary Values

    • D. 

      None of the above

  • 4. 
    If the reference voltage is 3.3V for ADC in Arduino then the step size is
    • A. 

      4.88mV

    • B. 

      0.97mV

    • C. 

      5mV

    • D. 

      3.22mV

  • 5. 
    • A. 

      DigitalWrite(13,HIGH);

    • B. 

      DigitalWrite(LED,HIGH);

    • C. 

      DigitalWrite(13,LOW);

    • D. 

      DigitalWrite(LED,LOW);

  • 6. 
    • A. 

      Logical and (&&)

    • B. 

      Logical or (||)

    • C. 

      Logical NOT (!)

    • D. 

      None

  • 7. 
    • A. 

      1 time

    • B. 

      Infinite time

    • C. 

      0 time

    • D. 

      None of the above

  • 8. 
    • A. 

      Atmega 8

    • B. 

      Atmega 1280

    • C. 

      Atmega 328p

    • D. 

      Both A & C

  • 9. 
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 10. 
    The keyword used to transfer the control from a called function back to the calling function is___.
    • A. 

      Goto

    • B. 

      Return

    • C. 

      Call

    • D. 

      Jump

  • 11. 
    Identify the SCK pin in Arduino.
    • A. 

      12

    • B. 

      13

    • C. 

      10

    • D. 

      11

  • 12. 
    • A. 

      If (0)

    • B. 

      If (-1)

    • C. 

      Both a & b

    • D. 

      None of the above

  • 13. 
    Functions are created by first declaring the ________ at the beginning of the program.
    • A. 

      Function name

    • B. 

      Function prototype

    • C. 

      Function parameters

    • D. 

      Function address

  • 14. 
    Consider the looping statement 'for(int i=0; i < 10; i =i * 2)' while assuming the body of the loop does not break the loop or change i, how many times would the body of the loop be exucuted?
    • A. 

      Infinite

    • B. 

      10

    • C. 

      5

    • D. 

      0

  • 15. 
    What will be the output of this program? void setup( ) { int i=0; for (; i
    • A. 

      0, 1, 2, 3, 4, 5

    • B. 

      5

    • C. 

      1, 2, 3, 4

    • D. 

      6

  • 16. 
    Which of these pins can be used as a PWM pin?
    • A. 

      2

    • B. 

      4

    • C. 

      9

    • D. 

      12

  • 17. 
    In Arduino programming which function executes infinitely after power up?
    • A. 

      Setup()

    • B. 

      Loop()

    • C. 

      Main()

    • D. 

      All of the above

  • 18. 
    In which language the Arduino IDE is written?
    • A. 

      Java

    • B. 

      C

    • C. 

      C++

    • D. 

      PHP

  • 19. 
    By default a real number is treated as
    • A. 

      Float

    • B. 

      Double

    • C. 

      Long

    • D. 

      Long double

  • 20. 
    • A. 

      256Bytes

    • B. 

      512Bytes

    • C. 

      1KBytes

    • D. 

      2KBytes

  • 21. 
    • A. 

      Void

    • B. 

      Short

    • C. 

      Word

    • D. 

      String

  • 22. 
    • A. 

      255

    • B. 

      1024

    • C. 

      4096

    • D. 

      65535

  • 23. 
    If the reference voltage is 5V for ADC in Arduino then the step size is
    • A. 

      4.88mV

    • B. 

      0.97mV

    • C. 

      5mV

    • D. 

      3.22mV

  • 24. 
    If a 10K resistor is placed across a 10v supply then the circuit current will be
    • A. 

      10mA

    • B. 

      1mA

    • C. 

      0.01mA

    • D. 

      0.1mA

  • 25. 
    A Zener diode __________.
    • A. 

      Has a high forward voltage rating.

    • B. 

      Has a sharp breakdown at low reverse voltage.

    • C. 

      Is useful as an amplifier.

    • D. 

      Has a negative resistance.

  • 26. 
    • A. 

      Open source prototyping platform based on AVR Microcontrollers.

    • B. 

      Not open source platform.

    • C. 

      Open source platform based on ARM Microcontrollers.

    • D. 

      Open source prototyping platform based on both AVR Microcontrollers and ARM Microcontrollers

  • 27. 
    In Arduino programming every statement ends with __________.
    • A. 

      .

    • B. 

      ,

    • C. 

      ;

    • D. 

      :

  • 28. 
    PWM output varies from ________.
    • A. 

      0 to 255

    • B. 

      0 to 100

    • C. 

      0 to 1023

    • D. 

      0 to 256

  • 29. 
    • A. 

      While loop

    • B. 

      Do while loop

    • C. 

      For loop

    • D. 

      If loop

  • 30. 
    • A. 

      3

    • B. 

      4

    • C. 

      6

    • D. 

      8

  • 31. 
    • A. 

      Ptr is array of pointers to 10 integers

    • B. 

      Ptr is a pointer to an array of 10 integers

    • C. 

      Ptr is an array of 10 integers

    • D. 

      Ptr is an pointer to array

  • 32. 
    Transistor is a ________.
    • A. 

      Current controlled current device

    • B. 

      Current controlled voltage device

    • C. 

      Voltage controlled current device

    • D. 

      Voltage Controlled voltage device

  • 33. 
    Arduino IDE is derived from _________.
    • A. 

      Wiring & Python

    • B. 

      Wiring & Processing

    • C. 

      Wiring & Java

    • D. 

      Wiring & PHP

  • 34. 
    Which of these pins can be used to adjust the voltage between 0V & 5V when configured as an OUTPUT?
    • A. 

      2

    • B. 

      7

    • C. 

      9

    • D. 

      12

  • 35. 
    In which file extension Arduino sketches are saved?
    • A. 

      .ino

    • B. 

      .ard

    • C. 

      .cpp

    • D. 

      .hex

  • 36. 
    Which of the following operator has the highest precedence?
    • A. 

      Addition (+)

    • B. 

      Logical AND (&&)

    • C. 

      Assignment operator (=)

    • D. 

      Increment/ decrement (++,- -)

  • 37. 
    Identify the correct variable declaration.
    • A. 

      Int my Variable;

    • B. 

      Int my_Variable;

    • C. 

      Int my#Variable;

    • D. 

      Int 9myVariable;

  • 38. 
    A resistor with Color bands: red -red- red gold has the value
    • A. 

      22k with 5% tolerance

    • B. 

      2k2 with 5% tolerance

    • C. 

      220R with 5% tolernce

    • D. 

      22R with 5% tolerance

  • 39. 
    • A. 

      The element will be set to 0.

    • B. 

      The compiler would report an error

    • C. 

      The program may crash if some important data gets overwritten.

    • D. 

      The array size would appropriately grow.

  • 40. 
    • A. 

      Pressure sensor

    • B. 

      Servo

    • C. 

      Button

    • D. 

      Potentiometer

  • 41. 
    Arduino (Atmega) pins can source / sink current up to
    • A. 

      30mA

    • B. 

      40mA

    • C. 

      25mA

    • D. 

      52.5mA

  • 42. 
    • A. 

      16 KHz

    • B. 

      16 MHz

    • C. 

      16 GHz

    • D. 

      12 MHz

  • 43. 
    In C, if you pass an array as an argument to a function, what actually gets passed?
    • A. 

      Value of elements in array

    • B. 

      First element of the array

    • C. 

      Base address of the array

    • D. 

      Address of the last element of array

  • 44. 
    In Arduino UNO which pin has inbuilt on board LED associated with it?
    • A. 

      1

    • B. 

      13

    • C. 

      12

    • D. 

      11

  • 45. 
    Identify the SPI pins in Arduino.
    • A. 

      7,8 & 9

    • B. 

      8,9 & 10

    • C. 

      10,11 & 12

    • D. 

      11,12 & 13

  • 46. 
    What is the maximum voltage level that can be read by any digital pin in Arduino UNO without damaging it?
    • A. 

      3.3V

    • B. 

      4.7V

    • C. 

      5V

    • D. 

      10V

  • 47. 
    What is the short cut key for verify button in Arduino IDE?
    • A. 

      Ctrl + R

    • B. 

      Ctrl + V

    • C. 

      Ctrl + U

    • D. 

      Ctrl + Y

  • 48. 
    • A. 

      EEPROM

    • B. 

      Flash

    • C. 

      SRAM

    • D. 

      EPROM

  • 49. 
    • A. 

      1&2

    • B. 

      0&1

    • C. 

      3&4

    • D. 

      9&10

  • 50. 
    If two resistors are connected in series then _________is the total resistance.
    • A. 

      Higher

    • B. 

      Lower

    • C. 

      Cannot be determined

    • D. 

      Same

  • 51. 
    Property of an electric circuit that dissipates electric energy
    • A. 

      Reactance

    • B. 

      Impedance

    • C. 

      Resistance

    • D. 

      Conductance

  • 52. 
    What is the correct syntax to initialize serial communication?
    • A. 

      Serial.begin()

    • B. 

      Serial.begun(9600)

    • C. 

      Serial.begin(9600)

    • D. 

      Serial.initialize(9600)

  • 53. 
    • A. 

      (5V * 1023) / (SensorValue)

    • B. 

      (SensorValue) * (5V / 1023)

    • C. 

      (1023 / 5V) * (SensorValue)

    • D. 

      (SensorValue) / (5V * 1023)

  • 54. 
    • A. 

      12

    • B. 

      14

    • C. 

      13

    • D. 

      20

  • 55. 
    Arduino platform is based on which micro-controller's family?
    • A. 

      8051 microcontroller family

    • B. 

      AVR microcontroller family

    • C. 

      PIC microcontroller family

    • D. 

      All the above

  • 56. 
    • A. 

      32KBytes

    • B. 

      16KBytes

    • C. 

      8KBytes

    • D. 

      4KBytes

  • 57. 
    An Arduino’s microcontroller is pre-programmed with a _______ that simplifies uploading of programs to the on-chip flash memory, compared with other devices that typically need an external chip programmer
    • A. 

      Personal computer

    • B. 

      Bootloader

    • C. 

      Computer

    • D. 

      Operating system

  • 58. 
    • A. 

      Pressure sensor

    • B. 

      Servo

    • C. 

      Button

    • D. 

      Potentiometer

  • 59. 
    In Arduino if 1 second delay is required in a program then which function can be used?
    • A. 

      Delay(1)

    • B. 

      DelayMilliseconds(1000)

    • C. 

      DelayMicroseconds(100000)

    • D. 

      None of the above

  • 60. 
    If a small value of capacitance is connected in parallel with a large value,the combinedcapacitance will be
    • A. 

      The same

    • B. 

      Higher

    • C. 

      Lower

    • D. 

      Cannot be determined

  • 61. 
    How many times the string "ElintLabz" is printed on the Serial Terminal? void setup( ) {int x; for (x=1; x
    • A. 

      Infinite times

    • B. 

      11 times

    • C. 

      0 times

    • D. 

      10 times

  • 62. 
    In Arduino, the function 'pinMode( )' can be used to configure the Atmega pins as
    • A. 

      OUTPUT_PULLDOWN

    • B. 

      INPUT_PULLUP

    • C. 

      Both a & b

    • D. 

      None of the above

  • 63. 
    • A. 

      1

    • B. 

      2

    • C. 

      Infinite

    • D. 

      0

  • 64. 
    • A. 

      14

    • B. 

      6

    • C. 

      8

    • D. 

      5

  • 65. 
    Which function does not return any value when it is called by any other function?
    • A. 

      DigitalRead()

    • B. 

      AnalogRead()

    • C. 

      Serial.Read()

    • D. 

      Serial.println()

  • 66. 
    PWM stands for ________.
    • A. 

      Pulse With Modulation

    • B. 

      Pin Width Modulation

    • C. 

      Pulse Width Modulation

    • D. 

      Pulse With Mode

  • 67. 
    The use of function pinMode() is not required to set pin as an output pin before calling ___________.
    • A. 

      AnalogRead()

    • B. 

      DigitalWrite()

    • C. 

      Analogreference()

    • D. 

      AnalogWrite()

  • 68. 
    • A. 

      Logical AND (&&)

    • B. 

      Logical OR (||)

    • C. 

      Logical NOT ( ! )

    • D. 

      Logical XOR ( ^ )

  • 69. 
    Identify the Invalid ‘If conditional statement'.
    • A. 

      If (variable > 50)

    • B. 

      If (variable = 50)

    • C. 

      If (variable < 50)

    • D. 

      If (variable != 50)

  • 70. 
    • A. 

      255

    • B. 

      1024

    • C. 

      4096

    • D. 

      65535

  • 71. 
    In function 'delay (t)', t is in_____.
    • A. 

      Microseconds

    • B. 

      Seconds

    • C. 

      Nanoseconds

    • D. 

      Milliseconds

  • 72. 
    • A. 

      Logical AND (&&)

    • B. 

      Logical OR (||)

    • C. 

      Logical NOT ( ! )

    • D. 

      Logical XOR ( ^ )

  • 73. 
    In Arduino the function 'pinMode()' cannot be used to configure the Atmega pins as
    • A. 

      OUTPUT_PULLDOWN

    • B. 

      INPUT_PULLUP

    • C. 

      Both A & B

    • D. 

      None of the Above

  • 74. 
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 75. 
    Which statement can be used inside other control statements to immediately end the loop or statement?
    • A. 

      Exit

    • B. 

      Continue

    • C. 

      Break

    • D. 

      End

  • 76. 
    The ability to alter the order in which code is executed is called_____.
    • A. 

      Flow control

    • B. 

      Program control

    • C. 

      Direction Control

    • D. 

      None of the above

  • 77. 
    • A. 

      28800

    • B. 

      57600

    • C. 

      115200

    • D. 

      144000

  • 78. 
    • A. 

      5V

    • B. 

      0V

    • C. 

      3.3V

    • D. 

      A or C

  • 79. 
    Connecting a wire from the NEGATIVE terminal to the POSITIVE terminal of a battery will produce:
    • A. 

      A high resistance circuit

    • B. 

      A short circuit

    • C. 

      A low current path

    • D. 

      An open circuit

  • 80. 
    The keyword used to transfer control from a called function back to the calling function is
    • A. 

      Switch

    • B. 

      Goto

    • C. 

      Go back

    • D. 

      Return

  • 81. 
    • A. 

      2 Bytes

    • B. 

      4 Bytes

    • C. 

      1 Byte

    • D. 

      8 Bytes

  • 82. 
    • A. 

      &

    • B. 

      &&

    • C. 

      ||

    • D. 

      !

  • 83. 
    Arduino (Atmega) pins are in high impedance state when pins are configured as
    • A. 

      INPUT

    • B. 

      OUTPUT

    • C. 

      INPUT_PULLUP

    • D. 

      All of the above

  • 84. 
    Atmega328 micro-controller has ______________ bytes of flash (Program) memory.
    • A. 

      64K

    • B. 

      8K

    • C. 

      16K

    • D. 

      32K

  • 85. 
    • A. 

      512Bytes

    • B. 

      1KBytes

    • C. 

      2KBytes

    • D. 

      256Bytes

  • 86. 
    • A. 

      Five, and they are labeled A1-A5

    • B. 

      Six, and they are labeled A0-A5

    • C. 

      Six, and they are labeled A1-A6

    • D. 

      Five, and they are labeled A0-A4

  • 87. 
    Which of the following is not a version of the Arduino?
    • A. 

      Tre

    • B. 

      Galileo

    • C. 

      Zero

    • D. 

      Leonardio

  • 88. 
    In which of the following the cases the code stops running?
    • A. 

      When there is syntax error

    • B. 

      When the power is down

    • C. 

      When USB Connection is removed

    • D. 

      Both b and c

  • 89. 
    • A. 

      AnalogRead()

    • B. 

      AnalogReference()

    • C. 

      AnalogValue()

    • D. 

      AnalogWrite()

  • 90. 
    In Arduino programming which function executes only once after power up?
    • A. 

      Setup()

    • B. 

      Loop()

    • C. 

      Main()

    • D. 

      All of the above

  • 91. 
    The number ‘104’ on a capacitor indicates
    • A. 

      0.1uF

    • B. 

      1000nF

    • C. 

      1nF

    • D. 

      10nF

  • 92. 
    A function declaration involves establishing the function's _________
    • A. 

      Return data type

    • B. 

      Function's name

    • C. 

      Parameters

    • D. 

      All of the above

  • 93. 
    If serial port is initialized with Serial.begin(9600), How much time will it take to send two ASCII characters?
    • A. 

      1.9220ms

    • B. 

      1.667ms

    • C. 

      4.800ms

    • D. 

      9.600ms

  • 94. 
    In Arduino UNO how many pins can be used as a digital input pins?
    • A. 

      6

    • B. 

      14

    • C. 

      20

    • D. 

      13

  • 95. 
    Identify the digital pin which does not have PWM capability.
    • A. 

      Digital pin 6

    • B. 

      Digital pin 4

    • C. 

      Digital pin 3

    • D. 

      Digital pin 5

  • 96. 
    Atmega328 is a ___________ microcontroller.
    • A. 

      8 bit

    • B. 

      16 bit

    • C. 

      32 bit

    • D. 

      32 bit

  • 97. 
    • A. 

      256Bytes

    • B. 

      512Bytes

    • C. 

      1KBytes

    • D. 

      2KBytes

  • 98. 
    Arduino (Atmega) Pins are in low impedance state when pins are configured as
    • A. 

      INPUT

    • B. 

      OUTPUT

    • C. 

      OUTPUT_PULLUP

    • D. 

      All of the above

  • 99. 
    If the microcontroller has 12bit ADC what is the range of analog values we can get?
    • A. 

      0 to 1023

    • B. 

      0 to 255

    • C. 

      0 to 4096

    • D. 

      0 to 65535

  • 100. 
    • A. 

      8 bit

    • B. 

      10 bit

    • C. 

      12 bit

    • D. 

      16 bit