Documente Academic
Documente Profesional
Documente Cultură
MATLAB what is persistent variables? what is preallocation? What is stepcase in simulink? How to
change the path of a variable.
how to compile a Matlab file to a C file? 2. How to justify the converted C file is well organized?
Circular convolution,
vector and scalar product,
Z transform,
Nyquist criterion
PSD, IIR and FIR
---DSP -What is PSD and what is its relationship with autocorrelation? -h[n] =
[1,2,3,4,5] i/p frequency= 100 HZ, system is LTI. what is the o/p frequency? same i/p
frequency, now h[n]= [1,4,9,16,25], what is o/p frequency? I answered it and he
asked how? -What is the relationship between bandwidth and time duration? -Given
a signal spectrum that is valid in range of -pi/2 to pi/2. What is the range of frequency
when the signal is oversampled by a factor of 4? -What is the relationship between Discrete Fourier
Transform and Z-transform? -y[n] = x[n^2]. system stable? causal? linear? I answered it then he
asked how? What is convolution? Questions about sampling theorem, FIR and IIR. What is
autocorrelation
--C++ -What is virtual constructor? -What is virtual function? -Given a code with destructor and
asked for the output? -Can you define a function in c++ structure? -Default access type of c++
structure? -How do you concatenate two strings? What is polymorphism. What is the default
property for a variable and a function defined in a class(public, private or proteced)
---Matlab -Matlab code to clear workspace variable? -There are 100 variables in the workspace. How
to delete all variables except 2? -Matlab code for matrix concatnation? -What does '@' symbol mean
in Matlab and where do we use it? -Difference between cell array and structure in matlab? Plot
scattered point with given properties. Transpose
---Math -Given a differential equation and asked for degree and order. -Given a matrix and asked for
eigenvalue and eigenvector.
Given a random array of numbers. How do you sort them? Select any sorting
algorithm and write the pseudo code.(C) I implemented Merge Sort with merge
subroutine I forgot base case ,I added later 2.1/8th of a circle.(NS) I gave semi
optimum solution.There was a better way without using trignometric functions C++
2.Given inheritence hierarchy -which of the following is valid?(C) A / \ B C / D void alpha(B *arg)
A*Aptr =new A; B*Bptr=new B;(valid) C* Cptr=new C; D*Dptr=new D;(valid) 3.What does the
following line of code do?(C) char*c ="Hello" char d[6]; while(*c++=*d++); Matlab What is primary
function and subfunction?(C) What is difference between nested function and subfunction?(C)
nested functions-can access variables declared inside main functions. What is private function?(C)
inside private folder What is hf=gca;(DA) gui returns current axes handle What is event function call
back?(DA) How to access data members of a structure? What are cell arrays? C1={} C2={} what is
C1() what is C1{} What is this code doing mystruct =struct('field1',{1,2,3}... 'field2',{4,5,6s}); MATH
1.Plot the derivative of the function(C) 2.Find the partial fraction of given expression(C) 3.Find the
gradient of the given function.(C) Controls Systems 1.Explain lead and lag compensators(C)
2.Linearise the system(C) 3.Find the Transfer function from the state space equation.(C) 4.Given x1
and x2 dot ,find the Lyapunov equation