Unit 6: Intelligent Systems - Practice Quiz

ECE120 — Basic Electronics Engineering Workshop 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the Arduino Uno?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. A wireless router
B. A microcontroller development board
C. A digital storage device
D. A type of battery charger

2 Which microcontroller is used on the Arduino Uno board?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. PIC16F877A
B. ESP8266
C. ATmega2560
D. ATmega328P

3 What does IR stand for in an IR sensor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Input Relay
B. Infrared Radiation
C. Integrated Register
D. Internal Resistance

4 What is the main purpose of an IR sensor in a detection system?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. To regulate voltage
B. To detect nearby objects
C. To store the program
D. To produce sound

5 Which Arduino Uno pin is commonly used to provide ground?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. VIN pin
B. GND pin
C. AREF pin
D. RESET pin

6 Which Arduino function runs once when the board starts?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. begin()
B. start()
C. loop()
D. setup()

7 Which Arduino function repeats continuously after setup()?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. cycle()
B. loop()
C. runOnce()
D. repeat()

8 Which function configures an Arduino pin as an input or output?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. digitalWrite()
B. pinMode()
C. digitalRead()
D. analogRead()

9 Which function reads a digital signal from an IR sensor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. pinMode()
B. analogWrite()
C. digitalWrite()
D. digitalRead()

10 Which function sends a HIGH or LOW signal to a digital output pin?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. pinMode()
B. digitalRead()
C. analogRead()
D. digitalWrite()

11 What type of signal does a digital IR sensor module commonly provide?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. HIGH or LOW
B. Text or image data
C. Audio or video
D. Positive or negative voltage only

12 Which component on many IR sensor modules emits infrared light?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Buzzer
B. IR LED
C. Phototransistor
D. Voltage regulator

13 Which component receives reflected infrared light?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Crystal oscillator
B. Relay coil
C. Push button
D. Photodiode

14 What is the purpose of the potentiometer on many IR sensor modules?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. To connect the USB cable
B. To store sensor readings
C. To increase program memory
D. To adjust detection sensitivity

15 Which Arduino Uno pin group is intended for digital input and output?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Analog reference pins
B. Power pins
C. Digital pins
D. USB shield pins

16 What is the usual logic value of a HIGH digital signal?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. A stored program
B. Logic 1
C. No connection
D. Logic 0

17 Which software is commonly used to write and upload programs to an Arduino Uno?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Arduino IDE
B. Image viewer
C. Spreadsheet editor
D. Web browser

18 What is an Arduino program commonly called?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. A sketch
B. A terminal
C. A register
D. A waveform

19 Why is a common ground needed between the Arduino and IR sensor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. To erase the Arduino program
B. To increase infrared brightness
C. To replace the power supply
D. To provide a shared reference

20 What can an Arduino do when an object is detected by an IR sensor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Easy
A. Change its processor
B. Turn on an LED
C. Recharge the sensor battery
D. Increase the object size

21 An IR sensor module gives a LOW output when an object is detected. Which Arduino Uno code correctly turns on an LED connected to pin 13 when the object is present?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. if (digitalRead(sensorPin) == LOW) digitalWrite(13, HIGH);
B. if (digitalWrite(sensorPin, LOW)) digitalRead(13, HIGH);
C. if (digitalRead(sensorPin) == HIGH) digitalWrite(13, HIGH);
D. if (analogRead(sensorPin) == LOW) digitalWrite(13, HIGH);

22 Why is a common ground connection required between an Arduino Uno and an IR sensor module?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. It converts the sensor output into analog voltage
B. It prevents the Arduino from requiring a power supply
C. It provides a shared voltage reference for signals
D. It increases the sensor's infrared wavelength

23 An IR obstacle sensor is connected to digital pin 7, and its output is active HIGH. Which initialization is appropriate?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. pinMode(7, OUTPUT);
B. analogWrite(7, INPUT);
C. digitalWrite(7, INPUT);
D. pinMode(7, INPUT);

24 The detection range of an IR module changes when its onboard potentiometer is adjusted. What does this potentiometer usually control?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. The infrared LED color
B. The serial communication speed
C. The Arduino clock frequency
D. The comparator's detection threshold

25 An LED is connected directly between an Arduino output pin and ground. Why should a series resistor be included?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. To increase the Arduino supply voltage
B. To convert digital output into serial data
C. To reverse the LED's polarity
D. To limit current through the LED

26 An IR sensor output repeatedly changes between HIGH and LOW when an object is stationary near the detection boundary. Which software method is most suitable for reducing false switching?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Increase the serial monitor baud rate
B. Require a stable state for several readings
C. Set every unused pin to analog input
D. Change the LED resistor to a larger value

27 Which statement best describes the role of the IR receiver in a typical reflective obstacle sensor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. It detects reflected infrared radiation
B. It stores the detected object's distance
C. It generates the Arduino program clock
D. It regulates current to the indicator LED

28 A sensor module operates at 5 V, while its output is connected to Arduino Uno digital pin 8. Which connection is correct?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. VCC to pin 8, GND to 5 V, OUT to GND
B. VCC to Vin, GND to pin 8, OUT to the USB shield
C. VCC to GND, GND to 5 V, OUT to pin 8
D. VCC to 5 V, GND to GND, OUT to pin 8

29 What is the main purpose of using Serial.begin(9600) in an IR detection project?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. To provide regulated power to the sensor module
B. To set the IR transmitter's emission frequency
C. To configure communication with the Serial Monitor
D. To select the sensor's physical detection range

30 A detection system should keep an alarm active while an object remains in front of the sensor. Which control structure is most appropriate?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Use delay without reading the sensor again
B. Use a one-time statement in setup only
C. Use analogWrite without checking the sensor
D. Use an if-else statement based on sensor state

31 Why can a black object be detected less reliably by a reflective IR sensor than a white object?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Black objects disable the Arduino input circuit
B. Black surfaces generally reflect less infrared light
C. Black objects emit visible light instead of infrared light
D. Black surfaces always produce a higher supply voltage

32 An IR sensor is connected to pin 2, and an indicator LED is connected to pin 9. Which pair of declarations matches this arrangement?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. const int sensorPin = 9; const int ledPin = 2;
B. const int sensorPin = 2; const int ledPin = 9;
C. const int sensorPin = 0; const int ledPin = 1;
D. const int sensorPin = A2; const int ledPin = A9;

33 What is the likely result if an IR sensor's OUT terminal is accidentally connected to an Arduino output pin configured as OUTPUT?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. The IR receiver stops needing a common ground
B. The sensor and Arduino outputs may conflict
C. The Arduino increases the sensor detection range
D. The sensor automatically becomes an analog input

34 An IR sensor indicates detection with LOW, but the program activates the alarm with HIGH. Which change fixes the logical error?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Increase the delay time without changing the condition
B. Invert the condition used to test the sensor
C. Move the sensor wire to the USB connector
D. Replace digitalRead with analogWrite

35 Why should an IR sensor and its target generally be kept aligned during testing?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Alignment changes the USB communication protocol
B. Alignment determines the Arduino's program memory size
C. Alignment affects the amount of reflected IR received
D. Alignment controls the resistor tolerance automatically

36 Which sequence represents a suitable Arduino program structure for an IR detection system?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Read sensor once, configure pins, stop execution
B. Control output, erase program, read sensor, repeat
C. Configure pins, read sensor, control output, repeat
D. Start serial output, remove power, configure pins, stop

37 A sensor output is connected to an Arduino input, but the reading changes randomly when the sensor is disconnected. What is the most likely cause?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. The input pin is floating
B. The LED has excessive brightness
C. The USB cable is too short
D. The Arduino has too many comments

38 An Arduino Uno must count an object each time it passes the IR sensor, rather than counting repeatedly while it remains present. What programming technique is needed?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Detect a transition between absent and present states
B. Keep increasing the counter every loop cycle
C. Place the counter declaration inside setup only
D. Use a constant HIGH output for the sensor pin

39 Which change can help prevent an Arduino output pin from being overloaded when driving an external buzzer circuit?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Connect the buzzer directly to the input pin
B. Short the buzzer terminals to the 5 V rail
C. Remove the common ground from the circuit
D. Use a transistor driver and suitable protection

40 An IR detection circuit works indoors but gives false detections under strong sunlight. What is a practical improvement?

Design and implementation of an Arduino Uno and IR sensor-based detection system Medium
A. Replace digitalRead with pinMode
B. Shield the sensor from ambient infrared light
C. Increase the Arduino reset frequency
D. Disconnect the sensor ground during operation

41 An IR obstacle sensor is connected to Arduino Uno digital pin D2 and produces a LOW output when an object is detected. The object remains in front of the sensor for 80 ms, but the detection must be accepted only if the signal is LOW continuously for at least 50 ms. Which implementation best satisfies this requirement without blocking other time-critical tasks?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Count exactly 50 loop iterations after the first LOW reading
B. Use analogRead() and accept when the value exceeds 50
C. Record millis() at the first LOW and accept when LOW persists for 50 ms
D. Use delay(50) after every LOW reading

42 An IR receiver module connected to an Arduino Uno gives an unstable digital output when a motor starts. The sensor and motor use the same 5 V supply. Which hardware change most directly reduces supply-induced false detections?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Add local decoupling near the sensor and separate motor return paths
B. Replace the digital input with an unused PWM output
C. Increase the sensor threshold by changing the Arduino clock speed
D. Connect the sensor ground through the motor winding

43 A reflective IR sensor is calibrated using a white target, but the system later detects a black target at the same distance inconsistently. What is the most appropriate design response?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Use a fixed threshold selected only from the white-target reading
B. Increase the Arduino supply voltage above 5 V
C. Characterize target reflectivity and calibrate the detection threshold accordingly
D. Disable ambient-light compensation to make the output digital

44 A sensor output is connected to Arduino Uno pin D2, and an interrupt is configured for CHANGE. A moving object causes 12 transitions within 3 ms because of surface texture. Which strategy best prevents one object from being counted multiple times?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Replace CHANGE with LOW and keep the same counting logic
B. Use edge qualification and ignore further events during a timed lockout
C. Increment the count on every interrupt transition
D. Disable interrupts permanently after the first transition

45 An Arduino Uno reads an analog IR receiver on A0. With the sensor disconnected, the reading changes randomly between 0 and 1023. Which conclusion is most defensible?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. The ADC is automatically generating a valid distance measurement
B. The floating input is picking up noise and needs a defined electrical state
C. The IR emitter is operating at an excessive duty cycle
D. The Arduino reference voltage has become exactly zero

46 A 5 V IR sensor module has an output that may reach 5 V, while the receiving controller input is a 3.3 V-only device. Which interface is the safest general solution?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Configure the receiving pin as an analog output
B. Use a resistor divider or a proper 5 V-to-3.3 V level shifter
C. Add a capacitor in series and leave the input otherwise unchanged
D. Connect the output directly because logic inputs always tolerate 5 V

47 An Arduino Uno detection system must operate for several hours from a battery. The IR emitter is continuously enabled even when no measurement is being made. Which modification most effectively reduces average sensor power while preserving reliable detection?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Increase serial monitor output frequency
B. Pulse the IR emitter and sample synchronously when detection is needed
C. Set the sensor input pin to OUTPUT-HIGH continuously
D. Increase the ADC resolution by changing analogRead() syntax

48 Two IR detection sensors are installed 8 cm apart, but each emitter spreads radiation widely and both receivers respond to the same object. Which change most directly improves spatial discrimination?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Read both inputs only after calling delay(1000)
B. Increase the baud rate of the serial interface
C. Replace both sensor grounds with separate floating grounds
D. Use optical shielding and narrower emitter-receiver alignment

49 An IR sensor output is active LOW. The Arduino code uses pinMode(sensorPin, INPUT_PULLUP), but the sensor output is a push-pull output that drives HIGH during detection. What is the primary concern?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. The sensor output and pull-up necessarily create a damaging short circuit
B. The software polarity and assumed idle state may be interpreted incorrectly
C. The ADC loses all resolution on digital pins
D. The pull-up changes the Arduino clock frequency

50 A detection routine stores the current sensor state in a variable shared with an interrupt service routine. Which declaration is required when the variable can change asynchronously and is read in the main program?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. static double sensorState
B. volatile bool sensorState
C. register char sensorState
D. const int sensorState

51 An Arduino Uno measures the time between IR sensor edges using micros(). The measurement occasionally becomes incorrect after the timer counter wraps around. Which expression is wraparound-safe for unsigned timestamps now and previous?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. if (now > previous + interval)
B. if (previous - now >= interval)
C. if (now - previous >= interval)
D. if (now + interval > previous)

52 An analog IR sensor produces 2.60 V, and the Arduino Uno uses its default 5.00 V analog reference. What ADC value is theoretically expected for the 10-bit converter?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. About 858
B. About 133
C. About 512
D. About 532

53 A sensor's analog output has a source impedance of 200 k. Consecutive Arduino Uno ADC readings differ significantly, especially after switching from another channel. What is the best firmware-level correction?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Take one reading only and increase the serial baud rate
B. Discard the first conversion after channel selection and allow settling
C. Drive the analog pin HIGH before every conversion
D. Set all unused digital pins to INPUT without pull-ups

54 A binary IR sensor signal contains short noise pulses. The system must detect a genuine object only when at least 4 of the latest 5 samples are active. Which method implements this rule most directly?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Use a running five-sample window and count active samples
B. Average the samples as floating-point voltages only
C. Trigger whenever any two nonconsecutive samples are active
D. Accept the first active sample and reset the processor

55 An IR sensor is connected to an Arduino Uno input located near a PWM motor-control wire. The detection fails only when the motor duty cycle changes rapidly. Which investigation should be performed first?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Replace digitalRead() with Serial.read()
B. Change the C++ variable names to shorter identifiers
C. Increase the number of LCD characters displayed
D. Check signal integrity, grounding, decoupling, and wire routing

56 A sensor output is normally HIGH, but it becomes disconnected intermittently. The Arduino input then registers random transitions. Which configuration is most appropriate if the sensor interface is an open-collector output that asserts LOW?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Use a floating INPUT and average digital readings
B. Use INPUT_PULLUP and treat LOW as the active state
C. Use INPUT_PULLDOWN and treat HIGH as the active state
D. Use OUTPUT_LOW and read the same pin

57 An Arduino Uno drives an IR LED directly from a digital pin through a 100 resistor from a 5 V supply. The LED forward voltage is 1.2 V. Ignoring pin limits, the nominal current is approximately what value?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. 12 mA
B. 24 mA
C. 50 mA
D. 38 mA

58 A reflective IR detector must distinguish sunlight from a nearby modulated IR emitter. Which receiver strategy gives the strongest rejection of steady ambient illumination?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Increase the receiver gain until the ADC saturates
B. Use a longer cable with no reference conductor
C. Measure only the total unmodulated photodiode current
D. Modulate the emitter and synchronously detect its modulation

59 A detection output drives a relay module from Arduino Uno pin D8. The relay resets the Arduino when energized. Which correction is most appropriate for a bare relay coil driven by a transistor?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. Place a flyback diode across the coil and provide adequate supply decoupling
B. Remove the transistor so the pin absorbs the inductive transient
C. Use a capacitor across the sensor output instead of coil suppression
D. Connect the diode in series with the Arduino input pin

60 A sensor is sampled every 10 ms, and a detection requires 5 consecutive active samples. An object enters the sensing region immediately after a sample. What is the worst-case confirmation latency, excluding sensor response time?

Design and implementation of an Arduino Uno and IR sensor-based detection system Hard
A. 40 ms
B. 60 ms
C. 10 ms
D. 50 ms