0
0
Signal Processingdata~20 mins

Common Z-transform pairs in Signal Processing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Z-transform Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
Output of Z-transform for a unit step sequence
What is the Z-transform of the unit step sequence u[n] = 1 for n >= 0 and 0 otherwise?
Signal Processing
import sympy as sp
z = sp.symbols('z')
X = 1/(1 - 1/z)
X_simplified = sp.simplify(X)
print(X_simplified)
A(z - 1) / z
B1 / (1 - z)
Cz / (z - 1)
D1 / (z - 1)
Attempts:
2 left
💡 Hint
Recall the Z-transform formula for the unit step sequence is a geometric series sum.
data_output
intermediate
1:30remaining
Number of terms in Z-transform of finite sequence
Given the finite sequence x[n] = {1, 2, 3} for n=0,1,2 and zero elsewhere, how many non-zero terms does its Z-transform sum contain?
Signal Processing
x = [1, 2, 3]
non_zero_terms = len([val for val in x if val != 0])
print(non_zero_terms)
A2
B3
C1
D0
Attempts:
2 left
💡 Hint
Count the number of non-zero elements in the sequence.
🧠 Conceptual
advanced
2:00remaining
Region of convergence for causal exponential sequence
For the causal sequence x[n] = a^n u[n], where |a| < 1, what is the region of convergence (ROC) of its Z-transform?
A|z| < |a|
B|z| = |a|
CAll complex z except z=0
D|z| > |a|
Attempts:
2 left
💡 Hint
ROC depends on the convergence of the infinite sum for n >= 0.
🔧 Debug
advanced
1:30remaining
Identify error in Z-transform calculation code
What error does the following code produce when calculating the Z-transform of x[n] = 2^n u[n]? import sympy as sp z = sp.symbols('z') X = sum(2**n * z**n for n in range(5)) print(X)
Signal Processing
import sympy as sp
z = sp.symbols('z')
X = sum(2**n * z**(-n) for n in range(5))
print(X)
ANo error, outputs a polynomial
BTypeError due to unsupported operand types
CSyntaxError due to missing colon
DNameError because z is not defined
Attempts:
2 left
💡 Hint
Check if the code runs and what it outputs.
🚀 Application
expert
2:30remaining
Z-transform of a shifted sequence
Given the sequence x[n] = u[n-2], where u[n] is the unit step, what is the Z-transform X(z)?
Az^(-2) / (1 - z^(-1))
B1 / (1 - z^(-1))
Cz^2 / (1 - z)
Dz / (z - 1)
Attempts:
2 left
💡 Hint
Use the time-shifting property of the Z-transform.