May June 2025
NUMERICAL AND SIGNAL PROCESSING PRACTICE THROUGH PYTHON
Anna University
1 question papers available. Select an examination session to view its question paper.
NUMERICAL AND SIGNAL PROCESSING PRACTICE THROUGH PYTHON
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
Write a function square that takes a number a s input and returns its square. 3
0 eligible source papersImplement a Python function to time-shift and time-scale a discrete-time 3 signal. U s e the function to shift a sinusoidal signal x[n]=sin((2TT5n) by 2 units to the right and scale the time axis by a factor of 0.5. Plot the onginal and transformed signals.
0 eligible source papersWrite a program that takes three numbers a s input and uses conditional 3 statements to determine and print the largest of the three numbers.
0 eligible source papersWrite a Python program using NumPy to solve the system of linear equations 3 2x+3y=8 and 3x+2y=7 by matrix inversion.
0 eligible source papersWhat will the following Matplotlib code do? 3 plt.plot([1, 2], [3, 4], label="Line A") plt.legendO pIt.showO
0 eligible source papersWhat will len(open("file.txt", "r").read().splitlines()) do when executed? 3 . 7 Given the matrix A, What does the matrix P represent in the following code? 3 import numpy a s np from scipy.linalg import lu A = np.array([[3, 1,2], [6, 3 , 4 ] , [ 3 , 1 , 5 ] ] ) P, L, U = lu(A)
0 eligible source papersWhat will the following recursive function output? 3 def recursive_sum(nums): if len(nums) == 0: return 0 return nums[0] + recursive_sum(nums[1:]) numbers = [ 1 , 2 , 3, 4] print(recursive_sum(numbers))
0 eligible source papersWhat does the following code output? 3 keys = ['a', 'b', 'c'] values = [ 1 , 2, 3] my_dict = {k: v*2 for k, v in zip(keys, values)} pnnt(my_dict) squared_values = [v**2 for v in my_dict.values()] print(squared_values)
0 eligible source papersWhat will the following code output? 3 name = "Alice" age = 2 5 info = f My name is {name} and 1 am {age} years old." print(info.replace("Alice", "Bob").split(""))
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.