Interfacing sensors

Qus. 1 : In I2C connection, which pin on the Arduino Uno is utilized for SCL (Serial clock)?

  1. D2
  2. A5
  3. A2
  4. A4
Qus. 2 : Which of the Arduino pins is connected to the Data5 (D5) pin on the 16x2 character LCD?

  1. Pin No. 3
  2. Pin No. 2
  3. Pin No. 5
  4. Pin No. 4
Qus. 3 : <p>What is the output of “pin 1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V?</p><pre><span style="font-size: 14px;">int pin1 = 12;<br></span><span style="font-size: 14px;">int pin2 = 11;<br></span><span style="font-size: 14px;">void setup() {<br></span><span style="font-size: 14px;">&nbsp; &nbsp;pinMode(pin1, OUTPUT);<br></span><span style="font-size: 14px;">&nbsp; &nbsp;pinMode(pin2, INPUT);<br></span><span style="font-size: 14px;">&nbsp; &nbsp;Serial.begin(9600);<br></span><span style="font-size: 14px;">}<br></span><span style="font-size: 14px;">void loop() {<br></span><span style="font-size: 14px;">&nbsp; if(digitalRead(pin2)==1) {<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span> digitalWrite(pin1,LOW);<br></span><span style="font-size: 14px;"><span style="white-space:pre"> </span>&nbsp; }<br></span><span style="font-size: 14px;">else if(digitalRead(pin2)==0) {<br></span><span style="font-size: 14px;">digitalWrite(pin1,HIGH);<br></span><span style="font-size: 14px;">}<br></span><span style="font-size: 14px;">}</span></pre><div><br></div>

  1. 1110
  2. 0100
  3. 1111
  4. 1011
Qus. 4 : What is temperature in Celsius LM35 for corresponding 270mV as a output voltage?

  1. 50
  2. 25
  3. 27
  4. 54
Qus. 5 : How many terminals does the MQ2 Gas Sensor have?

  1. 1
  2. 2
  3. 3
  4. 4
Qus. 6 : Which one is incorrect for the Arduino UNO’s analog pin group?

  1. Logic (1/0) not used for input/output.
  2. Used for the digital conversion of analog values taken from external environment.
  3. There are 6 analog input pins.
  4. The resolution of each input is 10 bits.
Qus. 7 : Fading technique used for____________pin in Arduino.

  1. A2
  2. D2
  3. PWM
  4. 5V
Qus. 8 : Which statement is true in concern with Request-response IoT communication model?

  1. Each request-response pair is dependent of others
  2. Request- response is a stateless communication model
  3. Client server architecture of Request-response uses queues
  4. In request-response publisher is a client and broker are server.
Qus. 9 : What will happen if we supply a voltage of 25V to the IR sensor?

  1. Damage is caused
  2. Sensor will work fine
  3. Sensor will not respond for the time voltage applied
  4. Sensor will function normally
Qus. 10 : Which Function is used for PWM pin in Arduino?

  1. digitalWrite()
  2. serial.print ( )
  3. analogWrite()
  4. pinMode()
Qus. 11 : A digit value is converted to an analogue signal using which of the following Methods?

  1. analogRead()
  2. ADC
  3. DAC
  4. pinMode()
Qus. 12 : Type of circuit board which can be used for extension of capabilities of Arduino board

  1. Bread Board
  2. Shield
  3. Actuator
  4. Microprocessor
Qus. 13 : Which software is used to upload the Arduino Sketches to the board?

  1. avrgcc
  2. g++
  3. cpython for windows
  4. avrdude
Qus. 14 : What is pin connect block?

  1. All pins are having a function without reserved
  2. Some pins are reserved
  3. Pins have more than one function
  4. Multiplexing of some pins
Qus. 15 : In What of Pin, DHT sensor should be connected?

  1. analog pin
  2. digital pin
  3. any one
  4. None of these

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


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad