NEW
Font size
WorksheetsMidterm Exam-PEMBEDS
Total questions: 35
Worksheet time: 1hrs 8mins
A manufacturing plant wants to install a system to automatically reject defective products on a conveyor belt to increase productivity. Which importance of embedded systems does this scenario best illustrate?
Everyday Convenience
Efficiency and Optimization
Compact Design
Consumer Electronics
An engineering student is designing a wearable fitness tracker that needs to run on a small battery for a long time. Which characteristic of embedded systems is most relevant to her design?
High power consumption
Compact and Power-efficient
General-purpose computing
High voltage requirement
You are analyzing a simple circuit with a 5V power source and a current of 0.02A flowing through it. According to Ohm’s Law, what is the total resistance in the circuit?
100 OHMS
10 OHMS
0.1 OHMS
250 OHMS
A hobbyist finds a resistor with the color bands Yellow, Blue, Orange, Silver. What is the resistance value and tolerance?
46 k OHMS +/- 5%
460 OHMS +/-10%
46 k OHMS +/- 10%
4.6 k OHMS +/- 5%
In a circuit design, you need to allow current to flow to a motor in only one direction to prevent damage from back voltage. Which component should you use?
Resistor
Capacitor
Diode
Crystal Oscillator
A student connects three resistors with values 1k OHMS, 5k OHMS, and 9k OHMS in a series configuration. What is the total resistance?
15 k OHMS
5 k OHMS
0.8 k OHMS
45 k OHMS
A car's airbag system deploys immediately upon impact. This critical timing highlights which embedded system application?
Home Automation
Telecommunications
Data Logging
Real-time Control
A car's airbag system deploys immediately upon impact. This critical timing highlights which embedded system application?
Home Automation
Real-time Control
Telecommunications
Data Logging
You need to power your Arduino Uno board directly from a wall outlet adapter rather than a computer USB. Which port on the board should you use?
USB Port
Barrel Jack
Analog Pins
ICSP Header
A student is connecting an LED to a breadboard. They place the longer leg of the LED into row 15 and the shorter leg into row 16. Then, they connect a jumper wire from row 15 to the Arduino's GND pin and a wire from row 16 to digital Pin 13. When they run the standard blink code, the LED does not light up. What is the most likely cause?
The LED is burned out.
The resistor is missing.
The LED polarity is reversed (Anode connected to GND).
The breadboard is faulty.
You are connecting a sensor that specifically requires 3.3 volts to operate. Which pin on the Arduino Uno provides this specific voltage?
5V
Vin
3.3 V
IOREF
You want to restart your Arduino program from the beginning without unplugging the power. Which component on the board allows you to do this?
Crystal Oscillator
Voltage Regulator
AREF Pin
Reset Button
A student uses the Wokwi platform for a project. Where is the coding area located on the interface?
On the right side
On the left side
At the bottom
In a pop-up window
You are connecting an LED to an Arduino. To ensure it lights up, you must connect the Anode (longer leg) to:
The Ground (GND) pin
A digital output pin (or resistor connected to it)
The Reset pin
The 3.3V pin only
You are calculating the resistor needed for a Red LED (2V forward voltage) powered by a 5V Arduino pin, aiming for a 20mA (0.02A) current. What is the correct resistor value?
100 OHMS
220 K OHMS
150 OHMS
10 OHMS
You are writing code to make an LED blink. Which function contains the code that runs repeatedly to toggle the LED state?
void setup()
void start()
void loop()
void main()
You are using a Sound Sensor to detect a clap. In your code, you read the digital value. If a loud noise is detected, what value does the sensor output?
0
1
-1
9600
When setting up the Sound Sensor in the void setup() function, how should you configure the pin connected to the sensor?
pinMode(sensor, OUTPUT);
pinMode(sensor, INPUT);
digitalWrite(sensor, HIGH
analogWrite(sensor, 255);
You are using a DHT11 sensor to monitor a greenhouse. You notice the readings are unstable or crashing the program. You check your loop delay. What is the recommended minimum delay for a DHT11 sensor?
100 milliseconds
500 milliseconds
1000 milliseconds (1 second)
10 microseconds
To use the DHT11 sensor in your Arduino IDE, you navigate to "Manage Libraries". Which library should you search for and install?
Servo
SimpleDHT
LiquidCrystal
WiFi101
You have connected a water sensor to your Arduino. The sensor works by measuring conductivity. Which type of pin on the Arduino should you connect the sensor's signal pin to for reading the water level?
Digital Pin (0 or 1)
Reset Pin
Power Pin (5V)
Analog Input Pin (e.g., A1)
You are working on a circuit prototype that requires a total resistance of 10 k OHMS to protect a specific component. However, your supply kit only contains a pack of 5 k OHMS resistors. Based on the principles of resistor connections, how can you achieve the required 10 k OHMS value using the components you have?
Connect two 5 k OHMS resistors in Parallel.
Use a single 5 k OHMS resistor as it is close enough.
Connect two 5 k OHMS resistors in Series.
Connect three 5 k OHMS resistors in Series.
You are coding a water level monitor. Which command is used to read the value from the water sensor pin?
You are wiring an I2C LCD screen to an Arduino Uno. You need to connect the SDA pin of the LCD. Which Arduino pin should it go to?
A5
A4
Pin 13
GND
Similarly, you are connecting the SCL pin of the I2C LCD. Which Arduino pin is the correct connection?
A5
A4
Pin 2
3.3V
You have uploaded your code to the Arduino, but the text on the I2C LCD is not visible because the screen is dark. Which command is likely missing from your void setup()?
lcd.clear();
lcd.print();
lcd.backlight();
lcd.setCursor(0,0);
You are initializing the LiquidCrystal_I2C object in your code. The parameters are LiquidCrystal_I2C lcd(0x27, 16, 2);. What does the 16 represent?
The I2C address
The number of rows
The refresh rate
The number of characters per line (columns)
Which library must be included in your code to specifically handle the I2C communication protocol for the LCD?
<Servo.h>
<Wire.h>
<SPI.h>
<Ethernet.h>
You want to display "Hello" on the first line and "World" on the second line. Which command moves the cursor to the beginning of the second line?
lcd.setCursor(0, 1);
lcd.setCursor(1, 0);
lcd.begin(0, 1);
lcd.print(\n);
Scenario: In the water sensor project utilizing an LCD, you replaced Serial.println("Low Water Level") with lcd.print("Low Water Level"). What is the primary reason for this change?
To increase the processing speed of the Arduino.
To reduce the power consumption of the sensor.
To display the status visually on the screen instead of the computer monitor.
To allow the sensor to read data faster.
A student is working on a project using an Arduino LCD screen. They notice a pin labeled "VCC" on the back of the LCD module. To ensure the LCD powers on correctly, where should this pin be connected on the Arduino Uno?
To the GND pin
To any Digital Pin (0-13)
To the 5V pin
To the Reset pin
You are designing a security system using a laser and a sensor. You need a component that can detect the laser beam (light). Which type of diode would be most appropriate to use as a light detector in reverse bias, or alternatively, which component is specifically designed to emit light to form the beam?
Zener Diode
Light-Emitting Diode (LED)
Schottky Diode
Rectifier Diode
A programmer wants to use the SimpleDHT library to read data from a temperature sensor. They have already installed the library. What line of code must be added to the very top of their sketch to access the library's functions?
void setup() { SimpleDHT.begin(); }
define SimpleDHT
import SimpleDHT;
#include <SimpleDHT.h>
You are explaining the function of the "GND" pin on an LCD screen to a beginner. Which of the following explanations best describes its role in the circuit?
It provides the positive voltage supply.
It carries the data signals.
It serves as the common return path for electric current.
It synchronizes the data transmission clock.
You are designing a temperature monitoring system using an Arduino Uno and a DHT11 sensor. You want to display the temperature reading on an I2C LCD screen. However, the system is displaying erratic values or error messages. You review your code and see the following loop logic:
void loop() {
int err = SimpleDHTErrSuccess;
if ((err = dht11.read(&temperature, &humidity, NULL)) != SimpleDHTErrSuccess) {
lcd.print("Read Failed");
return;
}
lcd.print((int)temperature);
delay(500);
}
Based on the technical specifications of the DHT11 sensor provided in the documentation, what is the primary cause of the instability in this system?
The SimpleDHTErrSuccess constant is undefined in the library.
The delay(500) is too short because the DHT11 has a sampling rate of 1Hz (1 reading per second).
The I2C address for the LCD is likely incorrect.
The variable err should be a float instead of an int.
