Writing code in sketch

Qus. 1 : The default method(s) in Arduino program is/are

  1. Only loop()
  2. only setup()
  3. setup() and loop()
  4. can be either loop() or setup()
Qus. 2 : All Code in an Arduino sketch is processed from

  1. Top to bottom
  2. Bottom to top
  3. Any order
  4. None of these
Qus. 3 : Which of the following statement true about a sketch?

  1. It is a name that Arduino uses for a program
  2. Its the unit of code that is uploaded to run on an Arduino board
  3. Both (A) and (B)
  4. None of these
Qus. 4 : Which symbol is used in Arduino to calculate modulo

  1. #
  2. $
  3. %
  4. !
Qus. 5 : Which command is used to create a delay in the Arduino program?

  1. digitalRead()
  2. for()
  3. pinMode()
  4. delay()
Qus. 6 : What types of instructions have the most impact on the programme counter?

  1. Call & Jump
  2. Getchar & putchar
  3. Call & Return
  4. Return & Jump
Qus. 7 : The SI unit of resistance is ————.

  1. Volt
  2. Faraday
  3. Ampere
  4. Ohm
Qus. 8 : ADC (Analog to Digital converter) on Arduino board is used to convert__ signal into digital signal

  1. Analog
  2. Digital
  3. Both A & B
  4. None of the above
Qus. 9 : The command which is used to display the characters in the serial monitor is

  1. Serial
  2. Serial.type
  3. Serial.println
  4. Serial.printing
Qus. 10 : Arduino Codes are referred to as____in the Arduino IDE.

  1. sketches
  2. drawings
  3. links
  4. notes
Qus. 11 : Statement required in Arduino program to generate one second delay is

  1. delay(100);
  2. delay(1000);
  3. delay(10000);
  4. delay(1);
Qus. 12 : The analogRead method in Arduino UNO returns value range

  1. 0-255
  2. 0-511
  3. 0-1023
  4. 0-4095
Qus. 13 : Which of the following Function is called only once in Arduino program?

  1. loop()
  2. setup()
  3. selay()
  4. digitalWrite()
Qus. 14 : Program written in Arduino IDE is known as

  1. Code
  2. Source code
  3. Sketch
  4. Paint
Qus. 15 : The basic program in Arduino IDE contains

  1. setup () and loop () function
  2. Only setup () function
  3. Only loop () function
  4. None of these
Qus. 16 : AnalogWrite method can be used for

  1. PWM pins
  2. Hybrid pins
  3. Digital pins
  4. None of these
Qus. 17 : In Arduino programming, ____________ function is used to make digital pin HIGH

  1. pinMode()
  2. digitalWrite()
  3. analogWrite()
  4. setPin()
Qus. 18 : In Arduino programming, digital pins have ___________possible values

  1. Only one
  2. Two
  3. Three
  4. Any number of values
Qus. 19 : Capacitance is measured in

  1. Ohm
  2. Farad
  3. Henry
  4. Coulomb
Qus. 20 : The property of any conductor that opposes the flow of electric current through it is known as

  1. Capacitance
  2. Resistance
  3. Inductance
  4. None of these
Qus. 21 : What does the setup() function in an Arduino sketch do?

  1. Runs continuously in a loop
  2. Initializes variables and sets up configurations
  3. Executes only when an error occurs
  4. Used to include libraries
Qus. 22 : Which Arduino pin is used for analog input?

  1. A0 to A5
  2. D0 to D13
  3. GND
  4. 3.3V
Qus. 23 : What is the purpose of the delay() function in Arduino?

  1. Pauses the program for a specific amount of time
  2. Stops the program permanently
  3. Restarts the program
  4. Initializes the board
Qus. 24 : Which pin on an Arduino board is typically used for PWM output?

  1. Analog pin
  2. Digital pin with ~ symbol
  3. GND pin
  4. Vin pin
Qus. 25 : What is the purpose of the analogWrite() function in Arduino?

  1. To read analog signals
  2. To output digital signals
  3. To output PWM signals
  4. To write digital HIGH/LOW values
Qus. 26 : Which of the following sensors can detect motion in Arduino-based IoT projects?

  1. MQ-135 gas sensor
  2. PIR sensor
  3. DHT22
  4. BMP280
Qus. 27 : What is the maximum current an Arduino Uno can supply from a digital pin?

  1. 10mA
  2. 20mA
  3. 40mA
  4. 100mA
Qus. 28 : Which type of sensor is used to measure light intensity in IoT projects?

  1. BMP180
  2. LDR
  3. MPU6050
  4. DS18B20
Qus. 29 : What is the role of the Serial.begin() function in an Arduino sketch?

  1. To start the Serial Monitor
  2. To set up serial communication and baud rate
  3. To write data to the Serial Monitor
  4. To end the serial communication
Qus. 30 : What is the role of the DHT22 sensor in IoT projects?

  1. Measure light intensity
  2. Detect motion
  3. Measure temperature and humidity
  4. Monitor air pressure
Qus. 31 : Which command is used to create a delay of 1 second in an Arduino program?

  1. delay(1);
  2. delay(100);
  3. delay(1000);
  4. delay(60);
Qus. 32 : Which pin on the Arduino Uno is used to reset the board manually?

  1. A0
  2. GND
  3. RST
  4. Vin
Qus. 33 : How many GPIO (General Purpose Input/Output) pins are available on an Arduino Uno?

  1. 14
  2. 16
  3. 20
  4. 32
Qus. 34 : What does the term "baud rate" refer to in serial communication?

  1. The frequency of data transmission in kilobytes
  2. The number of bits transmitted per second
  3. The power consumption of the device
  4. The range of the communication
Qus. 35 : Which sensor is best suited for monitoring air quality in Arduino IoT projects?

  1. MQ-135
  2. BMP280
  3. DS18B20
  4. PIR sensor
Qus. 36 : What is the purpose of the tone() function in Arduino?

  1. To generate a PWM signal
  2. To produce a sound on a buzzer with a specific frequency
  3. To control the brightness of an LED
  4. To read analog values
Qus. 37 : What is the correct syntax for using the tone() function?

  1. tone(pin, frequency, duration)
  2. tone(pin, duration, frequency)
  3. tone(frequency, pin, duration)
  4. tone(pin)
Qus. 38 : What is the typical range of frequencies that can be produced by the tone() function?

  1. 1 Hz to 1 kHz
  2. 31 Hz to 65535 Hz
  3. 100 Hz to 10 kHz
  4. 500 Hz to 1 MHz
Qus. 39 : Which Arduino library is typically used to control a servo motor?

  1. Servo.h
  2. Motor.h
  3. Wire.h
  4. LCD.h
Qus. 40 : What is the typical range of angles for controlling a servo motor using Arduino?

  1. 0 to 90 degrees
  2. 0 to 180 degrees
  3. 0 to 360 degrees
  4. -90 to 90 degrees
Qus. 41 : Which function is used to set the position of a servo motor?

  1. servo.attach()
  2. servo.write()
  3. servo.move()
  4. servo.setPosition()
Qus. 42 : Which library is commonly used to control a 16x2 LCD with Arduino?

  1. LiquidCrystal.h
  2. LCDDriver.h
  3. Wire.h
  4. Display.h
Qus. 43 : What is the role of the lcd.begin() function in an Arduino program?

  1. It initializes the LCD with the number of columns and rows.
  2. It prints a message to the LCD.
  3. It clears the LCD display.
  4. It changes the LCD backlight.
Qus. 44 : How can you display text on the first row of a 16x2 LCD?

  1. Use lcd.setCursor(0, 0) and lcd.print("Text").
  2. Use lcd.begin(0, 0) and lcd.display("Text").
  3. Use lcd.print(0, "Text")
  4. Use lcd.text("Text", 0)

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


Arduino program to interface LEDs at pins 10,11,12,13 and button at pins 7. The press of button changes the pattern of LED glow. (considering four patterns of LED glow)

View Solution


Arduino program to Increment and Decrement led light using 2 push button

View Solution


Arduino program representing smart street light concept

View Solution


Arduino program to interface DC Motor with potentiometer

View Solution


Arduino program to interface a servo motor and a button at pin 7

View Solution


Write a program to interface a gas sensor (MQ-2) and a buzzer.

View Solution


Write a program to interface a PIR motion sensor and an LED with the Arduino. The LED should turn on for 5 seconds whenever motion is detected.

View Solution


Write a program to implement a while loop that counts from 0 to 10 and displays each count on the Serial Monitor.

View Solution


Write a program to interface a button and an RGB LED with the Arduino. On each button press, the RGB LED should change its color in the sequence: Red, Green, Blue.

View Solution


Arduino program to read data from sensor and send it to a requesting client.

View Solution


Arduino program using any one development board (E.g., Arduino or Raspberry Pi) to read data from a sensor

View Solution


Write a program to print “Hello World!” to the LCD (Liquid Crystal Display) and shows the time in seconds since the Arduino was reset.

View Solution


Write a program to display button press count on an LCD.

View Solution


Write a program for detection of the light using photo resistor with output as light detected and LED state.

View Solution


Latest Current Affairs 2026 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