Sunteți pe pagina 1din 5

Partial fraction expansion

whats wrong with: m = int[10]; for (i=0;i<=10;i++) m[i] = 1;


a = [1 2 3; 4 5 6]; b = [1 2; 3 4]; what is a(b)?
Draw the derivative of a simple function on the board.
Inverse z transform s functions
How plot to something as a function of time
How to plot 2 sin waves in Simulink.
How to set the color of one line in a plot red?
What is gcf? (matlab)
Find the eigenvalues and an eigenvector of a 2x2 function.
How do you check that the eigenvector is right?
Find the projection of one 2D vector onto another.
Write a function to open a file and write a word to it.
In matlab, what does char(vector) do?
For a given vector with integers in it, what does char of that vector output?
Equation for gradient
Difference between B and B+ tree.
What is mutex, semaphore?
What is best sorting algorithm, its time complexity?
Fibonacci which skips one digit eg: 5!=5x3x1
Exceptional handling
Function overriding
Inheritance concepts
Race condition,
life stages of thread
Birthday Paradox problem
How to check if a number can be expressed in powers of 2?
Using bitwise op

OO model for a college including professor students etc


What is the minimum sampling rate required to digitize the following signal such that the signal can
be recovered without aliasing: 3cos600t.
1. Linkedlist operation
2. Sum of n numbers
3. Types of scheduling
4. How would you interface RTOS with the real world
5. precautions to using pointers
6. How would you open an m file from the command
What is the runtime of a recursive fibonacci sequence generator.
Hash map and Hash table. Difference?
Talk about the differences and similarities between a static array, a dynamic array, and a linked list
How do you compute factorial in sub-linear complexity?
types of storage classes, differnce betwenn a null pointer and a void pointer
difference between static and dynamic polymorphism,
describe some classes you would use in a hospital application.
construct a queue in Java.
Python: Are python strings mutable,
how to create a constructor in Python
Mathematics: Max positive and negative value of 32-bit signed integer,
probability that in a room of 400 people, at least 2 share a birthday.
What is the inverse of the following matrix, [3,2; 1, 1]
1) Difference between virtual and pure virtual functions?
2) What can we do to increase the efficiency of the code and eliminate warnings when compiling?
3) How can the high level code be changed to machine level code?
4) What is the static variable equivalent in MATLAB?
5) What are 6 special member functions in a class?

6) What is data alignment?


7) What are the differences between stack, heap and a register? How to store a value in a
register?
What&#039;s the difference between an interface and an abstract class?
Find eigenvalues and eigenvectors of a 2x2 matrix
Find the maximum area of a rectangle under a curve. You have to write the expression for
y from the equation of the curve. Area =x*y. Differentiate, equate to zero and find the
value of x for which the area is maximum. Then take the second derivative and check if
the value of the function is &amp;lt;0
Write a recursive function to determine the factorial/fibonacci numbers
Write pseudo code for any sorting algorithm
Write an algorithm to draw a section of an arc if the topmost is a point (y,0)
Some inheritance questions
They gave me a snippet of a code that copies one string to another and asked me what
the function does
Pointer questions like *++q and ++*q
what is copy constructor,
Eigen Value, Eigen Vector,
Static and Dynamic Polymorphism.
Does one prefer char array or string?Why?
One instance of using Exceptions?
Python 1. Is Python strongly typed? 2. What does it mean when a language is
dynamically typed? 3. Dictionaries? 4. Libraries?
OS Threads Mutex Critical section.
OOPS Why have pointers at all?
Abstract class vs Interface?
400 people in the room what is the probability that they will share a birthday?
Complexity of multiplication of 2 nxn matrices? Order notation
what is Vectorization,
handle to graphics,
nested function,

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

S-ar putea să vă placă și