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

Embedded Systems

The document contains multiple choice questions (MCQs) about Arduino concepts including components, functions, boards and sensors. Common questions are about the Arduino platform, programming language, libraries, pins, functions like setup(), loop(), analogRead() and more.

Uploaded by

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

Embedded Systems

The document contains multiple choice questions (MCQs) about Arduino concepts including components, functions, boards and sensors. Common questions are about the Arduino platform, programming language, libraries, pins, functions like setup(), loop(), analogRead() and more.

Uploaded by

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

MCQ 1

What is Arduino?
A) A programming language
B) A microcontroller platform
C) An operating system
D) A type of sensor

Answer: B) A microcontroller platform

Which programming language is commonly used with Arduino?


A) Python
B) C++
C) Java
D) JavaScript

Answer: B) C++

What is the purpose of the setup() function in Arduino?


A) To declare global variables
B) To initialize libraries
C) To define the main program loop
D) To clean up resources after program execution

Answer: B) To initialize libraries

Which component is often used to control the brightness of an LED in Arduino


projects?
A) Transistor
B) Resistor
C) Capacitor
D) Diode

Answer: B) Resistor

How is data sent from the Arduino to a computer for monitoring or logging?
A) Through Bluetooth
B) Using USB serial communication
C) Through Wi-Fi
D) Using infrared communication

Answer: B) Using USB serial communication


Which function is used to read digital input in Arduino?
A) analogRead()
B) digitalRead()
C) analogWrite()
D) digitalWrite()

Answer: B) digitalRead()

What is the maximum voltage that can be safely applied to an Arduino digital pin?
A) 3.3V
B) 5V
C) 9V
D) 12V

Answer: B) 5V

Which Arduino board is commonly used for beginners due to its simplicity and low
cost?
A) Arduino Mega
B) Arduino Uno
C) Arduino Due
D) Arduino Nano

Answer: B) Arduino Uno

Which Arduino board has built-in Wi-Fi capabilities?


A) Arduino Uno
B) Arduino Mega
C) Arduino Nano
D) Arduino MKR1000

Answer: D) Arduino MKR1000

What is the function of the loop() function in Arduino?


A) It defines initial setup configurations
B) It reads digital inputs
C) It defines the main program loop
D) It sends data to the serial monitor

Answer: C) It defines the main program loop

MCQs 2

What is the maximum current that can be sourced or sunk by a single digital pin on
an Arduino Uno?
A) 20 mA
B) 40 mA
C) 100 mA
D) 200 mA
Answer: B) 40 mA

Which of the following is NOT a type of memory on an Arduino board?


A) RAM
B) EEPROM
C) ROM
D) SRAM
Answer: C) ROM

What is the purpose of the millis() function in Arduino programming?


A) To measure the duration since the Arduino was last powered on
B) To generate random numbers
C) To delay program execution for a specific period
D) To calculate the frequency of a signal
Answer: A) To measure the duration since the Arduino was last powered on

Which Arduino board is based on the ATmega2560 microcontroller?


A) Arduino Uno
B) Arduino Nano
C) Arduino Mega
D) Arduino Leonardo
Answer: C) Arduino Mega

In Arduino programming, what does the function pinMode() do?


A) Sets the pin mode to either input or output
B) Reads the value of a digital pin
C) Sets the analog reference voltage
D) Initializes the serial communication
Answer: A) Sets the pin mode to either input or output

Which communication protocol is commonly used to connect sensors and other


devices to an Arduino?
A) SPI (Serial Peripheral Interface)
B) UART (Universal Asynchronous Receiver/Transmitter)
C) I2C (Inter-Integrated Circuit)
D) LIN (Local Interconnect Network)
Answer: C) I2C (Inter-Integrated Circuit)

What is the function of the analogWrite() function in Arduino?


A) Reads analog input from a sensor
B) Writes a digital value to a PWM (Pulse Width Modulation) pin
C) Sends analog data over serial communication
D) Initializes the analog-to-digital converter (ADC)
Answer: B) Writes a digital value to a PWM (Pulse Width Modulation) pin

Which of the following statements about the Arduino IDE (Integrated Development
Environment) is true?
A) It only supports programming in C language.
B) It cannot be used for debugging Arduino programs.
C) It provides a text editor for writing code and a compiler to translate it into machine
language.
D) It is not open-source software.
Answer: C) It provides a text editor for writing code and a compiler to translate it into
machine language.

Which Arduino board has the most analog input pins?


A) Arduino Uno
B) Arduino Nano
C) Arduino Mega
D) Arduino Due
Answer: C) Arduino Mega

What is the function of the attachInterrupt() function in Arduino?


A) It attaches a function to a timer interrupt.
B) It configures an external interrupt to trigger a function.
C) It enables interrupts globally.
D) It detaches an interrupt service routine (ISR).
Answer: B) It configures an external interrupt to trigger a function.

MCQs 3

Which sensor is commonly used to detect motion in security systems and automatic
lighting?
A) Ultrasonic sensor
B) LDR sensor
C) PIR sensor
D) IR sensor
Answer: C) PIR sensor

An LDR (Light Dependent Resistor) sensor exhibits low resistance when:


A) Exposed to light
B) In complete darkness
C) Subjected to high temperatures
D) Subjected to high humidity
Answer: A) Exposed to light

Infrared (IR) sensors are often used for:


A) Measuring distance
B) Detecting temperature
C) Detecting obstacles
D) Sensing light intensity
Answer: C) Detecting obstacles

What is the typical function of an ultrasonic sensor in Arduino projects?


A) Detecting light intensity
B) Measuring temperature
C) Sensing distance
D) Detecting motion
Answer: C) Sensing distance

Which of the following is NOT a common application of a servo motor?


A) Controlling the movement of robotic arms
B) Steering mechanisms in remote-controlled vehicles
C) Continuous rotation for propulsion
D) Precise positioning in radio-controlled aircraft
Answer: C) Continuous rotation for propulsion

The speed of a DC motor can be controlled using:


A) PWM (Pulse Width Modulation)
B) ADC (Analog-to-Digital Conversion)
C) UART (Universal Asynchronous Receiver/Transmitter)
D) I2C (Inter-Integrated Circuit)
Answer: A) PWM (Pulse Width Modulation)

Which component is commonly used to drive a DC motor bidirectionally using


Arduino?
A) H-Bridge
B) Voltage regulator
C) Darlington transistor array
D) Optocoupler
Answer: A) H-Bridge

What does the L293D driver IC do in a motor control circuit?


A) Generates PWM signals
B) Converts analog signals to digital
C) Amplifies motor current
D) Provides bidirectional control of DC motors
Answer: D) Provides bidirectional control of DC motors

Which of the following is a characteristic feature of a stepper motor?


A) High speed
B) Continuous rotation
C) Precise control over rotation angle
D) Low torque
Answer: C) Precise control over rotation angle

When using an ultrasonic sensor to measure distance, what does the Arduino
calculate based on the sensor's output?
A) Temperature
B) Humidity
C) Speed of sound
D) Distance to the nearest obstacle
Answer: D) Distance to the nearest obstacle

MCQs 4

What is the purpose of the analogRead() function in Arduino programming?


A) To read digital input from a sensor.
B) To write analog output to a pin.
C) To read analog input from a sensor.
D) To set the mode of a pin to input or output.

Answer: C) To read analog input from a sensor.

Which Arduino board is commonly used for projects requiring a large number of
digital and analog pins?

A) Arduino Uno
B) Arduino Nano
C) Arduino Mega
D) Arduino Pro Mini

Answer: C) Arduino Mega

What is the maximum voltage that can be safely applied to an Arduino Uno digital
pin?
A) 3.3V
B) 5V
C) 9V
D) 12V

Answer: B) 5V

Which of the following is NOT a valid data type in Arduino programming?


A) float
B) boolean
C) string
D) char

Answer: C) string

What does the digitalWrite() function do in Arduino programming?


A) Reads digital input from a pin.
B) Writes analog output to a pin.
C) Reads analog input from a pin.
D) Sets the digital output value of a pin.
Answer: D) Sets the digital output value of a pin.

Which Arduino board is based on the ATmega32U4 microcontroller?


A) Arduino Uno
B) Arduino Nano
C) Arduino Leonardo
D) Arduino Mega

Answer: C) Arduino Leonardo

What is the function of the map() function in Arduino programming?


A) To create arrays.
B) To calculate the square root of a number.
C) To map a value from one range to another.
D) To generate random numbers.

Answer: C) To map a value from one range to another.

Which component is used to regulate the voltage supplied to the Arduino board?
A) Transistor
B) Capacitor
C) Diode
D) Voltage regulator

Answer: D) Voltage regulator

Which Arduino board is designed for wearable projects and small form factor
applications?
A) Arduino Uno
B) Arduino Nano
C) Arduino Mega
D) Arduino Due

Answer: B) Arduino Nano

What is the primary function of the setup() function in Arduino programming?


A) To declare global variables.
B) To define the main program loop.
C) To initialise libraries and set pin modes.
D) To perform cleanup tasks before the program exits.
Answer: C) To initialize libraries and set pin modes

You might also like