Which statement correctly describes amplitude modulation (AM)?
Think about which part of the carrier wave changes in AM.
In amplitude modulation, the carrier wave's amplitude changes to reflect the message signal, while frequency and phase remain constant.
What is the shape of the output signal array generated by this frequency modulation (FM) code snippet?
import numpy as np fs = 1000 f_c = 100 f_m = 5 beta = 5 t = np.arange(0, 1, 1/fs) message = np.sin(2 * np.pi * f_m * t) fm_signal = np.cos(2 * np.pi * f_c * t + beta * message) output = fm_signal[:5]
Check the cosine values near zero phase shift.
The output is the first five values of a cosine wave modulated in frequency, values close to 1 at start.
Given the phase modulation (PM) signal generated below, what is the value of the signal at t=0.002 seconds?
import numpy as np fs = 1000 f_c = 50 f_m = 10 k_p = np.pi / 2 t = np.arange(0, 0.01, 1/fs) message = np.sin(2 * np.pi * f_m * t) pm_signal = np.cos(2 * np.pi * f_c * t + k_p * message) value_at_0_002 = pm_signal[int(0.002 * fs)]
Calculate the phase at t=0.002 and then cosine of that phase.
At t=0.002, the phase includes carrier and modulated phase; cosine of that phase is approximately 0.7071.
Which plot correctly shows the difference between amplitude modulation (AM) and frequency modulation (FM) signals?
import numpy as np import matplotlib.pyplot as plt fs = 1000 f_c = 100 f_m = 5 beta = 5 t = np.arange(0, 0.1, 1/fs) message = np.sin(2 * np.pi * f_m * t) am_signal = (1 + 0.5 * message) * np.cos(2 * np.pi * f_c * t) fm_signal = np.cos(2 * np.pi * f_c * t + beta * message) plt.figure(figsize=(10,4)) plt.subplot(2,1,1) plt.plot(t, am_signal) plt.title('Amplitude Modulation (AM)') plt.subplot(2,1,2) plt.plot(t, fm_signal) plt.title('Frequency Modulation (FM)') plt.tight_layout() plt.show()
Look for amplitude changes in the top plot and frequency changes in the bottom plot.
AM changes amplitude over time, FM changes frequency but keeps amplitude constant.
Which option will cause a runtime error when generating an AM signal?
import numpy as np fs = 1000 f_c = 100 f_m = 5 t = np.arange(0, 1, 1/fs) message = np.sin(2 * np.pi * f_m * t) # AM signal generation below
Check the shape of arrays and scalar values in the cosine function.
Option D uses np.cos with a scalar instead of an array for time, causing a shape mismatch when multiplied by the message array.
