Bird
0
0
Arduinoprogramming~20 mins

Passive vs active buzzer difference in Arduino - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Buzzer Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
Output of code using an active buzzer
What will be the output behavior of this Arduino code snippet when connected to an active buzzer on pin 9?
Arduino
void setup() {
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(1000);
}
AThe buzzer does not emit any sound because tone() function is missing.
BThe buzzer emits a short beep only once and then stays silent.
CThe buzzer emits a tone that changes pitch every second.
DThe buzzer emits a continuous tone for 1 second, then is silent for 1 second, repeating.
Attempts:
2 left
💡 Hint
Active buzzers only need HIGH or LOW signals to turn on or off.
Predict Output
intermediate
2:00remaining
Output of code using a passive buzzer
What sound behavior will this Arduino code produce when connected to a passive buzzer on pin 9?
Arduino
void setup() {
  pinMode(9, OUTPUT);
}

void loop() {
  tone(9, 1000);
  delay(1000);
  noTone(9);
  delay(1000);
}
AThe buzzer emits a 1000 Hz tone for 1 second, then is silent for 1 second, repeating.
BThe buzzer emits a continuous tone without stopping.
CThe buzzer emits no sound because tone() does not work with passive buzzers.
DThe buzzer emits a random noise instead of a tone.
Attempts:
2 left
💡 Hint
Passive buzzers need a frequency signal to produce sound.
🧠 Conceptual
advanced
2:00remaining
Key difference between passive and active buzzers
Which statement correctly describes the main difference between a passive and an active buzzer?
AAn active buzzer needs an external frequency signal to produce sound, while a passive buzzer produces sound when powered.
BAn active buzzer has a built-in oscillator and produces sound when powered, while a passive buzzer requires an external frequency signal.
CA passive buzzer produces sound when powered directly, while an active buzzer needs a frequency signal.
DBoth buzzers require external frequency signals but differ in voltage requirements.
Attempts:
2 left
💡 Hint
Think about which buzzer has a built-in sound generator.
🔧 Debug
advanced
2:00remaining
Why does this passive buzzer code produce no sound?
This Arduino code is intended to make a passive buzzer beep, but it produces no sound. What is the problem?
Arduino
void setup() {
  pinMode(9, OUTPUT);
}

void loop() {
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(1000);
}
AThe delay times are too long for the buzzer to produce sound.
BThe pinMode should be set to INPUT instead of OUTPUT for buzzers.
CPassive buzzers need a frequency signal generated by tone(), digitalWrite alone won't produce sound.
DThe buzzer must be connected to pin 10, not pin 9.
Attempts:
2 left
💡 Hint
Passive buzzers need a changing signal to vibrate and produce sound.
🚀 Application
expert
3:00remaining
Designing a circuit with both buzzers
You want to design an Arduino project that uses both an active and a passive buzzer. Which approach correctly handles both buzzers in code?
AUse digitalWrite(HIGH/LOW) for the active buzzer and tone()/noTone() for the passive buzzer on separate pins.
BUse tone()/noTone() for both buzzers on the same pin to save pins.
CUse digitalWrite(HIGH/LOW) for both buzzers on the same pin to simplify wiring.
DUse analogWrite() for the active buzzer and digitalWrite() for the passive buzzer.
Attempts:
2 left
💡 Hint
Remember how each buzzer type produces sound differently and needs different signals.