0% found this document useful (0 votes)
10 views9 pages

Q-B

Uploaded by

m18961282
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views9 pages

Q-B

Uploaded by

m18961282
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

UNIT 1

1. Which microcontroller is used in the Arduino Uno?


o A) ATmega328P
o B) ATmega32U4
o C) ATmega2560
o D) ESP8266
Answer: A) ATmega328P
2. What is the clock speed of the Arduino Uno board?
o A) 16 MHz
o B) 8 MHz
o C) 20 MHz
o D) 12 MHz
Answer: A) 16 MHz
3. Which Arduino board has a built-in USB communication module?
o A) Arduino Uno
o B) Arduino Mega 2560
o C) Arduino Leonardo
o D) Arduino Ethernet
Answer: C) Arduino Leonardo
4. How many digital I/O pins are available on the Arduino Mega 2560?
o A) 14
o B) 54
o C) 16
o D) 20
Answer: B) 54
5. Which shield provides support for connecting an Arduino board to a Wi-Fi
network?
o A) GSM Shield
o B) Motor Shield
o C) Ethernet Shield
o D) Wi-Fi Shield
Answer: D) Wi-Fi Shield
6. The Arduino Ethernet Shield uses which communication protocol for
networking?
o A) HTTP
o B) UDP
o C) SPI
o D) TCP/IP
Answer: D) TCP/IP
7. Which feature is unique to the Arduino Leonardo compared to the Uno?
o A) More analog pins
o B) Built-in USB communication
o C) Higher clock speed
o D) Larger EEPROM
Answer: B) Built-in USB communication
8. What is the primary use of the Motor Shield for Arduino?
o A) Wireless communication
o B) Drive DC motors and stepper motors
o C) Read from SD cards
o D) Connect to GSM networks
Answer: B) Drive DC motors and stepper motors
9. Which Arduino shield allows you to send SMS and access GPRS networks?
o A) Wi-Fi Shield
o B) GSM Shield
o C) Motor Shield
o D) SD Shield
Answer: B) GSM Shield
10. What is the purpose of the Wireless SD Shield in Arduino projects?
• A) Store data on an SD card
• B) Provide wireless communication and SD card storage
• C) Control motors
D) Provide Ethernet connectivity
Answer: B) Provide wireless communication and SD card storage
11. How many analog input pins are in Arduino Uno?
A) 6
B) 14
C) 5
D) 8
Answer: A) 6
12. Which of the following pins are used for TWI communication in Arduino
Leonardo?
A) 5 (SDA) and 6 (SCL)
B) 2 (SDA) and 3 (SCL)
C) 0 (SDA) and 1 (SCL)
D) 3 (SDA) and 2 (SCL)
Answer: B) 2 (SDA) and 3 (SCL)
13. Which of the following is an important feature of the Arduino Ethernet?
A) on-board micro-SD card reader
B) Atmega32u4 AVR microcontroller
C) It has an on-board USB-to-serial driver chip
D) It has a total of 54 digital I/O pins
Answer: A) on-board micro-SD card reader

Two-Mark Questions
1. What are the key features of the Arduino Uno?
2. How does the Arduino Leonardo differ from the Uno in terms of USB
communication?
3. Describe the key features of the Arduino Mega 2560.
4. What is the primary function of the Motor Shield in Arduino projects?
5. Explain the use of the Ethernet Shield for Arduino.
6. What does the GSM Shield allow an Arduino board to do?
7. What are the key features of the Arduino Wi-Fi Shield?
8. What is the role of the Wireless SD Shield?
9. What programming languages are supported by the Arduino IDE?
10. Describe the steps involved in uploading a program to an Arduino board using
the IDE.
11. Compare Arduino Mega 2560 and Arduino Ethernet.
12. What are the on-board indicators available in GSM shield?
Questions
1. Compare and contrast the Arduino Uno and Arduino Mega 2560 in terms of
features, pin configuration, and applications.
2. Explain the architecture and key features of the Arduino Leonardo and
describe a scenario where its unique features are beneficial.
3. Explain the functionality of the Arduino IDE and its role in embedded systems
programming.
UNIT 2

1. Which of the following is a correct declaration of a variable in Arduino?


o A) int number = "10";
o B) float number = 10.5;
o C) boolean value = 5;
o D) char letter = 3.14;
Answer: B) float number = 10.5;
2. Which control structure is used to repeat a block of code a specific number of
times?
o A) if
o B) while
o C) for
o D) switch
Answer: C) for
3. What is the default return type of the millis() function in Arduino?
o A) float
o B) long
o C) unsigned long
o D) int
Answer: C) unsigned long
4. Which function in Arduino is used to read the voltage level on a pin?
o A) analogWrite()
o B) digitalRead()
o C) analogRead()
o D) pinMode()
Answer: C) analogRead()
5. What is the purpose of the attachInterrupt() function in Arduino?
o A) To define a variable
o B) To handle interrupts
o C) To send data to the serial monitor
o D) To delay code execution
Answer: B) To handle interrupts
6. Which constant is used to represent a high logic level in Arduino?
o A) LOW
o B) ON
o C) 1
o D) HIGH
Answer: D) HIGH
7. In Arduino, which data type is used to store boolean values?
o A) int
o B) float
o C) boolean
o D) char
Answer: C) boolean
8. Which function would you use to generate a delay of 1 second in Arduino?
o A) millis(1000);
o B) delay(1000);
o C) wait(1000);
o D) hold(1000);
Answer: B) delay(1000);
9. Which of the following libraries is used for controlling servos in Arduino?
o A) Servo.h
o B) Wire.h
o C) SPI.h
o D) Math.h
Answer: A) Servo.h
10. In Arduino, what does const int LED_PIN = 13; declare?
• A) A mutable integer variable
• B) A constant integer variable
• C) A float variable
• D) A pin mode
Answer: B) A constant integer variable
11. Which of the following is one of the control structures used in Arduino IDE?
A) switch case
B) min()
C) delay()
D) sin()
Answer: A) switch case
12. _______ instruction is used to read the status of the digital pins.
A) digitalRead()
B) digitalWrite()
C) analogRead()
D) analogWrite()
Answer: A) digitalRead()
13. _______ is used to tell the microcontroller to wait for a specified number of
milliseconds before resuming the sketch in Arduino IDE.
A) delay()
B) delayMicroseconds()
C) millis()
D) micros()
Answer: C) millis()
14. What is the content of the variable ‘result’ after executing the following
Arduino IDE code?

int sensor_data = 100;


result = min(sensor_data, 25);
A) 100
B) 25
C) 75
D) 125
Answer: B) 25
Two-Mark Questions
1. Write an Arduino IDE code to read the status of the analog pins of Arduino
Uno.
2. How ‘while’ control structures are used in Arduino IDE?
3. Give any example of time functions available in Arduino IDE.
4. List any four data types available in Arduino IDE.
5. What are variables and why are they important in Arduino programming?
6. Explain the difference between int and float data types in Arduino.
7. How do if and else statements work in Arduino control structures?
8. What is the purpose of the pinMode() function in Arduino?
9. What are time functions in Arduino, and give an example?
10. What is a constant in Arduino programming, and why is it useful?
11. Explain the concept of interrupts in Arduino.
12. What is the purpose of the Serial.begin() function in Arduino?
13. Give an example of a mathematical function in Arduino and its usage.
14. What is the role of the Arduino IDE in programming?

Questions
1. Explain the different data types in Arduino and provide examples of how each
type is used in programming.
2. Explain how to use Arduino libraries. Provide an example of using the Servo.h
library to control a servo motor.
3. Explain the mathematical functions available in Arduino IDE with suitable
examples.
4. Explain the functions of control structures available in Arduino IDE with
suitable examples.
UNIT 3

1. Which type of sensor is commonly used to measure humidity in the


environment?
o A) PIR sensor
o B) Ultrasonic sensor
o C) DHT11
o D) Flame sensor
Answer: C) DHT11
2. What is the function of the LM35 sensor?
o A) Measure light intensity
o B) Measure water levels
o C) Measure temperature
o D) Measure sound
Answer: C) Measure temperature
3. Which sensor is most commonly used to detect human presence?
o A) PIR sensor
o B) Ultrasonic sensor
o C) Humidity sensor
o D) Temperature sensor
Answer: A) PIR sensor
4. Which Arduino function is typically used to read data from an analog sensor,
such as a temperature sensor?
o A) analogWrite()
o B) digitalRead()
o C) analogRead()
o D) digitalWrite()
Answer: C) analogRead()
5. Which of the following sensors is used to detect the distance between an
object and the sensor?
o A) DHT11
o B) PIR sensor
o C) Ultrasonic sensor
o D) Water detector
Answer: C) Ultrasonic sensor
6. What does a water sensor typically measure?
o A) The level of water in a tank
o B) The pH level of water
o C) The moisture content in the air
o D) The purity of water
Answer: A) The level of water in a tank
7. What does the acronym PIR stand for in the context of sensors?
o A) Passive Infrared
o B) Position Infrared
o C) Power Infrared
o D) Photo Infrared
Answer: A) Passive Infrared
8. How does an ultrasonic sensor typically measure distance?
o A) By measuring the reflection of sound waves
o B) By detecting changes in humidity
o C) By measuring light intensity
o D) By detecting motion
Answer: A) By measuring the reflection of sound waves
9. Which sensor would be most useful in detecting leaks or floods in a
basement?
o A) Humidity sensor
o B) Water sensor
o C) Temperature sensor
o D) Ultrasonic sensor
Answer: B) Water sensor
10. In the DHT11 sensor, which two parameters are measured?
• A) Temperature and light
• B) Humidity and temperature
• C) Pressure and temperature
• D) Water level and humidity
Answer: B) Humidity and temperature
11. If the object is 20cm away from the ultrasonic sensor and the speed of the
sound is 340m/s, then the time taken by the sound waves to travel is ______ .
A) 548 microseconds
B) 588 microseconds
C) 528 microseconds
D) 518 microseconds
Answer: B) 588 microseconds
12. Which sensor is used to measure the water level, monitor a sump pit, detect
rainfall or detect leakage?
A) water sensor
B) temperature sensor
C) ultrasonic sensor
D) PIR sensor
Answer: C) ultrasonic sensor

Two-Mark Questions
1. What is the working principle of a PIR sensor?
2. Draw the pinout diagram of water sensor.
3. How does an ultrasonic sensor measure the distance between itself and an
object?
4. What is the typical range of humidity a DHT11 sensor can measure?
5. What is the difference between DHT11 and DHT22 sensors?
6. Explain the role of a water level sensor in a smart irrigation system.
7. What is the typical temperature range for the LM35 sensor?
8. What are the applications of ultrasonic sensors in real-world systems?
9. How do water detectors help in preventing damage in homes?
10. What is the role of temperature sensors in HVAC systems?
11. Describe a use case for a PIR sensor in home security systems.
Questions
1. Discuss the role of water sensors in smart home systems. Provide a detailed
example of a smart water detection system with Arduino and explain its
operation.
2. Compare the functionality of humidity sensors and temperature sensors in
climate control systems. Explain how both sensors work together in an
Arduino-based project for smart air conditioning.
3. Write an Arduino IDE code to measure and display the room temperature in
serial monitor.
4. Write an Arduino IDE code to measure and display the distance to an object
in serial monitor

You might also like