# AgreeYa Previous Years Questions

Posted on :06-04-2016

APTITUDE:

Q1. A, B, C worked together, A can do the work in 12 days, B can do in 9 days. Profit earned was divided in the ratio 4:3:2. C can do the work in how many days?

Q2.  In a right angled triangle, 2 sides were given of 3 and 5 cm, we were supposed to find out the area of the inner circle inscribed inside the triangle.

Directions for questions 3 to 5:
If a cube is painted on all faces and cut in 125 cubes then,

Q3. What is total number of cubes painted on two sides?

a) 64
b) 36
c) 48
d) 44

Q4. What is the total number of cubes painted on one side?

a) 54
b) 66
c) 64
d)16

Q5. What is the total number of cubes not painted on any side?

a) 66
b) 27
c) 25
d) 30

Q6. ax2 + bx + c = 0, dx2 + ex + f both have equal roots then which conditions will get satisfied?

TECHNICAL:

Q7. Member Function can be

a) are always public
b) are always private
c) can be any one of them.

Q8. List of numbers were given and they were sorted in 4 iterations:

11 21 55 65 41 31
11 21 55 65 31 41
11 21 55 65 31 41
11 21 31 41 55 65

Which sorting algorithm is used here?

a) Merge sort
b) Selection sort
c) insertion sort
d) quick sort

ANS: a

Q9. In inheritance object agr destructed by---?

Q10. Virtual constructor exit or not?

Q11. RTTI stands for?

Q12. int * const ptr

a) *ptr++ is legal
b) ++ptr
c) both are illegal
d) none

Q13. --------- allows to group our classes objects and methods/functions.

Q14. What are the ways of writing templates?

Q15. Which function can access private and protected data members?

Q16. Which condition is the safest to use with any data type?

a) if(x!=0)
b) if(x==0)
c) if(!x)

Q17. What concept is implemented in C out and C in?

Q18. How persistent objects are implemented in C++?

a) temporary
b) Permanent

Register