Unit 3: Output devices with NodeMCU - Practice Quiz

ECE237 — Architecting Smart Iot Devices 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of an LCD connected to a NodeMCU?

LCD interfacing with NodeMCU Easy
A. To display information
B. To amplify current
C. To measure temperature
D. To store programs

2 What does LCD stand for?

LCD interfacing with NodeMCU Easy
A. Light Control Device
B. Liquid Crystal Display
C. Linear Circuit Display
D. Logic Crystal Driver

3 Which communication interface commonly reduces the number of NodeMCU pins required by an LCD?

LCD interfacing with NodeMCU Easy
A. ADC
B. UART
C. I2C
D. PWM

4 Which two signal lines are used for I2C communication with an LCD?

LCD interfacing with NodeMCU Easy
A. RS and EN
B. TX and RX
C. SDA and SCL
D. A0 and PWM

5 What is the function of the contrast control on a character LCD?

LCD interfacing with NodeMCU Easy
A. Adjusting character visibility
B. Changing communication speed
C. Selecting the GPIO mode
D. Controlling motor direction

6 What does a 16x2 LCD provide?

LCD interfacing with NodeMCU Easy
A. Sixteen rows of 2 characters
B. One row of 32 characters
C. Two rows of 8 characters
D. Two rows of 16 characters

7 Why must the GND pins of the NodeMCU and LCD be connected together?

LCD interfacing with NodeMCU Easy
A. To provide a common reference
B. To increase display resolution
C. To select the I2C address
D. To store the displayed text

8 How many main LED segments are used to form digits in a seven-segment display?

Seven segment interfacing with NodeMCU Easy
A. Five
B. Seven
C. Ten
D. Eight

9 What is a seven-segment display mainly used to show?

Seven segment interfacing with NodeMCU Easy
A. Analog voltages
B. Audio signals
C. Numeric digits
D. Network packets

10 Why is a resistor connected in series with each segment of a seven-segment display?

Seven segment interfacing with NodeMCU Easy
A. To reverse current flow
B. To store display data
C. To limit LED current
D. To increase supply voltage

11 In a common-cathode seven-segment display, where are the common terminals normally connected?

Seven segment interfacing with NodeMCU Easy
A. Data
B. Ground
C. Reset
D. Clock

12 In a common-anode seven-segment display, where are the common terminals normally connected?

Seven segment interfacing with NodeMCU Easy
A. Clock input
B. Positive supply
C. Ground
D. Analog input

13 Which NodeMCU pin mode is normally used to control a seven-segment display segment?

Seven segment interfacing with NodeMCU Easy
A. ANALOG
B. INPUT
C. OUTPUT
D. INPUT_PULLUP

14 What is the optional eighth LED on many seven-segment displays used for?

Seven segment interfacing with NodeMCU Easy
A. Power indicator
B. Reset signal
C. Decimal point
D. Clock input

15 Why should a DC motor not usually be powered directly from a NodeMCU GPIO pin?

Interfacing DC motor with NodeMCU Easy
A. The GPIO stores motor speed
B. The GPIO produces sound signals
C. The motor requires more current
D. The motor requires digital data

16 Which device can act as an electronic switch when controlling a DC motor from a NodeMCU?

Interfacing DC motor with NodeMCU Easy
A. Capacitor
B. Transistor
C. Photodiode
D. Potentiometer

17 What is the purpose of a flyback diode connected across a DC motor?

Interfacing DC motor with NodeMCU Easy
A. To suppress voltage spikes
B. To increase motor torque
C. To generate PWM pulses
D. To measure motor current

18 Which technique is commonly used to control the speed of a DC motor?

Interfacing DC motor with NodeMCU Easy
A. ADC
B. HTTP
C. I2C
D. PWM

19 Which circuit is commonly used to control the direction of a DC motor?

Interfacing DC motor with NodeMCU Easy
A. Crystal oscillator
B. RC filter
C. H-bridge
D. Voltage divider

20 What normally happens when the polarity applied to a simple DC motor is reversed?

Interfacing DC motor with NodeMCU Easy
A. Its resistance becomes zero
B. Its direction reverses
C. Its GPIO becomes analog
D. Its supply becomes AC

21 A 16×2 LCD is connected to a NodeMCU through an I2C module. Which pair of signals is normally required for communication?

LCD interfacing with NodeMCU Medium
A. TX for data and RX for clock
B. INT for data and RST for clock
C. SDA for data and SCL for clock
D. MOSI for data and MISO for clock

22 What is the main advantage of using an I2C adapter with a character LCD and NodeMCU?

LCD interfacing with NodeMCU Medium
A. It removes the need for a power supply
B. It converts the LCD into a touchscreen
C. It reduces the number of GPIO pins required
D. It increases the LCD resolution automatically

23 An LCD displays dark blocks but no characters after power is applied. Which adjustment is most likely to solve the problem?

LCD interfacing with NodeMCU Medium
A. Change the NodeMCU baud rate
B. Adjust the LCD contrast potentiometer
C. Increase the motor driver current
D. Replace the LCD data cable with an antenna

24 A NodeMCU program initializes an LCD at address 0x27, but the display remains blank. What should be checked first?

LCD interfacing with NodeMCU Medium
A. Whether the DC motor has a flyback diode
B. Whether the seven-segment decimal point is active
C. Whether the actual I2C address is different
D. Whether the NodeMCU antenna is extended

25 Why should a common ground be connected between the NodeMCU and an externally powered LCD module?

LCD interfacing with NodeMCU Medium
A. It protects the LCD from incorrect characters
B. It increases the LCD backlight brightness
C. It provides a common voltage reference
D. It changes the LCD from parallel to serial mode

26 A sensor value on an LCD changes rapidly and becomes difficult to read. Which software approach is most suitable?

LCD interfacing with NodeMCU Medium
A. Refresh the display at a controlled interval
B. Write each character to a separate GPIO pin
C. Increase the I2C address after every reading
D. Clear the LCD continuously inside the main loop

27 A 16×2 LCD is used to display a value that sometimes has fewer digits than the previous value. Why can leftover characters appear?

LCD interfacing with NodeMCU Medium
A. Old characters are not overwritten
B. The I2C clock changes into a data line
C. The NodeMCU converts digits into analog signals
D. The LCD automatically stores two values

28 For a common-cathode seven-segment display, how is a segment normally turned on?

Seven segment interfacing with NodeMCU Medium
A. Apply LOW to the segment through a resistor
B. Leave the segment pin disconnected
C. Apply HIGH to the segment through a resistor
D. Connect the segment directly to the reset pin

29 How does the segment control logic differ for a common-anode seven-segment display compared with a common-cathode display?

Seven segment interfacing with NodeMCU Medium
A. The segment control polarity is reversed
B. The segment names change from letters to numbers
C. The display requires no current-limiting resistors
D. The display can use only analog NodeMCU pins

30 Why is a separate resistor commonly connected in series with each seven-segment LED segment?

Seven segment interfacing with NodeMCU Medium
A. To limit the current through each segment
B. To synchronize the segment with the I2C clock
C. To increase the logic voltage above 5 V
D. To store the digit before it is displayed

31 A digit appears incorrectly on a seven-segment display even though the program logic is correct. Which issue is most likely?

Seven segment interfacing with NodeMCU Medium
A. The LCD contrast setting is too low
B. The segment-to-GPIO mapping is incorrect
C. The motor supply has insufficient torque
D. The I2C address is outside the display range

32 A seven-segment display must show digits from 0 to 9 using seven GPIO pins. What should the program generally do for each new digit?

Seven segment interfacing with NodeMCU Medium
A. Send the digit to the LCD I2C address
B. Write the corresponding segment pattern
C. Change the motor direction pin
D. Read the analog voltage from every segment

33 Why can directly driving many seven-segment segments from NodeMCU pins create a hardware concern?

Seven segment interfacing with NodeMCU Medium
A. The segments generate a separate Wi-Fi network
B. The total GPIO current may exceed safe limits
C. The GPIO pins can produce only alternating digits
D. The display always requires an I2C address

34 A multiplexed two-digit seven-segment display uses shared segment lines. What technique allows both digits to appear continuously lit?

Seven segment interfacing with NodeMCU Medium
A. Keep both digit-enable pins permanently floating
B. Send separate I2C addresses to each segment
C. Rapidly enable one digit at a time
D. Apply analog input readings to the common pins

35 Why should a DC motor generally not be connected directly to a NodeMCU GPIO pin?

Interfacing DC motor with NodeMCU Medium
A. The GPIO can provide voltage but never digital signals
B. The motor requires more current than the GPIO can safely supply
C. The motor requires an LCD to complete its circuit
D. The motor can communicate only through I2C

36 Which component is most suitable for controlling a DC motor's direction and speed with a NodeMCU?

Interfacing DC motor with NodeMCU Medium
A. A seven-segment display
B. A pull-down resistor alone
C. An LCD contrast potentiometer
D. An H-bridge motor driver

37 What is the purpose of a flyback diode across a brushed DC motor when a transistor is used as the switching device?

Interfacing DC motor with NodeMCU Medium
A. To increase the motor voltage during startup
B. To convert PWM into an I2C clock
C. To reverse the motor without changing the wiring
D. To suppress voltage spikes during motor turn-off

38 A motor driver receives a PWM signal with a duty cycle of approximately . What is the expected effect compared with a duty cycle, assuming the same supply?

Interfacing DC motor with NodeMCU Medium
A. The motor changes into a seven-segment output
B. The motor always reverses its direction
C. The motor receives three times the supply voltage
D. The motor generally receives less average power

39 When a NodeMCU controls a motor driver powered by a separate battery, which connection is normally necessary for reliable control signals?

Interfacing DC motor with NodeMCU Medium
A. Connect the battery positive directly to every GPIO
B. Connect the driver output to the LCD contrast pin
C. Connect the NodeMCU ground to the driver ground
D. Connect the motor terminals to the NodeMCU RX pin

40 An H-bridge motor driver has input pins IN1 and IN2. Which input combination commonly commands the motor to stop using active braking or driver logic?

Interfacing DC motor with NodeMCU Medium
A. Connect IN1 directly to the motor shaft
B. Set IN1 and IN2 to the same logic level
C. Set IN1 HIGH and leave IN2 floating
D. Set both inputs to different analog voltages

41 A 16x2 LCD with an I2C backpack is connected to a NodeMCU. The display works intermittently when a motor on the same supply starts. Which hardware change most directly addresses the likely communication fault?

LCD interfacing with NodeMCU Hard
A. Increase the LCD backlight resistor value
B. Change the LCD character font setting
C. Add a flyback diode across the motor terminals
D. Replace the LCD contrast potentiometer

42 An I2C LCD backpack is powered from 5 V, while its SDA and SCL pull-up resistors also reach 5 V. Why is this connection unsafe for a NodeMCU configured for 3.3 V GPIO operation?

LCD interfacing with NodeMCU Hard
A. The NodeMCU pins may receive 5 V through the pull-ups
B. The LCD will always use the wrong I2C address
C. The NodeMCU will automatically disable its I2C driver
D. The LCD cannot generate valid acknowledgment bits

43 A NodeMCU LCD program hangs inside lcd.init() after wiring SDA and SCL to GPIO4 and GPIO5. The LCD has power and a visible backlight. Which diagnosis is most appropriate before changing the software library?

LCD interfacing with NodeMCU Hard
A. The LCD requires a higher PWM frequency
B. The I2C address or bus wiring is incorrect
C. The LCD must be connected using SPI instead
D. The LCD contrast is too low for initialization

44 A design must update an I2C LCD every 10 ms while also servicing time-critical sensor interrupts. Which architecture best reduces avoidable timing disruption?

LCD interfacing with NodeMCU Hard
A. Use software bit-banging during each interrupt
B. Update only changed characters at scheduled intervals
C. Insert longer delays after every LCD command
D. Rewrite the entire LCD every 10 ms

45 An LCD displays correct text after reset, but later shows duplicated or shifted characters when strings of different lengths are written to the same row. What is the most reliable software correction?

LCD interfacing with NodeMCU Hard
A. Swap the SDA and SCL assignments
B. Increase the I2C clock above 400 kHz
C. Reduce the LCD backlight duty cycle
D. Clear or overwrite the unused trailing positions

46 A NodeMCU uses GPIO0 as an LCD control line. The board sometimes enters programming mode instead of booting normally. Which explanation best accounts for this behavior?

LCD interfacing with NodeMCU Hard
A. GPIO0 cannot change state after the LCD is initialized
B. GPIO0 is sampled during boot and affects flash-download mode
C. GPIO0 forces the LCD to select its alternate character set
D. GPIO0 is reserved exclusively for I2C clock generation

47 The LCD is powered from a separate 5 V adapter, and the NodeMCU is powered by USB. Characters are corrupted even though both devices measure correct local voltages. What connection is essential?

LCD interfacing with NodeMCU Hard
A. Connect the LCD enable line directly to 5 V
B. Connect the LCD backlight to the NodeMCU reset pin
C. Connect the grounds of both power systems
D. Connect the two supplies in series

48 A common-cathode seven-segment display is driven directly from NodeMCU GPIO pins. One segment draws 18 mA, but the design must satisfy a 12 mA maximum per GPIO. Which change preserves the displayed pattern while meeting the limit?

Seven segment interfacing with NodeMCU Hard
A. Use a larger resistor for each segment
B. Connect all segment anodes to ground
C. Increase the GPIO output voltage in software
D. Remove the segment's current-limiting resistor

49 A common-anode display is connected to a NodeMCU through low-side transistor drivers for its segment lines. Which output behavior should represent an illuminated segment?

Seven segment interfacing with NodeMCU Hard
A. Leave the transistor input floating to source segment current
B. Drive the transistor input low to sink segment current
C. Drive both the anode and segment line low
D. Drive the transistor input high to sink segment current

50 During multiplexing of a four-digit common-cathode display, faint segments from the previous digit appear on the next digit. Which sequence most effectively prevents ghosting?

Seven segment interfacing with NodeMCU Hard
A. Keep all digit-select lines active during the update
B. Change segment data, then select the next digit
C. Select the next digit, then change segment data
D. Increase the digit-select voltage before changing data

51 Each segment is driven at 12 mA while active, and a multiplexed display has a duty cycle of . Ignoring nonlinear LED effects, what is the approximate average current per continuously lit segment?

Seven segment interfacing with NodeMCU Hard
A.
B.
C.
D.

52 A two-digit multiplexed display shares seven segment lines, but the NodeMCU has only one GPIO available for both digit selection and segment data timing. Which solution is most appropriate?

Seven segment interfacing with NodeMCU Hard
A. Short the corresponding segments of both digits
B. Drive both digits permanently from the same enable line
C. Increase the display supply voltage until both digits light
D. Use an external shift register or GPIO expander

53 A display driver uses an 8-bit lookup table for digits, but every digit appears horizontally mirrored or incorrectly segmented. The wiring order is known to be reversed relative to the table. What is the cleanest correction?

Seven segment interfacing with NodeMCU Hard
A. Remap each table bit to its physical segment
B. Increase the multiplex refresh period
C. Invert only the decimal-point bit
D. Reverse the display supply polarity

54 A multiplexed display flickers noticeably even though its scan rate is 200 Hz per complete frame. The firmware spends 8 ms blocking in another task between digit updates. What is the strongest fix?

Seven segment interfacing with NodeMCU Hard
A. Use nonblocking scheduling for display refresh
B. Reduce the segment resistor to increase brightness
C. Disable the decimal point permanently
D. Connect the digit commons directly to 3.3 V

55 Why must a DC motor generally not be connected directly between a NodeMCU GPIO pin and ground?

Interfacing DC motor with NodeMCU Hard
A. The motor always requires an analog sine-wave input
B. The GPIO output is isolated from the NodeMCU power rail
C. The motor needs an I2C address before starting
D. The GPIO cannot safely supply motor current and inductive transients

56 A low-side N-channel MOSFET controls a motor, but the motor resets the NodeMCU whenever it turns off. The motor has no suppression component. Which addition is most directly required?

Interfacing DC motor with NodeMCU Hard
A. A capacitor in series with the motor
B. A resistor in parallel with the NodeMCU reset switch
C. A diode in reverse bias across the motor
D. A pull-down resistor across the motor terminals only

57 A motor driver accepts a 3.3 V logic signal, but the motor supply is 12 V and shares ground with the NodeMCU. Which statement is correct?

Interfacing DC motor with NodeMCU Hard
A. The motor supply voltage must be reduced to 3.3 V
B. The shared ground provides the reference for the logic signal
C. The driver input can be left floating when the motor is stopped
D. The NodeMCU pin must output 12 V to enable the driver

58 A NodeMCU controls motor speed with PWM, but the motor stalls at low duty cycles and draws large current pulses. Which change is most likely to improve startup behavior?

Interfacing DC motor with NodeMCU Hard
A. Remove the flyback diode during startup
B. Use a lower motor supply voltage permanently
C. Configure the GPIO as an open-drain input
D. Apply a brief higher-duty startup pulse

59 An H-bridge is used to reverse a motor. The firmware changes one bridge input from high to low while changing the other from low to high at nearly the same instant. What protection is most important?

Interfacing DC motor with NodeMCU Hard
A. Insert dead time between complementary switching commands
B. Set both bridge inputs high continuously
C. Use the motor as the GPIO pull-up resistor
D. Increase the LCD bus clock during reversal

60 A motor supply is adequate at no load but its voltage collapses during acceleration, causing the NodeMCU to reboot. Which design response best addresses the system-level cause?

Interfacing DC motor with NodeMCU Hard
A. Replace the motor driver with a mechanical switch only
B. Connect the motor directly to the NodeMCU 3.3 V pin
C. Increase the motor PWM frequency without changing the supply
D. Use a separate regulated logic supply and local decoupling