Variables and Identifiers

Qus. 1 : <p>What will be the output of the following Arduino code?</p><pre><span style="font-size: 14px;">#define X 10;<br></span><span style="font-size: 14px;">void setup()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>X=0;<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>Serial.begin(9600);<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>Serial.print(X);<br></span><span style="font-size: 14px;">}<br></span><span style="font-size: 14px;">void loop()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>//Do nothing…<br></span><span style="font-size: 14px;">}</span></pre><div><br></div>

  1. 0xAB
  2. 0xa
  3. 0
  4. Error
Qus. 2 : int a:16; what is 16 indicate here?

  1. Value
  2. Size
  3. Address
  4. None of the above
Qus. 3 : Which one is not a control structure ?

  1. While
  2. If.else
  3. #define
  4. Case

Programs

Arduino Program to take input from serial and on the led based on input.

View Solution


Arduino program to fade the led bulb using for loop

View Solution


Arduino program to connect a led through push button

View Solution


Arduino program to change the blinking speed of led using the potentiometer

View Solution


Arduino program to print all integer number from 0 to 99 using for loop

View Solution


Arduino program to print odd numbers from 1 to 99

View Solution


Arduino program to print odd numbers from 99 to 1

View Solution


arduino program to interface buzzer with Arduino board to buzz on off with the delay of 1sec

View Solution


Arduino program to Blink a Light Emitting Diode LED

View Solution


Arduino program to print Hello word in LCD

View Solution


Arduino program to run a counter and display in LCD

View Solution


Arduino program to interface the sensor and led

View Solution


Arduino program to sound the buzzer on press on push button for 1 second

View Solution


Arduino program to interface buzzer with LDR and LED

View Solution


Arduino program to create automatic street light control by using LDR sensor

View Solution


Arduino program to read a integer number and print its table

View Solution


Arduino program to print the square root of a given number

View Solution


Design a night lamp using a LDR and a LED using Arduino Uno and find out the time delays associated in keeping ON the lamp

View Solution


Design a counter using an atmega microcontroller (like ATMEGA328P) using Arduino to display the number of entries per day in an office.

View Solution


Write a program to interface a temperature sensor (LM35) and water Nozzle with the Arduino.

View Solution


Arduino program to interface led buzzer with Arduino or raspberry pi and turn ON LED for 2 second after every 3 second

View Solution


Arduino program to connect RGB Led Bulb

View Solution


Arduino program to turns on LED when the button is pressed once and remains on until the button is pressed again to turn it off

View Solution


Arduino program to interface security password with Arduino board to show green light for correct password and red light for incorrect password.

View Solution


Arduino program to input any integer number and print its table

View Solution


Arduino program to connect with Servo Motor

View Solution


Arduino program to interface LCD with Arduino board and print some text

View Solution


Arduino application where pressing a button increases a counter value, which is then displayed on an LCD

View Solution


Arduino program to interface DHT 22 sensor and find the Humidity Temperature and Heat index

View Solution


Arduino program to interface soil moisture sensor

View Solution


Arduino program to interface a temperature monitoring system in a public environment which will display information

View Solution


Arduino program to interface a PIR (Passive Infrared) sensor

View Solution


Arduino program to interface gas sensor to detect the gas

View Solution


Arduino program to Design a night lamp using a photodiode and a LED and find out the time delay associated with turning the lamp on and off.

View Solution


Arduino program to implement Two way traffic signal system.

View Solution


Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad