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 has only two fixed levels
B. It changes only once per second
C. It always remains at zero
D. It varies continuously over a range

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

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

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

Analog and digital signals Easy
A. Button state
B. Room temperature
C. LED 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. Temperature probe
B. Push button
C. Volume knob
D. Light sensor

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

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

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

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

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

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

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

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

9 What does the abbreviation IR stand for?

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

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

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

11 Which application commonly uses an IR sensor?

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

12 What does the abbreviation LDR stand for?

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

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

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

14 Which project is a common application of an LDR?

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

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

Basic principle of ultrasonic sensor Easy
A. Low-frequency radio waves
B. Infrared light waves
C. High-frequency sound waves
D. Visible light 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. Echo travel time
C. Object temperature
D. Air humidity level

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. Pressure and voltage
B. Temperature and humidity
C. Light and sound
D. Distance and speed

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

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

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

Temperature sensor (DHT11/DHT22) Easy
A. DHT22
B. LDR
C. HC-SR04
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 768
B. Approximately 512
C. Approximately 1023
D. Approximately 256

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 state may be undefined
C. The ADC stops operating
D. The pin becomes analog output

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. Power pins 5V and GND
D. Analog pins A0 and A1

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 2
B. Digital pin 4
C. Digital pin 9
D. Digital pin 12

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 AREF pin only
B. The VIN pin
C. The RESET pin
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. A0 and A1
C. A6 and A7
D. A2 and A3

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 LOW
D. Set pin 8 as OUTPUT and write HIGH

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 black surface absorbs more IR
B. The black surface emits more IR
C. The white surface blocks the receiver
D. The white surface lowers the supply voltage

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. Sensor reading equals LOW
B. PWM duty cycle equals zero
C. Analog reading equals 1023
D. Sensor reading equals HIGH

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

IR sensor Medium
A. Sunlight removes all reflected radiation
B. Sunlight contains infrared 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 alternates between HIGH and LOW
B. It decreases toward
C. It remains fixed at
D. It increases toward

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. Connect the LDR directly to GND
B. Add hysteresis to the switching thresholds
C. Remove the fixed divider resistor
D. Increase the serial baud rate

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 receiver measures twice the sound speed
B. The sensor uses two independent timers
C. The pulse travels to the object and back
D. The trigger pulse contains two equal waves

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 reflects away from the receiver
C. The trigger pin becomes an analog input
D. The echo pulse changes into visible light

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

Temperature sensor (DHT11/DHT22) Medium
A. DHT11
B. DHT22
C. Digital IR obstacle sensor
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. Replace GND with an analog pin
C. Apply PWM to the data pin
D. Reduce the serial monitor width

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. 713
B. 762
C. 819
D. 931

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 120 Hz component shifts near 280 Hz
C. The 510 Hz component disappears completely
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. Alternating because the ADC samples it periodically
B. Guaranteed HIGH because it exceeds 1.5 V
C. Undefined because it lies between the thresholds
D. Guaranteed LOW because it is below 2.5 V

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. 2.50 mV
B. 0.25 mV
C. 1.00 mV
D. 25.6 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 5 V PWM waveform with about 50% duty cycle
B. A 2.5 V constant analog output
C. A variable-frequency waveform with 2.5 V amplitude
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 0, MISO 1, SCK 2, SS 3
B. MOSI 11, MISO 12, SCK 13, SS 10
C. MOSI A0, MISO A1, SCK A2, SS A3
D. MOSI 10, MISO 11, SCK 12, SS 13

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. Add level shifting or a suitable protection interface
B. Enable the internal pull-up resistor
C. Change pin 2 to an analog input
D. Move the signal to the VIN terminal

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. LOW when pressed and HIGH when released
D. HIGH in both states because of the pull-up

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 receiver is responding to stronger reflected IR
B. The sensor detects distance independently of reflected intensity
C. The transmitter has become an analog voltage source
D. The module output is forced LOW by the Arduino ADC

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. Use modulation and optical filtering with threshold calibration
B. Connect the sensor output directly to the 5 V rail
C. Replace the IR LED with a visible red LED
D. Increase the digital input sampling rate

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. Add hysteresis to the threshold decision
B. Use a lower supply voltage only
C. Shorten the ground wire to zero length
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 remains exactly 2.5 V
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 changes from 5 V to 0 V instantly

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 LDR produces ultrasonic pulses
B. Motor noise causes supply or ground fluctuations
C. The ADC automatically increases the light level
D. The LDR resistance becomes independent of illumination

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. Short both LDR outputs to ground
B. Compare normalized readings or use a differential ratio
C. Use the sum of the two readings only
D. Use only the darker sensor value

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. 2.744 m
B. 1.372 m
C. 42.875 m
D. 0.686 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. 3.5 ms
B. 28.6 ms
C. 14.0 ms
D. 7.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. ADC quantization; increase ADC resolution
B. LDR saturation; reduce visible light
C. Cross-talk; trigger sensors at separated times
D. PWM aliasing; change the LED duty cycle

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 glass always absorbs all ultrasonic energy
B. The Arduino converts centimeters directly into voltage
C. The angled surface reflects sound away from the receiver
D. The transmitter emits light instead of sound

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. Power the sensor through the Arduino reset pin
B. Connect the data line directly to an analog output
C. Use an appropriate pull-up and improve signal wiring
D. Remove the data-line pull-up resistor

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 sensor has a limited minimum sampling interval
B. The sensor output is always a PWM waveform
C. The DHT22 communicates only through SPI
D. The DHT22 requires an analog reference voltage