Beruflich Dokumente
Kultur Dokumente
Char*c = Hello
Char d[6];
While(*c++ = *d++)
2) What is pigeonhole principle?
3) solve: d2y+4dy+20y=u
4)
5)
6)
7)
8)
9)
10)
11)
12)
13)
14)
15)
16)
17)
18)
19)
20)
21)
22)
23)
24)
25)
26)
27)
28)
29)
30)
solve: 8s/3-3/(2s+2)-1/(6s+18)
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
A lot of code snippets asking to predict output
How to check if a number can be expressed in powers of 2? Using bitwise op
OO model for a college including professor students
using a jar file in a project,
construct a queue in Java.
Mother Father are two classes Child is child - how to implement this in Java?
Arraylist or Vector?
How to access the static methods of a class? - involving reflections.
Will a code written on a mac run on windows machine? Why or why not?
Thread class in Java.
Difference between document.ready() and window.onl0ad() javascript function.
Does one prefer char array or string? Why? (c++)
One instance of using Exceptions? (c++)
Why have pointers at all?
Abstract class vs Interface?
Difference between malloc and calloc, syntax of each, and how calloc is used
inline function, and use of it
difference between #define and const
some code that changes value of const, and asked what would happen
MATLAB
-2 matrices of size 3x3 and 4x3 how will you concatenate, and when the sizes are same
-whats the difference between A^2 and A.^2
-how will you plot points (2,11) (2,22),(3,33) on a plane marked with green star, ( these represent
X-y coordinates)
-whats the meaning of operator ~.
Whats a copy constructor?
- Class student {
char * name;
}
31) what happens when you initialize -student s1;?
32) what default methods compiler substitutes?
33) Whats the difference between Student s1=s2 and s1=s2? (first will invoke copy constructor and
second will invoke operator)
34) lets say class student has s1, s2 and s3 objects. is s1=s2+s3 legal in C++?
}
Definite integral and definite integral
Order of differential equation
Left inverse
Calculate the eigen values of matrix [3, -1;1, 5]
Left inverse
What is the meaning of static, extern, private constructors etc.
Typecasting
main()
{
const float pi = 3.14;
pi = 5.40;
printf(%f,&pi);
}
.
int main(void) {
int a = 5;
float b = a/2;
printf("b=%f",b);
return 0;
}
84) Object oriented design for chess game
85) How many signed integers can be represented using 32 bits
AU(B ^ C)=?
A problem on (AUBUC) formula
Some question on Finita Automata and NFA
C
What is the procedure to find an even number, other than the mod operator
What is the limitation of mod operator in C
What is a UNION datatype
76)
77)
78)
79)
80)
81)
82)
83)
C++
C++
What is an Abstract Class and its significance
Runtime polymorhism
Static keyword
86)
87)
88)
89)
90)
Java
Difference between JRE JDK and JVM
What is a hashmap
is java Call by value or call by reference( Good question, I was asked this question in multiple
interviews)
OOPs concepts
Explain how do you implement queue using stack?
Calculate a vector perpendicular to vector a and b
Given velocity find acceleration
Integral definition
Inverse or transpose of a matrix
91)
92)
93)
94)
95)
96)
97)
98)
140)
How to concatenate 3*3 and 4*3 matrix
141)
Primitive data type in java
142)
Difference between A^2 and A.^2
143)
Whats wrong with: m = int[10]; for (i=0;i<=10;i++) m[i] = 1;
144)
a = [1 2 3; 4 5 6]; b = [1 2; 3 4]; what is a(b)?
145)
what is a connected graphand what is the minimum number of edges for a connected
graph?
146)
how do you search in a binary tree?
147)
what is the run time on balanced tree and what is a regular binary tree?
148)
difference between <stdio.h> and stdio.h
149)
40 students, all take atleast one engish or one german. 12 take both, 22 german.how many
of them took English.
150)
If two different process try to access the same memory location .how to make sure that
does not happen.
151)
L'hopital's rule
152)
What is the difference between typedef struct and struct
153)
How to read and write to a file in c