Professional Documents
Culture Documents
Mentor Graphics Placements
Mentor Graphics Placements
: Candidates Experiences
Posted By
: Fanto
}
return count;
-------i=21,22 same count. For what other values of i we get same count?
10. A matrix A[i][j] is given. If we want to add the elements of the matrix which
method is better? why
1) column wise 2) row wise
11. The tridiognal matrix is represented in linked list form. To retrive the matrix in
tridiognal from what method is used?
( four options were given)
1) 2) 3) 4)
12. Which Data structres is used for DFS?
13. If number of nodes =n. What is the min and max levels.
14. 1,3 1,4 5,7 1,3
-- --- --- --Total No. of slots =4. After 4 slots what are free remaining pages?
15. for n
f(n)
while(n)
if(n<=2)
return 1
else return f(n-1)*f(n-2)
Find order of f(n).
16. Bubble sort complexity is greater than quick srot.
(TRUE OR FALSE questions.)
17. Two binary numbers a and b its one's complement are
for a=0100
for b=1001
What is the decimal addition of a&b.