Unit 2 - Practice Quiz

ECE249 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which microcontroller is used in the standard Arduino UNO board?

A. ATmega32u4
B. ATmega2560
C. ATmega328P
D. ATTiny85

2 How many digital input/output pins are available on the Arduino UNO board?

A. 10
B. 14
C. 20
D. 6

3 What is the operating voltage of the Arduino UNO board?

A. 3.3V
B. 5V
C. 9V
D. 12V

4 Which symbol is used on the Arduino board to indicate pins capable of PWM output?

A. #
B. *
C. ~
D. @

5 What is the function of the pin on the Arduino?

A. To provide a 3.3V output
B. To provide a 5V output
C. To ground the circuit
D. To supply external input voltage to the board

6 What is the resolution of the built-in Analog-to-Digital Converter (ADC) in Arduino UNO?

A. 8-bit
B. 10-bit
C. 12-bit
D. 16-bit

7 Which pins are utilized for serial communication (UART) on the Arduino UNO?

A. Pins 2 and 3
B. Pins 0 (RX) and 1 (TX)
C. Pins 10 and 11
D. Pins A4 and A5

8 What is the clock speed of the quartz crystal oscillator on the Arduino UNO?

A. 8 MHz
B. 16 MHz
C. 20 MHz
D. 48 MHz

9 Which function is used to configure a specific pin as an input or output in Arduino code?

A. digitalWrite()
B. pinMode()
C. analogRead()
D. setup()

10 A digital signal can have how many states?

A. Infinite
B. Two
C. Ten
D. Four

11 Which of the following represents an analog signal?

A. A switch being ON or OFF
B. Temperature variation over time
C. Binary code
D. Logic gates output

12 What is the range of values returned by the analogRead() function in Arduino?

A. 0 to 255
B. 0 to 1023
C. 0 to 1
D. -512 to 512

13 Which function is used to output an analog value (PWM) on a digital pin?

A. digitalWrite()
B. analogRead()
C. analogWrite()
D. pulseIn()

14 What is the range of values used for the analogWrite() function (8-bit PWM)?

A. 0 to 1023
B. 0 to 255
C. 0 to 100
D. 1 to 10

15 The Arduino UNO has how many analog input pins?

A. 4
B. 6
C. 8
D. 14

16 In a 5V digital system, what voltage range is typically considered Logic HIGH?

A. 0V to 1.5V
B. 1.5V to 2.5V
C. 3V to 5V
D. -5V to 0V

17 Which sensor uses sound waves to detect the distance of an object?

A. PIR Sensor
B. Ultrasonic Sensor
C. LDR
D. DHT11

18 What is the frequency of the sound wave typically emitted by the HC-SR04 ultrasonic sensor?

A. 20 Hz
B. 20 kHz
C. 40 kHz
D. 1 MHz

19 Which pins are present on the HC-SR04 ultrasonic sensor module?

A. VCC, GND, OUT
B. VCC, GND, SDA, SCL
C. VCC, Trig, Echo, GND
D. VCC, Data, GND

20 To initiate a measurement with the HC-SR04, the Trig pin must be held HIGH for at least how long?

A. 1 millisecond
B. 10 microseconds
C. 100 milliseconds
D. 1 second

21 What is the correct formula to calculate distance () using time () and speed of sound () for an ultrasonic sensor?

A.
B.
C.
D.

22 If the speed of sound is 340 m/s, what is it in cm/s (centimeters per microsecond)?

A. 0.034 cm/s
B. 340 cm/s
C. 0.34 cm/s
D. 34 cm/s

23 What is the approximate maximum range of the HC-SR04 ultrasonic sensor?

A. 2 cm
B. 400 cm (4 meters)
C. 10 meters
D. 100 meters

24 In the DHT11 sensor, 'DHT' stands for:

A. Digital Heat Temperature
B. Digital Humidity and Temperature
C. Direct Humidity Tracker
D. Dual Hybrid Thermometer

25 Which of the following is a key difference between DHT11 and DHT22?

A. DHT11 measures only temperature; DHT22 measures humidity.
B. DHT11 is analog; DHT22 is digital.
C. DHT22 has better accuracy and wider range than DHT11.
D. DHT11 uses I2C; DHT22 uses SPI.

26 What type of data signal does the DHT11 sensor output?

A. Continuous Analog Voltage
B. Single-wire Digital Signal
C. PWM Signal
D. Frequency Modulated Signal

27 What is the temperature measurement range of the DHT11 sensor?

A. -50 to 100 °C
B. 0 to 50 °C
C. -40 to 80 °C
D. 20 to 30 °C

28 How often can the DHT11 sensor be sampled (sampling rate)?

A. Once every 1 second (1 Hz)
B. Once every 10 seconds
C. 1000 times per second
D. Once every 2 seconds (0.5 Hz)

29 The humidity sensing component in a DHT11 is typically:

A. Resistive type
B. Inductive type
C. Capacitive type
D. Optical type

30 Which library is commonly used in Arduino IDE to interface with DHT sensors?

A. Servo.h
B. LiquidCrystal.h
C. DHT.h
D. SPI.h

31 An IR sensor module mainly consists of which two optical components?

A. LED and LDR
B. IR Transmitter (LED) and IR Receiver (Photodiode)
C. Laser and Mirror
D. Ultrasonic emitter and receiver

32 What is the primary physical principle used by an IR obstacle sensor?

A. Refraction of light
B. Reflection of light
C. Diffraction of light
D. Speed of sound

33 In an IR sensor line follower application, how does a black surface affect IR light?

A. It reflects most of the IR light
B. It absorbs most of the IR light
C. It amplifies the IR light
D. It changes the frequency of IR light

34 In an IR sensor circuit, the photodiode is typically connected in which biasing mode?

A. Forward Bias
B. Reverse Bias
C. Zero Bias
D. Saturation Mode

35 What component is used on an IR module to adjust the detection range/sensitivity?

A. Capacitor
B. Inductor
C. Potentiometer
D. Transistor

36 LDR stands for:

A. Light Diode Resistor
B. Light Dependent Resistor
C. Long Distance Resistor
D. Linear Digital Resistance

37 What is the relationship between light intensity and the resistance of an LDR?

A. Directly proportional (More light = More resistance)
B. Inversely proportional (More light = Less resistance)
C. No relationship
D. Logarithmic increase

38 Which material is most commonly used to make an LDR?

A. Silicon
B. Germanium
C. Cadmium Sulphide (CdS)
D. Copper

39 In total darkness, the resistance of an LDR is:

A. Zero
B. Very Low (Few Ohms)
C. Very High (Mega Ohms)
D. Negative

40 To use an LDR with an Arduino analog pin, it is usually connected in a circuit with:

A. A capacitor in series
B. A fixed resistor (Voltage Divider configuration)
C. A diode in parallel
D. Direct connection to 5V and Pin

41 Which application is best suited for an LDR?

A. Distance measurement
B. Automatic Street Light Controller
C. Temperature monitoring
D. Humidity control

42 The spectral response of a CdS LDR is most similar to:

A. The human eye
B. UV radiation sensors
C. X-ray detectors
D. Radio receivers

43 What happens to the voltage at the analog pin if the LDR is connected between 5V and the pin, and a fixed resistor is connected between the pin and GND, when light intensity increases?

A. Voltage decreases
B. Voltage stays 0
C. Voltage increases
D. Voltage becomes negative

44 Which component acts as the comparator in a digital IR sensor module?

A. LM358 or LM393
B. NE555
C. 7805
D. ATmega328

45 The Arduino function delay(1000) pauses the program for:

A. 1000 seconds
B. 1000 microseconds
C. 1000 milliseconds
D. 1000 clock cycles

46 On the Arduino UNO, the USB port is used for:

A. Uploading code only
B. Serial communication only
C. Power supply only
D. Uploading code, Serial communication, and Power supply

47 What is the typical supply current consumption of an HC-SR04 sensor during operation?

A. 15 mA
B. 500 mA
C. 1 A
D. 1 uA

48 Which pin is used to reset the microcontroller on the Arduino board?

A. AREF
B. RESET
C. IOREF
D. 3.3V

49 For a DHT11 sensor, if the data cable length is very long (e.g., > 20m), what is required?

A. A pull-up resistor
B. A pull-down resistor
C. An amplifier
D. DHT11 cannot operate over 20m

50 Which of the following is an active sensor?

A. LDR
B. Thermistor
C. Ultrasonic Sensor
D. Potentiometer