What happens if the sampling rate of an Analog-to-Digital Converter (ADC) is set below the Nyquist rate for a given analog signal?
Think about what happens when you sample too slowly compared to the signal frequency.
If the sampling rate is below twice the highest frequency component (Nyquist rate), aliasing occurs. This means higher frequencies appear as lower frequencies, distorting the digital signal.
Given a 3-bit ADC, what is the number of discrete quantization levels it can represent?
bits = 3 levels = 2 ** bits print(levels)
Number of levels equals 2 raised to the number of bits.
A 3-bit ADC can represent 2^3 = 8 discrete levels.
Consider a 4-bit DAC with a reference voltage of 5V. What is the output voltage for a digital input value of 9?
bits = 4 max_value = 2 ** bits - 1 ref_voltage = 5.0 input_value = 9 output_voltage = (input_value / max_value) * ref_voltage print(round(output_voltage, 2))
Calculate output voltage as (input / max) * reference voltage.
Maximum digital value is 15 (2^4 - 1). Output voltage = (9/15)*5 = 3V. Rounded to two decimals, it is 3.00 V (option C).
What error will the following Python code produce?
import numpy as np sampling_rate = 8000 signal_freq = 10000 t = np.arange(0, 1, 1/sampling_rate) signal = np.sin(2 * np.pi * signal_freq * t) print(signal[:5])
Check the relationship between signal frequency and sampling rate.
The code runs without error but the signal frequency is higher than the sampling rate, causing aliasing in the sampled signal.
You are designing an audio signal chain for human voice (20 Hz to 20 kHz). Which combination of ADC and DAC parameters ensures high fidelity without aliasing or quantization noise?
Consider Nyquist rate and typical audio bit depth for quality.
44.1 kHz sampling rate is above Nyquist for 20 kHz audio. 16-bit resolution is standard for good audio quality. Lower sampling rates or bit depths cause aliasing or noise.
