Hardest Trivia Questions Quiz On Arduino Programming And C++

100 Questions | Total Attempts: 2181

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

Below is the Hardest Trivia Questions Quiz on Arduino Programming and C++. Are you an aspiring programmer and are looking for a way to test out how well you understand these two programming languages? The quiz below is one that the best of the best can pass, so if you tackle it and get half the marks, you should consider yourself super smart.


Questions and Answers
  • 1. 
    Which of the following is not a version of the Arduino?
    • 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. 
    Which logical operator will return a TRUE value if either of the conditional statements are TRUE?
    • A. 

      Logical and (&&)

    • B. 

      Logical or (||)

    • C. 

      Logical NOT (!)

    • D. 

      None

  • 7. 
    How many times 'while (-1)' loop will be executed?
    • 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. 
    How many GND pin are present on the Arduino UNO board?
    • 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. 
    Which 'If conditional statement' will not execute in any program?
    • 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. 
    What is the size of RAM in Atmega328p IC?
    • A. 

      256Bytes

    • B. 

      512Bytes

    • C. 

      1KBytes

    • D. 

      2KBytes

  • 21. 
    Which of the following is not a valid data type in Arduino?
    • A. 

      Void

    • B. 

      Short

    • C. 

      Word

    • D. 

      String

  • 22. 
    What is the maximum decimal value that can be stored in a character type variable in Arduino?
    • 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.