Unit 6: Introduction of Arduino and Sensors - Practice Quiz

PHY175 — Modern Physics And Electronics 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which statement best describes an analog signal?

Analog and digital signals Easy
A. It changes only once per second
B. It has only two fixed levels
C. It varies continuously over a range
D. It always remains at zero

2 A basic digital signal commonly uses which two logic levels?

Analog and digital signals Easy
A. Positive and negative only
B. Slow and fast
C. Warm and cold
D. Low and high

3 Which quantity is most naturally represented by an analog signal?

Analog and digital signals Easy
A. LED state
B. Room temperature
C. Button state
D. Switch position

4 Which device generally produces a digital input when it is simply pressed or released?

Analog and digital signals Easy
A. Light sensor
B. Temperature probe
C. Push button
D. Volume knob

5 Which pins on an Arduino Uno are commonly used to read analog sensor values?

Arduino board (pin configuration and description) Easy
A. Pins A0 to A5
B. Pins 0 to 5
C. Pins GND to VIN
D. Pins 8 to 13

6 What is the purpose of a GND pin on an Arduino board?

Arduino board (pin configuration and description) Easy
A. It stores the program code
B. It measures the supply voltage
C. It generates an analog signal
D. It provides a common ground

7 What is the main function of the microcontroller on an Arduino board?

Arduino board (pin configuration and description) Easy
A. It supplies unlimited current
B. It physically moves the sensors
C. It executes the uploaded program
D. It displays the sensor readings

8 Which Arduino Uno pins can generally be configured as either inputs or outputs?

Arduino board (pin configuration and description) Easy
A. Ground pins
B. Digital pins
C. Reset pins
D. Power pins

9 What does the abbreviation IR stand for?

IR sensor Easy
A. Infrared
B. Internal resistance
C. Input response
D. Instant reading

10 A basic reflective IR sensor detects an object mainly by sensing what?

IR sensor Easy
A. Changes in air pressure
B. Variations in humidity
C. Emitted ultrasonic waves
D. Reflected infrared light

11 Which application commonly uses an IR sensor?

IR sensor Easy
A. Obstacle detection
B. Humidity measurement
C. Voltage generation
D. Sound amplification

12 What does the abbreviation LDR stand for?

LDR Easy
A. Light Dependent Resistor
B. Low Density Receiver
C. Linear Digital Regulator
D. Light Detection Relay

13 What usually happens to the resistance of an LDR when light intensity increases?

LDR Easy
A. It remains constant
B. It decreases
C. It increases
D. It becomes infinite

14 Which project is a common application of an LDR?

LDR Easy
A. Water-level alarm
B. Digital thermometer
C. Automatic streetlight
D. Ultrasonic rangefinder

15 Which type of wave is used by an ultrasonic distance sensor?

Basic principle of ultrasonic sensor Easy
A. Low-frequency radio waves
B. Visible light waves
C. Infrared light waves
D. High-frequency sound waves

16 What does an ultrasonic sensor measure to determine the distance of an object?

Basic principle of ultrasonic sensor Easy
A. Reflected light intensity
B. Air humidity level
C. Echo travel time
D. Object temperature

17 Which formula represents the distance measured using the round-trip time and speed of sound ?

Basic principle of ultrasonic sensor Easy
A.
B.
C.
D.

18 Which two environmental quantities can both DHT11 and DHT22 sensors measure?

Temperature sensor (DHT11/DHT22) Easy
A. Light and sound
B. Distance and speed
C. Pressure and voltage
D. Temperature and humidity

19 What type of output is provided by a DHT11 sensor?

Temperature sensor (DHT11/DHT22) Easy
A. Ultrasonic pulses
B. Analog voltage only
C. Digital data
D. Infrared light

20 Compared with the DHT11, which sensor generally offers a wider measurement range and better accuracy?

Temperature sensor (DHT11/DHT22) Easy
A. LDR
B. HC-SR04
C. DHT22
D. IR sensor

21 An Arduino Uno uses a 10-bit ADC with a reference voltage of . What ADC value is expected for an input of ?

Analog and digital signals Medium
A. Approximately 512
B. Approximately 1023
C. Approximately 256
D. Approximately 768

22 A digital input reads LOW below and HIGH above . What is the main problem if the input remains near ?

Analog and digital signals Medium
A. The state is always HIGH
B. The pin becomes analog output
C. The state may be undefined
D. The ADC stops operating

23 A sensor signal contains frequency components up to . Which sampling rate satisfies the Nyquist criterion?

Analog and digital signals Medium
A.
B.
C.
D.

24 An Arduino PWM pin outputs a pulse train with a 40% duty cycle. What average voltage is obtained after suitable low-pass filtering?

Analog and digital signals Medium
A. Approximately
B. Approximately
C. Approximately
D. Approximately

25 On an Arduino Uno, which pins should generally be avoided for an ordinary sensor if USB serial communication is being used?

Arduino board (pin configuration and description) Medium
A. Digital pins 0 and 1
B. Digital pins 2 and 3
C. Analog pins A0 and A1
D. Power pins 5V and GND

26 A motor-speed control circuit requires a PWM signal from an Arduino Uno. Which selected pin is suitable?

Arduino board (pin configuration and description) Medium
A. Digital pin 12
B. Digital pin 9
C. Digital pin 4
D. Digital pin 2

27 A sensor provides a continuously varying output voltage between and . Where should its output be connected on an Arduino Uno for measurement?

Arduino board (pin configuration and description) Medium
A. The VIN pin
B. The RESET pin
C. The AREF pin only
D. An analog input pin

28 Two modules must communicate with an Arduino Uno through the I2C bus. Which pair of Uno pins carries the I2C signals?

Arduino board (pin configuration and description) Medium
A. A4 and A5
B. A6 and A7
C. A2 and A3
D. A0 and A1

29 An LED is connected from Arduino pin 8 to GND through a resistor. Which configuration and output combination turns it on?

Arduino board (pin configuration and description) Medium
A. Set pin 8 as INPUT and write HIGH
B. Set pin 8 as INPUT and write LOW
C. Set pin 8 as OUTPUT and write HIGH
D. Set pin 8 as OUTPUT and write LOW

30 An IR obstacle sensor detects a black surface less reliably than a white surface at the same distance. What is the most likely reason?

IR sensor Medium
A. The white surface lowers the supply voltage
B. The black surface emits more IR
C. The black surface absorbs more IR
D. The white surface blocks the receiver

31 An active-LOW IR sensor module gives LOW when an obstacle is present. Which program condition should trigger an alarm?

IR sensor Medium
A. Analog reading equals 1023
B. Sensor reading equals HIGH
C. PWM duty cycle equals zero
D. Sensor reading equals LOW

32 An IR obstacle detector produces false detections in direct sunlight. Which explanation best accounts for this behavior?

IR sensor Medium
A. Sunlight contains infrared radiation
B. Sunlight removes all reflected radiation
C. The obstacle becomes electrically charged
D. The transmitter changes into a receiver

33 An LDR is connected to and a fixed resistor is connected from the output node to GND. What happens to the output voltage when light intensity increases?

LDR Medium
A. It increases toward
B. It decreases toward
C. It alternates between HIGH and LOW
D. It remains fixed at

34 An LDR of is connected to , and a resistor connects the output node to GND. What is the output voltage?

LDR Medium
A.
B.
C.
D.

35 A streetlight controlled by an LDR switches rapidly on and off near twilight. Which modification best reduces this behavior?

LDR Medium
A. Add hysteresis to the switching thresholds
B. Increase the serial baud rate
C. Remove the fixed divider resistor
D. Connect the LDR directly to GND

36 An ultrasonic sensor measures a round-trip echo time of . Taking the speed of sound as , how far away is the object?

Basic principle of ultrasonic sensor Medium
A.
B.
C.
D.

37 Why is the measured echo travel distance divided by two when calculating object distance?

Basic principle of ultrasonic sensor Medium
A. The pulse travels to the object and back
B. The trigger pulse contains two equal waves
C. The receiver measures twice the sound speed
D. The sensor uses two independent timers

38 An ultrasonic sensor gives unstable readings from a smooth wall placed at a steep angle. What is the most likely cause?

Basic principle of ultrasonic sensor Medium
A. The wall increases the speed of sound
B. The echo pulse changes into visible light
C. The trigger pin becomes an analog input
D. The echo reflects away from the receiver

39 A project must measure temperatures below with better resolution. Which sensor is generally more suitable?

Temperature sensor (DHT11/DHT22) Medium
A. DHT11
B. Digital IR obstacle sensor
C. DHT22
D. LDR

40 A DHT sensor occasionally returns invalid checksum errors when read in a fast loop. Which change is most appropriate?

Temperature sensor (DHT11/DHT22) Medium
A. Increase the interval between readings
B. Apply PWM to the data pin
C. Reduce the serial monitor width
D. Replace GND with an analog pin

41 An Arduino Uno reads an analog sensor using its 10-bit ADC with a 5 V reference. If the input is 3.72 V, what digital value is expected most closely, assuming ideal conversion?

Analog and digital signals Hard
A. 931
B. 762
C. 819
D. 713

42 A slowly varying analog signal is sampled at 800 Hz. The signal contains a desired component at 120 Hz and an unwanted component at 510 Hz. What will most likely be observed after sampling if no anti-aliasing filter is used?

Analog and digital signals Hard
A. The 510 Hz component appears near 290 Hz
B. The 510 Hz component disappears completely
C. The 120 Hz component shifts near 280 Hz
D. The 510 Hz component appears near 400 Hz

43 An Arduino digital input has a HIGH threshold of approximately 3 V and a LOW threshold of approximately 1.5 V. A slowly changing sensor output remains at 2.2 V for several seconds. How should this input state be classified?

Analog and digital signals Hard
A. Guaranteed HIGH because it exceeds 1.5 V
B. Guaranteed LOW because it is below 2.5 V
C. Undefined because it lies between the thresholds
D. Alternating because the ADC samples it periodically

44 A 10-bit ADC uses a 2.56 V reference. What is the smallest ideal input-voltage change that can produce a one-count change in the conversion result?

Analog and digital signals Hard
A. 25.6 mV
B. 1.00 mV
C. 0.25 mV
D. 2.50 mV

45 On an Arduino Uno, a sketch uses analogWrite(9, 128) to control LED brightness. Which statement best describes the generated signal?

Arduino board (pin configuration and description) Hard
A. A 2.5 V constant analog output
B. A variable-frequency waveform with 2.5 V amplitude
C. A 5 V PWM waveform with about 50% duty cycle
D. A 128-level digital signal at 128 Hz

46 An Arduino Uno circuit requires SPI communication with a peripheral. Which pin assignment is correct for the hardware SPI interface?

Arduino board (pin configuration and description) Hard
A. MOSI 11, MISO 12, SCK 13, SS 10
B. MOSI A0, MISO A1, SCK A2, SS A3
C. MOSI 10, MISO 11, SCK 12, SS 13
D. MOSI 0, MISO 1, SCK 2, SS 3

47 A circuit drives an external 5 V signal into Arduino Uno pin 2 and also connects the signal source ground to Arduino GND. Which change is most important when the external signal may exceed 5 V?

Arduino board (pin configuration and description) Hard
A. Move the signal to the VIN terminal
B. Enable the internal pull-up resistor
C. Add level shifting or a suitable protection interface
D. Change pin 2 to an analog input

48 A pushbutton is connected between Arduino Uno pin 7 and ground, and INPUT_PULLUP is configured. What reading pattern should the program interpret as a pressed button?

Arduino board (pin configuration and description) Hard
A. LOW in both states because the pin is grounded
B. HIGH when pressed and LOW when released
C. HIGH in both states because of the pull-up
D. LOW when pressed and HIGH when released

49 An obstacle-detection IR module gives a LOW output when it detects a nearby object. The output remains LOW when a highly reflective white surface is moved farther away. Which explanation is most plausible?

IR sensor Hard
A. The sensor detects distance independently of reflected intensity
B. The module output is forced LOW by the Arduino ADC
C. The receiver is responding to stronger reflected IR
D. The transmitter has become an analog voltage source

50 An IR proximity sensor works reliably indoors but frequently detects obstacles in direct sunlight. What is the best engineering remedy?

IR sensor Hard
A. Increase the digital input sampling rate
B. Connect the sensor output directly to the 5 V rail
C. Use modulation and optical filtering with threshold calibration
D. Replace the IR LED with a visible red LED

51 An IR reflective module has an adjustable threshold and produces unstable output near a boundary. Which change most directly reduces rapid switching caused by small signal fluctuations?

IR sensor Hard
A. Use a lower supply voltage only
B. Shorten the ground wire to zero length
C. Add hysteresis to the threshold decision
D. Replace the digital output with a faster clock

52 An LDR has a resistance of 10 kΩ in darkness and 1 kΩ in bright light. It is connected in a divider with a fixed 10 kΩ resistor from 5 V to ground, with the output taken at the junction. What happens to the output voltage in bright light?

LDR Hard
A. It changes from 5 V to 0 V instantly
B. It rises from 2.5 V to about 4.55 V
C. It falls from 2.5 V to about 0.45 V
D. It remains exactly 2.5 V

53 An LDR divider is connected to an Arduino analog input. The reading changes significantly when a motor starts, even though illumination is constant. Which cause is most likely?

LDR Hard
A. The ADC automatically increases the light level
B. The LDR resistance becomes independent of illumination
C. The LDR produces ultrasonic pulses
D. Motor noise causes supply or ground fluctuations

54 Two identical LDR dividers are used to detect left-right light imbalance. To make the differential reading less sensitive to changes in overall illumination, which approach is most appropriate?

LDR Hard
A. Use only the darker sensor value
B. Use the sum of the two readings only
C. Short both LDR outputs to ground
D. Compare normalized readings or use a differential ratio

55 An ultrasonic sensor measures the round-trip echo time as 8.0 ms. Taking the speed of sound as 343 m/s, what is the approximate target distance?

Basic principle of ultrasonic sensor Hard
A. 1.372 m
B. 42.875 m
C. 0.686 m
D. 2.744 m

56 An HC-SR04-style sensor is mounted 1.2 m above a flat floor and points vertically downward. With the speed of sound at 343 m/s, what echo duration should be expected approximately?

Basic principle of ultrasonic sensor Hard
A. 7.0 ms
B. 3.5 ms
C. 28.6 ms
D. 14.0 ms

57 Two ultrasonic sensors are installed close together and triggered almost simultaneously. Their readings become erratic. What is the most likely cause and remedy?

Basic principle of ultrasonic sensor Hard
A. LDR saturation; reduce visible light
B. Cross-talk; trigger sensors at separated times
C. PWM aliasing; change the LED duty cycle
D. ADC quantization; increase ADC resolution

58 An ultrasonic sensor reports an unexpectedly long distance when aimed at a smooth, angled glass surface. Which explanation is most accurate?

Basic principle of ultrasonic sensor Hard
A. The transmitter emits light instead of sound
B. The angled surface reflects sound away from the receiver
C. The glass always absorbs all ultrasonic energy
D. The Arduino converts centimeters directly into voltage

59 A DHT22 is connected using a long cable, and its data line occasionally stays HIGH or returns corrupted readings. Which hardware change is generally most appropriate?

Temperature sensor (DHT11/DHT22) Hard
A. Remove the data-line pull-up resistor
B. Use an appropriate pull-up and improve signal wiring
C. Power the sensor through the Arduino reset pin
D. Connect the data line directly to an analog output

60 A program requests DHT22 data every 20 ms and receives many invalid results. What is the primary reason?

Temperature sensor (DHT11/DHT22) Hard
A. The DHT22 communicates only through SPI
B. The sensor output is always a PWM waveform
C. The sensor has a limited minimum sampling interval
D. The DHT22 requires an analog reference voltage