Tuesday, February 12, 2013


About yourself

Tell us something about yourself?
Why are you looking for a new job? What are the factors in your current job that you think are limiting you?

Diff between pointer n reference?
Can arithmetic be done with references?
Give pointers details.
Give function details.
What are functions for memory allocation and de-allocation?
Give malloc/free function example?
Explain use of malloc with respect to 2D arrays.
How to access 2D array elements initialized using pointer

What is difference between structure and class.(C++ structure and class!)
Can struct have functions? (C++ structures)
What access levels are available in structure?
What access levels are available in class?
Can a class element be initialized using pointer?
How much space a class object takes when initialized with pointer?
What is difference between overriding and overloading?
Give example for overriding and overloading?
Given two functions with same arguments but different return types, what will happen with these if they are to be put in same program?

Goldbar problem: Gold bar with max two cuts.Wage to be paid at one gold bar per day to the worker. How to do that? (cuts are 1st n 3rd position; So we have 3 bars of 1,2 and 4 units. First day pay the 1 unit bar; next give 2 unit bar and take one unit bar back; next day pay one unit bar; on fourth day give 4 unit bar and take 1 and 2 unit bars back and so on.)

Snail climbing problem: Snail climbs 5 ft up during Day and comes down 4 ft down in the night. How many days it takes to climb 20 ft? (16)

-: Got kicked out of this one :-

No comments:

Post a Comment