1.
How many times the function loop() runs?
Correct Answer
C. Infinite
Explanation
The function loop() runs an infinite number of times because there is no condition or constraint specified that would cause the loop to stop. Therefore, the loop will continue executing indefinitely until it is manually terminated or an error occurs.
2.
Which of the following is not a version of the Arduino?
Correct Answer
D. Leonard
Explanation
Leonard is not a version of the Arduino. The other options, Tre, Galileo, and Zero, are all versions of the Arduino.
3.
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 you pass an array as an argument to a function in a C program, what actually gets passed is the base address of the array. 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.
4.
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. ASCII (American Standard Code for Information Interchange) is a character encoding standard that represents text in computers and other devices. By using the Serial.print() function, ASCII characters can be sent to the Serial device for display or further processing.
5.
If the reference voltage is 3.3V for ADC in Arduino then the step size is
Correct Answer
D. 3.22mV
6.
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 voltage at the 13th pin on the Arduino UNO board to 5V, which turns on the LED connected to that pin.
7.
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 (||)" will return a TRUE value if either of the conditional statements are TRUE. This means that if at least one of the conditions is true, the result of the logical OR operation will be true.
8.
How many times 'while (-1)' loop will be executed?
Correct Answer
B. Infinite time
Explanation
The given answer is "Infinite time" because the condition of the while loop (-1) will always be true. Therefore, the loop will continue to execute indefinitely until it is manually terminated.
9.
Which controller can be used with Arduino Uno Board?
Correct Answer
D. Both Atmega 8 & 328p
Explanation
The correct answer is Both Atmega 8 & 328p. Both Atmega 8 and Atmega 328p can be used as controllers with the Arduino Uno Board. The Arduino Uno Board is compatible with various microcontrollers, and Atmega 8 and Atmega 328p are two of the options that can be used.
10.
How many GND pin are present on the Arduino UNO board?
Correct Answer
C. 3
Explanation
The Arduino UNO board has three 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 or interference in the circuit.
11.
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 end the execution of a function and return a value, if necessary, to the calling function. It allows the program to resume execution from where the function was called, allowing for modular and organized code.
12.
Identify the SCK pin in Arduino.
Correct Answer
B. 13
Explanation
The SCK pin in Arduino is identified as pin number 13.
13.
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 most programming languages, a value of 0 is considered as false, and the code block inside the if statement will not be executed.
14.
Functions are created by first declaring the ________ at the beginning of the program.
Correct Answer
B. Function prototype
Explanation
In order to create functions, it is necessary to declare the function prototype at the beginning of the program. The function prototype includes the function name, return type, and the number and types of parameters the function accepts. This declaration allows the compiler to understand the structure and signature of the function before it is actually defined. By declaring the function prototype, the program can call the function and the compiler will know what to expect in terms of input and output.
15.
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 value of i is always multiplied by 2 in each iteration. Since i starts at 0 and is multiplied by 2 each time, it will never reach a value greater than or equal to 10, causing the loop to continue indefinitely.
16.
What will be the output of this statement? Serial.println (i);
Correct Answer
A. Prints i with '\n' & '\r'
Explanation
The statement "Serial.println(i);" will print the value of variable i followed by a newline character ('\n') and a carriage return character ('\r'). This means that the output will display the value of i and then move the cursor to the beginning of the next line.
17.
Which of these pins can be used as a PWM pin?
Correct Answer
C. 9
Explanation
Pin 9 can be used as a PWM (Pulse Width Modulation) pin. PWM is a technique used to control the average voltage or current delivered to a load. It is commonly used to control the speed of motors or the brightness of LEDs. In Arduino, pin 9 is capable of generating PWM signals using the analogWrite() function.
18.
In Arduino programming which function executes infinitely after power up?
Correct Answer
B. Loop()
Explanation
The correct answer is "Loop()". In Arduino programming, the setup() function is executed once after power up to initialize variables and set pin modes. The loop() function is then executed repeatedly in an infinite loop, allowing the Arduino to continuously perform tasks or read inputs. The main() function is not used in Arduino programming as it is a C++ function that is automatically handled by the Arduino IDE. Therefore, the loop() function is the one that executes infinitely after power up in Arduino programming.
19.
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 software that can run on different operating systems. The Arduino IDE is designed to provide a user-friendly interface for programming Arduino boards, and Java allows for the creation of a cross-platform application that can be used on Windows, Mac, and Linux.
20.
By default a real number is treated as
Correct Answer
B. Double
Explanation
A real number is treated as a "double" by default because the "double" data type in programming languages represents a larger range and higher precision compared to other data types like "float" or "long". The "double" data type uses 64 bits to store the value, allowing for a wider range of values and more decimal places of precision. Therefore, when a real number is not explicitly defined as a specific data type, it is assumed to be a "double" by default.
21.
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 during program execution. The larger the RAM size, the more data can be stored and accessed quickly by the processor. In this case, the Atmega328p IC has a 2KBytes RAM size, which allows for efficient data handling and processing within the microcontroller.
22.
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 "Void" (used for functions that do not return a value), "Word" (unsigned 16-bit integer), and "String" (a sequence of characters). However, "Short" is not a recognized data type in Arduino.
23.
What is the maximum decimal value that can be stored in a character type variable in Arduino?
Correct Answer
A. 255
Explanation
The maximum decimal value that can be stored in a character type variable in Arduino is 255. This is because a character type variable in Arduino uses 8 bits of memory, allowing it to store values ranging from 0 to 255.
24.
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) determines the smallest increment in voltage that can be detected and converted to a digital value. In this case, if the reference voltage for the ADC in Arduino is 5V, the step size would be 4.88mV. This means that the ADC can detect and convert voltage changes as small as 4.88mV into digital values.
25.
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 connected across a 10V supply, the circuit current can be determined 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). By substituting these values into the formula, we get I = 10V / 10,000 ohms = 0.001A, which is equal to 1mA. Therefore, the correct answer is 1mA.
26.
A Zener diode __________.
Correct Answer
B. Has a sharp breakdown at low reverse voltage.
Explanation
A Zener diode is a type of diode that is designed to operate in the reverse breakdown region. This means that it has a sharp breakdown at low reverse voltage, allowing it to maintain a constant voltage across its terminals when it is reverse biased. This property makes Zener diodes useful for voltage regulation and protection in circuits. It does not have a high forward voltage rating, is not typically used as an amplifier, and does not exhibit negative resistance.
27.
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. It is not a closed source platform, and it is specifically designed for prototyping purposes. It is important to note that Arduino is not based on ARM Microcontrollers, as the correct answer states.
28.
In Arduino programming every statement ends with __________.
Correct Answer
C. ;
Explanation
In Arduino programming, every statement ends with a semicolon (;). This is a common practice in many programming languages, including C and C++, which Arduino is based on. The semicolon serves as a statement terminator, indicating the end of a line of code. It is important to include the semicolon at the end of each statement to ensure that the code is properly executed and to avoid syntax errors.
29.
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 average voltage or current by varying the duty cycle of a square wave signal. In this case, the range of the duty cycle is from 0% to 100%, and since the value is represented by an 8-bit binary number, the range becomes 0 to 255.
30.
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 its instructions at least once. This is because the condition is checked at the end of the loop, so even if the condition is initially false, the instructions will still be executed once before the condition is evaluated. 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 will not be executed at all. The if loop is not a loop, but a conditional statement used for decision-making.
31.
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 are used to generate analog output signals by varying the width of the pulse. These pins are labeled as 3, 5, 6, 9, 10, and 11 on the Arduino Uno Board.
32.
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. The parentheses around *ptr indicate that ptr is a pointer, and the [10] indicates that it is a pointer to an array of size 10.
33.
Transistor is a ________.
Correct Answer
A. Current controlled current device
Explanation
A transistor is a current controlled current device because it uses a small current to control a larger current flowing through it. The input current controls the output current, allowing for amplification and switching functions.
34.
Arduino IDE is derived from _________.
Correct Answer
B. Wiring & Processing
Explanation
The correct answer is Wiring & Processing. Arduino IDE is derived from the Wiring programming language and the Processing development environment. Wiring is a programming language and framework specifically designed for microcontrollers, while Processing is a programming language and integrated development environment (IDE) primarily used for visual arts and design. The combination of these two technologies forms the foundation of the Arduino IDE, providing a user-friendly platform for programming and interacting with Arduino boards.
35.
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 on many microcontrollers, such as the Arduino, is a Pulse Width Modulation (PWM) pin. PWM allows for the generation of analog signals by rapidly switching the pin on and off at different duty cycles. By varying the duty cycle, the average voltage output can be adjusted between 0V and 5V, thus allowing for voltage adjustment within that range.
36.
In which file extension Arduino sketches are saved?
Correct Answer
A. .ino
Explanation
Arduino sketches are saved with the .ino file extension. This extension is used to identify and differentiate Arduino sketch files from other types of files. It is a common convention followed by Arduino IDE (Integrated Development Environment) to save sketches with the .ino extension. This allows the IDE to recognize and open the file as an Arduino sketch, making it easier for developers to work with and upload their code to Arduino boards.
37.
Which of the following operator has the highest precedence?
Correct Answer
D. Increment/ decrement (++,- -)
Explanation
The increment and decrement operators (++ and - -) have the highest precedence among the given operators. This means that they are evaluated first before any other operators in an expression. These operators are used to increase or decrease the value of a variable by 1.
38.
Identify the correct variable declaration.
Correct Answer
B. Int my_Variable;
Explanation
The correct variable declaration is "Int my_Variable;". In programming, variables are typically declared using a combination of letters, numbers, and underscores, but they cannot start with a number or contain special characters like hashtags. Therefore, options 1, 3, and 4 are incorrect. Option 2, "Int my_Variable;", follows the correct naming convention and is a valid variable declaration.
39.
A resistor with Color bands: red -red- red gold has the value
Correct Answer
B. 2k2 with 5% tolerance
Explanation
The resistor with color bands red-red-red-gold has the value of 2k2 with 5% tolerance. The color bands on a resistor indicate its resistance value and tolerance. In this case, the red-red-red bands represent the digits 2, 2, and a multiplier of 100 (red = 2, red = 2, red = 100). Therefore, the value of the resistor is 2,200 ohms or 2k2. The gold band indicates a tolerance of 5%, meaning that the actual resistance can vary by 5% from the stated value of 2k2.
40.
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 means that the program is accessing memory outside the bounds of the array. This can lead to overwriting important data that is stored in adjacent memory locations. As a result, the program may crash or produce unexpected behavior.
41.
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 digital signal to a device or computer when it is pressed, indicating a specific action or command. Unlike analog input devices, such as a potentiometer or pressure sensor, which can have a range of values, a button provides a discrete input that is either on or off.
42.
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 provide or draw a maximum current of 40mA. It is important to note this limit as exceeding it can damage the Arduino board or the connected components. Therefore, it is necessary to ensure that the current flowing through the pins does not exceed this value to prevent any potential damage.
43.
What is the frequency of the crystal used in Arduino Uno Board?
Correct Answer
B. 16 MHz
Explanation
The correct answer is 16 MHz. The frequency of the crystal used in the Arduino Uno Board is 16 MHz. This crystal is responsible for providing the timing reference for the microcontroller on the board. It helps in accurately executing instructions and maintaining the correct timing for various operations.
44.
Conventional flow assumes charges flow from
Correct Answer
A. Positive to Negative
Explanation
Conventional flow assumes that charges flow from the positive terminal of a source to the negative terminal. This is based on the historical understanding of electricity, where the direction of current flow was initially thought to be from positive to negative. While we now know that electrons actually flow in the opposite direction, conventional flow is still used as a standard convention in electrical engineering and circuit analysis.
45.
In Arduino UNO which pin has inbuilt on board LED associated with it?
Correct Answer
B. 13
Explanation
Pin 13 in Arduino UNO has an inbuilt on board LED associated with it. This means that when you write a HIGH value to pin 13, the LED will turn on, and when you write a LOW value to pin 13, the LED will turn off. This pin is commonly used for testing and debugging purposes, as it provides a quick and easy way to check if the Arduino board is functioning correctly.
46.
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. The correct answer is 11, 12, and 13 because these pins (MOSI, MISO, and SCK) are specifically designated for SPI communication. MOSI (Master Out Slave In) is used for data transmission from the Arduino to the peripheral device, MISO (Master In Slave Out) is used for data transmission from the peripheral device to the Arduino, and SCK (Serial Clock) is used for synchronizing the data transfer between the Arduino and the peripheral device.
47.
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 on a 5V logic level, meaning it can only interpret voltages below or equal to 5V as HIGH or logic 1. Any voltage above 5V may damage the digital pin, so it is important to ensure that the input voltage does not exceed this limit.
48.
What is the short cut key for verify button in Arduino IDE?
Correct Answer
A. Ctrl + R
Explanation
The shortcut key for the verify button in Arduino IDE is Ctrl + R. This combination allows users to quickly verify their code without having to manually click on the verify button. This shortcut saves time and makes the coding process more efficient.
49.
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 for storing firmware or software in electronic devices. In the case of Arduino, the sketch is compiled and uploaded to the Arduino board's Flash memory, where it remains even after power is removed. This allows the program to be executed each time the Arduino is powered on or reset.
50.
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 connected to the built-in USB-to-serial converter of the Arduino board, allowing communication with other devices or computers.