1.
Which of the following is not a version of the Arduino?
Correct Answer
D. Leonardio
Explanation
The Arduino Leonardio is not a version of the Arduino. The correct version is called Leonardo.
2.
In C program, if you pass an array as an argument to a function,what actually gets passed?
Correct Answer
C. Base address of the array
Explanation
When an array is passed as an argument to a function in a C program, only the base address of the array is actually passed. This means that the memory address of the first element of the array is passed to the function. By using this base address, the function can access and manipulate the elements of the array. The function can also calculate the memory addresses of other elements in the array based on the size of the elements and their positions relative to the base address.
3.
The Serial.print() function is used for printing __________________to the connected Serial device.
Correct Answer
B. ASCII Characters
Explanation
The Serial.print() function is used for printing ASCII characters to the connected Serial device. This means that when using this function, the data being printed will be interpreted as ASCII characters and displayed accordingly. It is not used for printing hexadecimal values or binary values directly, as those would need to be converted to ASCII characters first. Therefore, the correct answer is ASCII Characters.
4.
If the reference voltage is 3.3V for ADC in Arduino then the step size is
Correct Answer
D. 3.22mV
5.
Which statement when executed provides 5V @ the 13th pin on Arduino UNO board in order to turn ON the LED?
Correct Answer
A. DigitalWrite(13,HIGH);
Explanation
The correct answer is digitalWrite(13,HIGH). This statement sets the 13th pin on the Arduino UNO board to a HIGH state, which provides 5V to the pin. This will turn ON the LED connected to that pin. The other statements do not specifically set the 13th pin to HIGH, so they will not turn ON the LED.
6.
Which logical operator will return a TRUE value if either of the conditional statements are TRUE?
Correct Answer
B. Logical or (||)
Explanation
The logical operator "Logical or (||)" returns a TRUE value if either of the conditional statements are TRUE. This means that if at least one of the conditions is true, the overall result will be true.
7.
How many times 'while (-1)' loop will be executed?
Correct Answer
B. Infinite time
Explanation
The given answer is "Infinite time" because the condition in the while loop is "-1", which is always true. Therefore, the loop will continue to execute indefinitely until it is explicitly terminated or interrupted.
8.
Which controller can be used with Arduino Uno Board?
Correct Answer
D. Both A & C
Explanation
Both A & C are the correct answers because both Atmega 8 and Atmega 328p can be used as controllers with the Arduino Uno board. The Arduino Uno board is compatible with a variety of microcontrollers, and these two options are among the supported ones.
9.
How many GND pin are present on the Arduino UNO board?
Correct Answer
C. 3
Explanation
The Arduino UNO board has 3 GND (ground) pins. These pins are used to provide a common reference voltage for the components connected to the board. Having multiple GND pins allows for better grounding and reduces the chances of noise and interference in the circuit.
10.
The keyword used to transfer the control from a called function back to the calling function is___.
Correct Answer
B. Return
Explanation
The keyword used to transfer the control from a called function back to the calling function is "Return". This keyword is used to exit the current function and return a value, if specified, to the calling function. It allows the program to continue executing from the point where the function was called.
11.
Identify the SCK pin in Arduino.
Correct Answer
B. 13
Explanation
The SCK (Serial Clock) pin in Arduino is used for synchronizing data transfer between the Arduino and other devices, such as sensors or displays, that use the SPI (Serial Peripheral Interface) communication protocol. In this case, the correct answer is 13 because it is the pin number assigned to the SCK pin on the Arduino board.
12.
Which 'If conditional statement' will not execute in any program?
Correct Answer
A. If (0)
Explanation
The 'If (0)' conditional statement will not execute in any program because the condition inside the if statement is false. In programming, a condition of 0 is considered as false, while any non-zero value is considered as true. Therefore, since 0 is false, the code inside the if statement will not be executed.
13.
Functions are created by first declaring the ________ at the beginning of the program.
Correct Answer
B. Function prototype
Explanation
A function prototype is declared at the beginning of a program to provide information about the function to the compiler. It includes the function's name, return type, and parameter types. This allows the compiler to validate function calls and ensure that the function is used correctly in the program. By declaring the function prototype, the programmer can define the function later in the program or in a separate file, making it easier to organize and manage large codebases.
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?
Correct Answer
A. Infinite
Explanation
The loop will be executed infinitely because the condition i < 10 will always be true. The loop starts with i = 0 and in each iteration, i is multiplied by 2. Since 0 multiplied by any number is still 0, the value of i will never reach 10. Therefore, the loop will continue to execute indefinitely.
15.
What will be the output of this program? void setup( ) { int i=0; for (; i
Correct Answer
D. 6
Explanation
The program will output "6". This is because the variable "i" is initialized to 0 and the for loop continues as long as "i" is less than 5. Inside the loop, "i" is incremented by 1 each time. So the loop will run 6 times (0, 1, 2, 3, 4, 5) before the condition becomes false. Therefore, the final value of "i" is 6.
16.
Which of these pins can be used as a PWM pin?
Correct Answer
C. 9
Explanation
Pin 9 can be used as a PWM pin because it is one of the pins on the Arduino Uno board that supports Pulse Width Modulation (PWM) output. PWM allows for the control of analog devices by rapidly switching the output on and off at varying duty cycles, effectively simulating an analog voltage. This pin can be used to control devices such as LEDs, motors, and servos, providing a range of output values between 0 and 255.
17.
In Arduino programming which function executes infinitely after power up?
Correct Answer
B. Loop()
Explanation
The correct answer is "Loop()". In Arduino programming, the Loop() function is executed continuously after power up. This function is responsible for running the main code of the program in a loop, allowing the Arduino board to constantly perform the desired tasks or actions until it is powered off or reset. The Setup() function, on the other hand, is executed only once at the beginning to initialize variables and set up the necessary configurations. The Main() function is not specific to Arduino programming and is not relevant in this context.
18.
In which language the Arduino IDE is written?
Correct Answer
A. Java
Explanation
The Arduino IDE is written in Java. Java is a popular programming language known for its platform independence, making it suitable for developing applications that can run on different operating systems. The use of Java allows the Arduino IDE to be compatible with various platforms, making it accessible to a wide range of users.
19.
By default a real number is treated as
Correct Answer
B. Double
Explanation
A real number is typically treated as a double by default. The double data type in programming languages represents a floating-point number with double precision, meaning it can store a larger range of values and provide more decimal places of accuracy compared to a float. Therefore, when a real number is not specified with a specific data type, it is assumed to be a double.
20.
What is the size of RAM in Atmega328p IC?
Correct Answer
D. 2KBytes
Explanation
The correct answer is 2KBytes. The Atmega328p IC has a RAM size of 2KBytes. RAM (Random Access Memory) is a type of computer memory that is used for temporary storage of data that can be read from and written to by the processor. In the case of the Atmega328p IC, it has a RAM size of 2KBytes, which means it can store up to 2 kilobytes of data in its temporary memory.
21.
Which of the following is not a valid data type in Arduino?
Correct Answer
B. Short
Explanation
The data type "Short" is not a valid data type in Arduino. Arduino supports various data types such as int, float, char, boolean, and void, but "Short" is not one of them.
22.
What is the maximum decimal value that can be stored in a character type variable in Arduino?
Correct Answer
A. 255
Explanation
A character type variable in Arduino can store values from 0 to 255. Therefore, the maximum decimal value that can be stored in a character type variable in Arduino is 255.
23.
If the reference voltage is 5V for ADC in Arduino then the step size is
Correct Answer
A. 4.88mV
Explanation
The step size of an ADC (Analog-to-Digital Converter) is determined by the reference voltage and the resolution of the ADC. In this case, the reference voltage is given as 5V. The step size can be calculated by dividing the reference voltage by the maximum value of the ADC's digital output. Assuming the ADC has a 10-bit resolution, the maximum value would be 1023. Dividing 5V by 1023 gives us a step size of approximately 4.88mV.
24.
If a 10K resistor is placed across a 10v supply then the circuit current will be
Correct Answer
B. 1mA
Explanation
When a 10K resistor is placed across a 10V supply, the circuit current can be calculated using Ohm's Law, which states that current (I) is equal to voltage (V) divided by resistance (R). In this case, the voltage is 10V and the resistance is 10K (which is equivalent to 10,000 ohms). So, the current (I) can be calculated as 10V / 10K ohms = 0.001A = 1mA. Therefore, the correct answer is 1mA.
25.
A Zener diode __________.
Correct Answer
B. Has a sharp breakdown at low reverse voltage.
Explanation
A Zener diode is a type of diode that operates in the reverse-biased mode. Unlike regular diodes, a Zener diode is designed to have a sharp breakdown at a specific reverse voltage, known as the Zener voltage. This sharp breakdown allows the Zener diode to regulate voltage and maintain a constant voltage across its terminals, even when the current varies. This makes Zener diodes useful in voltage regulation and protection circuits. The other options are incorrect as they do not accurately describe the characteristics or applications of a Zener diode.
26.
What is Arduino?
Correct Answer
A. Open source prototyping platform based on AVR Microcontrollers.
Explanation
Arduino is an open source prototyping platform that is based on AVR Microcontrollers. This means that it is a platform that allows users to create and develop their own electronic projects using AVR Microcontrollers. The fact that it is open source means that the design and code for Arduino is freely available for anyone to use, modify, and distribute. This allows for a collaborative and community-driven approach to development, making Arduino a popular choice for hobbyists, students, and professionals alike.
27.
In Arduino programming every statement ends with __________.
Correct Answer
C. ;
Explanation
In Arduino programming, every statement ends with a semicolon (;). This is a common convention in many programming languages, including C and C++, which Arduino is based on. The semicolon acts as a delimiter, indicating the end of a statement and allowing the compiler to understand the structure of the code. Omitting the semicolon can result in a syntax error and cause the program to fail. Therefore, it is important to include the semicolon at the end of each statement in Arduino programming.
28.
PWM output varies from ________.
Correct Answer
A. 0 to 255
Explanation
PWM output varies from 0 to 255. This is because PWM (Pulse Width Modulation) is a technique used to control the amount of power delivered to a load by varying the width of the pulse signal. In this case, the range of the PWM output is from 0 (representing 0% duty cycle or no power) to 255 (representing 100% duty cycle or full power). The values in between represent different levels of power output, allowing for precise control over the load.
29.
Which loop executes the instructions in loop atleast once?
Correct Answer
B. Do while loop
Explanation
The do-while loop is the only loop that guarantees the execution of the instructions at least once. This is because the condition for the loop is checked at the end of each iteration, ensuring that the instructions are executed at least once before checking the condition. In contrast, the other loops (while loop and for loop) check the condition before executing the instructions, so if the condition is initially false, the instructions may not be executed at all. The if loop is not a loop at all, but a conditional statement used for decision-making.
30.
How many PWM pins are there on Arduino Uno Board?
Correct Answer
C. 6
Explanation
The Arduino Uno board has a total of 6 PWM (Pulse Width Modulation) pins. PWM pins allow for the control of analog output by varying the width of the signal's pulse. These pins are labeled as 3, 5, 6, 9, 10, and 11 on the Arduino Uno board. They can be used to control things like LED brightness, motor speed, and servo position.
31.
What does the following declaration mean? int (*ptr)[10];
Correct Answer
B. Ptr is a pointer to an array of 10 integers
Explanation
The declaration "int (*ptr)[10];" means that ptr is a pointer to an array of 10 integers. This means that ptr can be used to point to the memory location of an array that contains 10 integers.
32.
Transistor is a ________.
Correct Answer
A. Current controlled current device
Explanation
A transistor is a current controlled current device because the amount of current flowing through the transistor's collector-emitter path is controlled by the amount of current flowing into its base. The base current acts as a control signal, determining the amount of current that can flow through the transistor. Thus, the transistor can be seen as a device that amplifies or regulates current based on the input current.
33.
Arduino IDE is derived from _________.
Correct Answer
B. Wiring & Processing
Explanation
The correct answer is Wiring & Processing. Arduino IDE is derived from the combination of the Wiring framework and the Processing language. Wiring is an open-source programming framework that provides a simplified way to write code for microcontrollers, while Processing is a programming language and development environment specifically designed for visual arts and creative coding. The combination of these two technologies forms the foundation of the Arduino IDE, which allows users to easily program Arduino boards.
34.
Which of these pins can be used to adjust the voltage between 0V & 5V when configured as an OUTPUT?
Correct Answer
C. 9
Explanation
Pin 9 can be used to adjust the voltage between 0V and 5V when configured as an OUTPUT. This is because pin 9 is the analog output pin on many microcontrollers, which allows for the generation of analog voltage signals. By varying the digital value written to pin 9, the corresponding analog voltage can be adjusted, thus allowing for the desired voltage range between 0V and 5V.
35.
In which file extension Arduino sketches are saved?
Correct Answer
A. .ino
Explanation
Arduino sketches are saved with the .ino file extension. This file extension is specific to Arduino and is used to identify and differentiate Arduino sketches from other types of files. By using the .ino file extension, it becomes easier for the Arduino IDE (Integrated Development Environment) to recognize and open these files for editing and uploading to Arduino boards.
36.
Which of the following operator has the highest precedence?
Correct Answer
D. Increment/ decrement (++,- -)
Explanation
The increment/decrement operators (++,- -) have the highest precedence among the given operators. This means that they are evaluated first before any other operators in an expression. This is because incrementing or decrementing a value is a fundamental operation that needs to be performed immediately. The other operators, such as addition, logical AND, and assignment, have lower precedence and are evaluated after the increment/decrement operators.
37.
Identify the correct variable declaration.
Correct Answer
B. Int my_Variable;
Explanation
The correct variable declaration is "Int my_Variable;". In programming, variable names cannot contain spaces or special characters like #, and they cannot start with a number. The variable name should start with a letter or an underscore. Therefore, "Int my_Variable;" follows the correct naming conventions for a variable declaration.
38.
A resistor with Color bands: red -red- red gold has the value
Correct Answer
B. 2k2 with 5% tolerance
Explanation
The color bands on a resistor indicate its value and tolerance. In this case, the red-red-red gold color bands suggest that the resistor has a value of 2k2. The gold band represents the tolerance, which is 5%. This means that the actual resistance of the resistor can vary by 5% from the stated value of 2k2.
39.
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
Correct Answer
C. The program may crash if some important data gets overwritten.
Explanation
If a value is assigned to an array element whose subscript exceeds the size of the array, it will result in accessing memory outside the bounds of the array. This can lead to overwriting important data stored in adjacent memory locations, causing the program to crash. It is important to ensure that array elements are accessed within the bounds of the array to avoid such issues.
40.
Which of these is a digital input device?
Correct Answer
C. Button
Explanation
A button is a digital input device because it can only have two states - pressed or not pressed. It sends a signal to a device when it is pressed, indicating a digital input. A pressure sensor, servo, and potentiometer are not necessarily digital input devices as they can have a range of values or positions, rather than just two distinct states.
41.
Arduino (Atmega) pins can source / sink current up to
Correct Answer
B. 40mA
Explanation
Arduino (Atmega) pins can source/sink current up to 40mA. This means that the pins can either provide or accept a maximum current of 40mA. It is important to stay within this limit to prevent damage to the Arduino board or the connected components.
42.
What is the frequency of the crystal used in Arduino Uno Board?
Correct Answer
B. 16 MHz
Explanation
The frequency of the crystal used in the Arduino Uno Board is 16 MHz. The crystal is responsible for providing a stable clock signal that regulates the timing of the microcontroller on the board. This frequency is commonly used in Arduino boards to ensure accurate and precise timing for various operations and functions.
43.
In C, if you pass an array as an argument to a function, what actually gets passed?
Correct Answer
C. Base address of the array
Explanation
When an array is passed as an argument to a function in C, only the base address of the array is actually passed. This means that the memory address of the first element of the array is passed to the function. With this base address, the function can access and manipulate the elements of the array by using pointer arithmetic. Therefore, the correct answer is the "Base address of the array".
44.
In Arduino UNO which pin has inbuilt on board LED associated with it?
Correct Answer
B. 13
Explanation
Arduino UNO has an inbuilt on board LED associated with pin 13. This means that when pin 13 is set to HIGH, the LED will turn on, and when pin 13 is set to LOW, the LED will turn off. This pin is commonly used for testing and debugging purposes, as it provides a simple way to verify that the Arduino board is functioning correctly.
45.
Identify the SPI pins in Arduino.
Correct Answer
D. 11,12 & 13
Explanation
The SPI (Serial Peripheral Interface) pins in Arduino are used for communication with other devices. In Arduino, the SPI pins are typically labeled as MOSI (Master Out Slave In), MISO (Master In Slave Out), and SCK (Serial Clock). These pins are responsible for transmitting and receiving data between the Arduino and external devices. In this case, the correct answer is 11, 12, and 13, as these are the pins on the Arduino board that are designated for SPI communication.
46.
What is the maximum voltage level that can be read by any digital pin in Arduino UNO without damaging it?
Correct Answer
C. 5V
Explanation
The maximum voltage level that can be read by any digital pin in Arduino UNO without damaging it is 5V. This is because the Arduino UNO operates at 5V logic level and exceeding this voltage can potentially damage the pins. It is important to ensure that any input voltage does not exceed this limit to prevent any harm to the Arduino board.
47.
What is the short cut key for verify button in Arduino IDE?
Correct Answer
A. Ctrl + R
Explanation
The correct answer is Ctrl + R. This shortcut key is used to verify the code in the Arduino IDE. When pressed, it checks the syntax and compiles the code to ensure there are no errors before uploading it to the Arduino board. This is a useful shortcut for quickly checking the code for any mistakes or errors.
48.
Which memory space is used to store the program (sketch) in Arduino?
Correct Answer
B. Flash
Explanation
The program (sketch) in Arduino is stored in the Flash memory space. Flash memory is a type of non-volatile memory that can be electrically erased and reprogrammed. It is commonly used in microcontrollers like Arduino to store the program code, as it retains the code even when power is turned off. EEPROM (Electrically Erasable Programmable Read-Only Memory) is another type of non-volatile memory, but it is typically used for storing data that needs to be retained even when power is lost, such as configuration settings or user data. SRAM (Static Random Access Memory) and EPROM (Erasable Programmable Read-Only Memory) are not typically used to store the program code in Arduino.
49.
Which of these pins can be used as RX & TX pins for serial communication in Arduino UNO?
Correct Answer
B. 0&1
Explanation
Pins 0 and 1 can be used as RX (Receive) and TX (Transmit) pins for serial communication in Arduino UNO. These pins are labeled as "RX" and "TX" respectively on the Arduino board. They are connected to the built-in USB-to-serial converter chip, allowing the Arduino to communicate with a computer through a USB connection. Therefore, these pins are suitable for serial communication tasks.
50.
If two resistors are connected in series then _________is the total resistance.
Correct Answer
A. Higher
Explanation
When two resistors are connected in series, the total resistance increases. This is because the current flowing through both resistors is the same, and the voltage across each resistor adds up. As a result, the total voltage across the resistors is higher than the voltage across each individual resistor. According to Ohm's law (V = IR), if the voltage increases and the current remains the same, the resistance must also increase. Therefore, the correct answer is "Higher".