downloadmela.com aptitude and written test

22
Visit www.downloadmela.com for more placement papers 2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers Here we are sharing Ibs conducted open campus recruitment in our college March 2011 in Pune, In IBS fresher jobs recruitment out of 250 students attended IBS placement 150 were selected in IBS. IBS Latest 2012-2013 selection procedures consists IBS preplacement talk IBS written test,most of the question were form technical based on your stream subjects Friends here we sharing questions based on our memory . IBS these sample placement paper questions are repeated, question will help your placement in IBS,Refer IBS previous years model written test examination questions and technical and hr,CEO interview procedures.Practice the IBS HR Interview questions so that you can be aware of the most common questions, puzzles being asked and to enhance your communication and decision making skills in order to face the Interviews with full confidence. IBS Group Discussion – GD Round Many time companies including IBS conduct Group Discussion Round also known as GD Round to measure job seekers Speaking ability, Listening to others, topic awareness and communication skills. Browse through these common GD or Group Discussion topics to have a firm grip of this selection process Practice the group discussion topics with your friends so that you have a first- hand experience. This helps to improve on your weakness areas such as hearing, listening (which most of job seeker’s lack) communication and decision making skills in order to face the Interviews with full confidence. 1. What is the output of the program void main() { char s[]="oracle is the best"; char t[40]; char *ss,*tt; while(*tt++=*ss++); printf("%s",t); getch(); } // A. oracle is the best // B. Core dump // c. Error Message // D. Goes into infinite loop Ans: B. core dump (Garbage value) 2. What is the output of the program void main() { int j[10]={9,7,5,3,1,2,4,6,9}; int i=1; clrscr(); for(;i<9;i++) printf("%d ",--j[i++]); getch(); }

Upload: christine-browning

Post on 14-Apr-2015

64 views

Category:

Documents


5 download

TRANSCRIPT

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

Here we are sharing Ibs conducted open campus recruitment in our college March 2011 in Pune, In IBS fresher jobs recruitment out of 250 students attended IBS placement 150 were selected in IBS. IBS Latest 2012-2013 selection procedures consists IBS preplacement talk IBS written test,most of the question were form technical based on your stream subjects Friends here we sharing questions based on our memory .IBS these sample placement paper questions are repeated, question will help your placement in IBS,Refer IBS previous years model written test examination questions and technical and hr,CEO interview procedures.Practice the IBS HR Interview questions so that you can be aware of the most common questions, puzzles being asked and to enhance your communication and decision making skills in order to face the Interviews with full confidence.IBS Group Discussion – GD RoundMany time companies including IBS conduct Group Discussion Round also known as GD Round to measure job seekers Speaking ability, Listening to others, topic awareness and communication skills. Browse through these common GD or Group Discussion topics to have a firm grip of this selection process Practice the group discussion topics with your friends so that you have a first-hand experience. This helps to improve on your weakness areas such as hearing, listening (which most of job seeker’s lack) communication and decision making skills in order to face the Interviews with full confidence.

1. What is the output of the programvoid main(){char s[]="oracle is the best";char t[40];char *ss,*tt;while(*tt++=*ss++);printf("%s",t);getch();}// A. oracle is the best// B. Core dump// c. Error Message// D. Goes into infinite loop

Ans: B. core dump (Garbage value)

2. What is the output of the programvoid main(){int j[10]={9,7,5,3,1,2,4,6,9};int i=1;clrscr();for(;i<9;i++)printf("%d ",--j[i++]);getch();}

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

// A. 6,2,1,5// B. 6,2,1,5,7// c. Error Message// D. core dumpAns: A. 6,2,1,5

3. What is the output of the programvoid main(){int i,j,k,n=5;clrscr();for(i=5;i>0;i--){j=1<i;k=n&j;k==0?printf("0"):printf("1");}getch();}// A. 00011// B. 11110// c. 11001// D. 11100Ans: B. 11110

4. Each side of a rectangle is increased by 100% .By what percentage does the area increase?

Ans : 300%

5. Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance?

Ans : 315 feet.

6. Perimeter of front wheel =30, back wheel = 20. If front wheel revolves 240 times. How many revolutions will the back wheel take?

Ans: 360 times

7. 20% of a 6 litre solution and 60% of 4 litre solution are mixed. What percentage of the mixture of solution

Ans: 36%

8. City A's population is 68000, decreasing at a rate of 80 people per year. City B having population 42000 is increasing at a rate of 120 people per year. In how many years both the cities will have same population?

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

Ans: 130 years

9. Two cars are 15 kms apart. One is turning at a speed of 50kmph and the other at 40kmph . How much time will it take for the two cars to meet?

Ans: 3/2 hours

10. What is the output of the program#include<stdio.h>#include<conio.h>void main(){int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);clrscr();printf("%d",i);getch();}// A. 49// B. compile error// c. 51// D. 48Ans: b

11. What is the output of the program#include<stdio.h>#include<conio.h>void main(){char *st1[3]= {"Hello","World","Oracle"};*st1=st1[2];st1[1]=*st1;free(st1[0]);free(st1[1]);clrscr();printf("%s %s %s",st1,st1[1],st1[2]);getch();}// A. Garbage Garbage Oracle// B. oracle oracle oracle// C. Hello World Oracle// D. Core Dump:cannot Print after freeing the memoryAns: D

12. what is the output of ..#include

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

void main(){char buffer[10]={"Genesis"};printf("%d",&buffer[4]-(buffer));}a. 3b. 4c. 0d. illegal pointer subtraction

13. what is the output for#includemain(){static int a[]={5,10,15,20};int * ptr=a;int ** ptr_ptr=&ptr;printf("\n %d",**ptr_ptr++);}a. 5b. 10c. 15d. 6

14. what is the value of expr..1+2/3*4+1a. 2b. 3c. 4d. 4.666666e. 5

15. If the total distance of a journey is 120 km .If one goes by 60 kmph and comes back at 40kmph what is the average speed during the journey?

Ans: 48kmph

16. A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?

Ans: 6%

17. An equilateral triangle of sides 3 inch each is given. How many equilateral triangles of side 1 inch can be formed from it?

Ans: 9

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

18. If A/B = 3/5,then 15A = ?

Ans : 9B

19. class A{public:static int a;A() {a=10};};int main(){A b;Printf(“%d”,b.a);Return 0;}Will the program compile?a yesb. no

20. What would be the output of the following program?

main(){int y=128;const int x=y;printf("%d",x);}a) 128 b) Garbage value c) Error d) 0

21. What is the difference between the following declarations?

const char *s;char const *s;Ans. No differenceIBS Software Placement Paper June 2011:-

22 If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?

main(int argc, char *argv[]){while(sizeofargv)printf("%s",argv[--sizeofargv]);}

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

a) myprog friday tuesday sunday b) myprog friday tuesdayc) sunday tuesday friday myprog d) sunday tuesday friday

23.Point out the error in the following program

main(){int a=10;void f();a=f();printf("\n%d",a);}void f(){printf("\nHi");}Ans. The program is trying to collect the value of a "void" function into an integer variable.

24 In the following program how would you print 50 using p?

main(){int a[]={10, 20, 30, 40, 50};char *p;p= (char*) a;}Ans. printf("\n%d",*((int*)p+4));

4. Would the following program compile?

main(){int a=10,*j;void *k;j=k=&a;j++;k++;printf("\n%u%u",j,k);}a) Yes b) No, the format is incorrectc) No, the arithmetic operation is not permitted on void pointersd) No, the arithmetic operation is not permitted on pointers

25. According to ANSI specifications which is the correct way of declaring main() when it receives command line arguments?

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

a) main(int argc, char *argv[]) b) main(argc,argv) int argc; char *argv[];c) main() {int argc; char *argv[]; } d) None of the above

26. What error would the following function give on compilation?

f(int a, int b){int a;a=20;return a;}a) missing parenthesis in the return statement b) The function should be declared as int f(int a, int b)c) redeclaration of a d) None of the above

27. Point out the error in the following program

main(){const char *fun();*fun()='A';}const char *fun(){return "Hello";}Ans. fun() returns to a "const char" pointer which cannot be modified

28. What would be the output of the following program?

main(){const int x=5;int *ptrx;ptrx=&x;*ptrx=10;printf("%d",x);}a) 5 b) 10 c) Error d) Garbage value

29. There are two circles, one circle is inscribed and another circle is circumscribed over a square. What is the ratio of area of inner to outer circle?

Ans: 1 : 2

30. If PQRST is a parallelogram what it the ratio of triangle PQS & parallelogram PQRST .

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

Ans: 1:2

31. A worker is paid Rs.20/- for a full days work. He works 1,1/3,2/3,1/8.3/4 days in a week. What is the total amount paid for that worker ?

Ans : 57.50

32. What is the selling price of a car? If the cost of the car is Rs.60 and a profit of 10% over selling price is earned

Ans: Rs 66/-

33. 1/3 of girls , 1/2 of boys go to canteen .What factor and total number of classmates go to canteen.

Ans: Cannot be determined.

34. The price of a product is reduced by 30% . By what percentage should it be increased to make it 100%

Ans: 42.857%

35. There is a square of side 6cm . A circle is inscribed inside the square. Find the ratio of the area of circle to square.

Ans. 11/14

36. There are two candles of equal lengths and of different thickness. The thicker one lasts of six hours. The thinner 2 hours less than the thicker one. Ramesh lights the two candles at the same time. When he went to bed he saw the thicker one is twice the length of the thinner one. How long ago did Ramesh light the two candles

Ans: 3 hours.

37. The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?

Ans: Rs 13.86/-

38. There are 6 red shoes & 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes

Ans: 6c2/10c2

39. To 15 lts of water containing 20% alcohol, we add 5 lts of pure water. What is % alcohol.

Ans : 15%

40. If PQRST is a parallelogram what it the ratio of triangle PQS & parallelogram PQRST .

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

Ans: 1:241. What is the output of the programvoid main(){char s[]="oracle is the best";char t[40];char *ss,*tt;while(*tt++=*ss++);printf("%s",t);getch();}// A. oracle is the best// B. Core dump// c. Error Message// D. Goes into infinite loop

Ans: B. core dump (Garbage value)

42. What is the output of the programvoid main(){int j[10]={9,7,5,3,1,2,4,6,9};int i=1;clrscr();for(;i<9;i++)printf("%d ",--j[i++]);getch();}// A. 6,2,1,5// B. 6,2,1,5,7// c. Error Message// D. core dumpAns: A. 6,2,1,5

43. What is the output of the programvoid main(){int i,j,k,n=5;clrscr();for(i=5;i>0;i--){j=1<i;k=n&j;k==0?printf("0"):printf("1");

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

}getch();}// A. 00011// B. 11110// c. 11001// D. 11100Ans: B. 11110

44. Each side of a rectangle is increased by 100% .By what percentage does the area increase?

Ans : 300%

45. Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance?

Ans : 315 feet.

46. Perimeter of front wheel =30, back wheel = 20. If front wheel revolves 240 times. How many revolutions will the back wheel take?

Ans: 360 times

47. 20% of a 6 litre solution and 60% of 4 litre solution are mixed. What percentage of the mixture of solution

Ans: 36%

48. City A's population is 68000, decreasing at a rate of 80 people per year. City B having population 42000 is increasing at a rate of 120 people per year. In how many years both the cities will have same population?

Ans: 130 years

49. Two cars are 15 kms apart. One is turning at a speed of 50kmph and the other at 40kmph . How much time will it take for the two cars to meet?

Ans: 3/2 hours

50. What is the output of the program#include<stdio.h>#include<conio.h>void main(){int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);clrscr();

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

printf("%d",i);getch();}// A. 49// B. compile error// c. 51// D. 48Ans: b

51. What is the output of the program#include<stdio.h>#include<conio.h>void main(){char *st1[3]= {"Hello","World","Oracle"};*st1=st1[2];st1[1]=*st1;free(st1[0]);free(st1[1]);clrscr();printf("%s %s %s",st1,st1[1],st1[2]);getch();}// A. Garbage Garbage Oracle// B. oracle oracle oracle// C. Hello World Oracle// D. Core Dump:cannot Print after freeing the memoryAns: D

52. what is the output of ..#includevoid main(){char buffer[10]={"Genesis"};printf("%d",&buffer[4]-(buffer));}a. 3b. 4c. 0d. illegal pointer subtraction

53. what is the output for#includemain(){static int a[]={5,10,15,20};

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

int * ptr=a;int ** ptr_ptr=&ptr;printf("\n %d",**ptr_ptr++);}a. 5b. 10c. 15d. 6

54. what is the value of expr..1+2/3*4+1a. 2b. 3c. 4d. 4.666666e. 5

55. If the total distance of a journey is 120 km .If one goes by 60 kmph and comes back at 40kmph what is the average speed during the journey?

Ans: 48kmph

56. A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?

Ans: 6%

57. An equilateral triangle of sides 3 inch each is given. How many equilateral triangles of side 1 inch can be formed from it?

Ans: 9

58. If A/B = 3/5,then 15A = ?

Ans : 9B

59. class A{public:static int a;A() {a=10};};int main(){A b;Printf(“%d”,b.a);

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

Return 0;}Will the program compile?a yesb. no

60. What would be the output of the following program?

main(){int y=128;const int x=y;printf("%d",x);}a) 128 b) Garbage value c) Error d) 0

60 What is the difference between the following declarations?

const char *s;char const *s;Ans. No difference

IBS latest selection procedure of campus recruitment for grdauates freshers jobs,IBSlatest 2012-2013 sample placement paper written test question with answers,IBS Quantitative aptitude, probablity questions, etc.,IBS recruitment process consists IBS written test Technical and hr interviewIBS group disussion,friends review IBS previous years solved model written test question papers and IBS placement experiencesIBS 15 Quantitative aptitude Questions with answers1 Deepak walked at 4 kmph for a certain part of his journey and took an auto, travelling at 25 kmph for the rest of the journey. If he took 42 minutes for the entire journey, what part of the journey did he walk given that his average speed for the entire journey was 10 kmph?a. 1 km b.2 km c.4 km d.5 kmAns: (b).Speed is 10 kmph; Time is 42 minSo, total distance = 42/60*10= 7 kmLet x km be the walking distanceTherefore, x/4 + (7-x)/25 = 42 min.= 7/10 hours2 1x= 70-28=42x= 2 km.

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

2.9. 17, 88, 176, 847, 1595, ____.a. 7542b. 7546c. 7548d. 7550

Solution: The digits in each number are reversed and the number so formed is added to the original number.17 + 71 = 88; 88 + 88 = 176; 176 + 671 = 847 and so on.Similarly, 1595 + 5951 = 7546.

3. 10. 28, 38, 49, _____, 70, 77a. 58b. 64c. 66d. 62Solution:28+10, 38+11, 49+13, _____+8, 70+7, 77The sum of the digits in each number is added to the number to get the next number in the series.28 2 + 8 = 10 and 28 + 10 = 38.38 3 + 8 = 11 and 38 + 11 = 49.Similarly,, 49 49 + 13 = 62.

4 A fox spots a rabbit 100m away and starts chasing him. The rabbit realizes this after two minutes and starts running in the opposite direction to a burrow, which is 40m from where he is right now. Rabbit covers 1m in 3 leaps whereas the fox covers 3m in 4 leaps. At what speed the rabbit should run so that he just manages to reach the burrow if the fox is running at 20 m/min?

a. 24 leaps/min b. 18 leaps/min c. 16 leaps/min d. 180/11 leaps/min.In two minutes the fox will cover 2*20= 40 metres.Now, the distance between the fox and rabbit= 100-40= 60 metres.Now, since they both should reach the burrow simultaneously rabbit will run 40 metres where as the fox has to run 60+40= 100m.Time taken by fox to run 100m= 100/ (20*3/4)= 20/3 minute.Rabbit has to run 40 metres in 20/3 minute.Therefore, his speed= 40/(20/3)= 6 metres/min.As the rabbit covers 1 metre in 3 leaps his speed will be 6*3= 18

5. Mr. Dua invested money in two schemes A and B offering compound interest @8p.c.p.a and 9 p.c.p.a respectively. If the total amount of interest accrued through two schemes together in two years was Rs.4828.30 and the total amount invested was Rs.27000. What was the amount invested in Scheme A?

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

6. There is a road beside a river. Two friends started from a place A, moved to a temple situated at another place B and then B and then returned to A again. One of them moves on a cycle at a speed of 12km/hr, while the other sails on a boat at a speed of 10km/hr. If the river flows at the speed of 4 km/hr, which of the two friends will return to place A first?a. boat sailor b. cyclist c. both d. cannot determineAns:a.

7 1950 January has exactly 4 Saturdays and 4 Wednesdays. Which day of the week Indian Republic came into existence.?a) Saturday b) Wednesday c) Thursday d)FridayAnswer : Thursday

8. Two buses start from the opposite points of a main road, 150kms apart. The first bus runs for 25kms and takes a right turn and then runs for 15 kms. It then turns left and runs for another 25 kms and takes the direction back to reach the mai road. In the meantime, due to a minor breakdown, the other bus has run only 35 kms along the main road. What would be the distance between the two buses at this point?a. 65kms b. 75kms c. 80 kms d. 85kmsAns:a.

9.. A person is celebrating his birthday. On his birthday cake, the number of candles are equivalent to his present age. This time the number of candles on cake is six times the number of years since his marriage plus two candles. The person married at the age of 27. What is the present age of the person ?a)42 yearsb)37 yearsc) 35 yearsd) 32 years

10. I take a four digit number and subtract the sum of its digits from it. In the result I strike off one of the digits and the remaining three digits of the result are 2, 4 and 6 (not necessarily in that order). Find the digit struck off by me. a)3b)4c)5d)6

11. Shivani started her homework assignment at a particular time between 3 and 4’O clock. When she completed her assignment between 5 and 6’O clock, she found the hour and minute hand positions to be

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

the same as those of the minute and hour hands respectively when she started her assignment. How long did she spend on the assignment? (Clock)112 7/13 minutes108 3/13 minutes109 6/13 minutes110 10/13 minutes

12 If the time shown by a clock is 2:27, then what time does its mirror image show?a.10:33 b. 9:33 c. 9:37 d. 10:23Ans: Option (b).

13 The probability that a man hit the target is ¾. He tries five times. The probability that he will hit the target at least three times, isa.292/364 b.371/464 c.471/502 d.459/512Ans:Option (d).

14 A year picked randomly from 1900 to 2000(including both). What is the probability that it has 53 Sundays?a)64/350 b) 5/101 c)128/707 d) 18/101-ans

15.. In a class of 18 students the average age of the students with the first twelve roll numbers is 15 years and that of the last 12 is 16 years. If the average age of the students with the middle six roll numbers is 14 years, then what is the average age of the entire class?a) 15 years b)16 years -Ansc) 15.5 years d) 16.5 years

IBS Latest Technical and HR interview Questions with Answer, Previous year questions from c, c++, java, Data structure, DBMS, HR interview questions with General tips and recommended suggestionsTechnical interview questions depend on your stream subject ............. for Electronics and communication, computer science, Information technology, Electrical engineering (EEE,ECE,IT,CSE) Questions from microprocessor, UNIX, DBMS, java, ASP.Net, C, C++ ,Data structure ,operating system..............

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

What is an object?

Object is a software bundle of variables and related methods. Objects have state and behavior.What do you mean by inheritance?

Inheritance is the process of creating new classes, called derived classes, from existing classes or base classes. The derived class inherits all the capabilities of the base class, but can add embellishments and refinements of its own.What is Boyce Codd Normal form?

A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a-> , where a and b is a subset of R, at least one of the following holds:* a- > b is a trivial functional dependency (b is a subset of a)* a is a superkey for schema R

What is virtual class and friend class?

Friend classes are used when two or more classes are designed to work together and need access to each other's implementation in ways that the rest of the world shouldn't be allowed to have. In other words, they help keep private things private. For instance, it may be desirable for class DatabaseCursor to have more privilege to the internals of class Database than main() has.

How do you find out if a linked-list has an end? (i.e. the list is not a cycle)

You can find out by using 2 pointers. One of them goes 2 nodes each time. The second one goes at 1 nodes each time. If there is a cycle, the one that goes 2 nodes each time will eventually meet the one that goes slower. If that is the case, then you will know the linked-list is a cycle.

What is the difference between realloc() and free()?

The free subroutine frees a block of memory previously allocated by the malloc subroutine. Undefined results occur if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will occur. The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines. Undefined results occur if the Pointer parameter is not a valid pointer.

What is function overloading and operator overloading?

Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This capability is called function overloading. When an overloaded function is called, the C++ compiler selects the proper function by examining the number, types and order of the arguments in the call. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

data types.

Operator overloading allows existing C++ operators to be redefined so that they work on objects of user-defined classes. Overloaded operators are syntactic sugar for equivalent function calls. They form a pleasant facade that doesn't add anything fundamental to the language (but they can improve understandability and reduce maintenance costs).

What is the difference between declaration and definition?

The declaration tells the compiler that at some later point we plan to present the definition of this declaration.E.g.: void stars () //function declarationThe definition contains the actual implementation.E.g.: void stars () // declarator{for(int j=10; j > =0; j--) //function bodycout << *;cout <<>

What are the advantages of inheritance?

It permits code reusability. Reusability saves time in program development. It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.

How do you write a function that can reverse a linked-list?

void reverselist(void){if(head==0)return;if(head->next==0)return;if(head->next==tail){head->next = 0;tail->next = head;}else{node* pre = head;node* cur = head->next;node* curnext = cur->next;head->next = 0;cur-> next = head;

for(; curnext!=0; )

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

{cur->next = pre;pre = cur;cur = curnext;curnext = curnext->next;}curnext->next = cur;}}

What do you mean by inline function?

The idea behind inline functions is to insert the code of a called function at the point where the function is called. If done carefully, this can improve the application's performance in exchange for increased compile time and possibly (but not always) an increase in the size of the generated binary executables.

Write a program that ask for user input from 5 to 9 then calculate the average

#include "iostream.h"int main() {int MAX = 4;int total = 0;int average;int numb;for (int i=0; icout << "Please enter your input between 5 and 9: ";cin >> numb;while ( numb<5>9) {cout << "Invalid input, please re-enter: ";cin >> numb;}total = total + numb;}average = total/MAX;cout << "The average number is: " <<>return 0;}

What is public, protected, private?

Public, protected and private are three access specifiers in C++.Public data members and member functions are accessible outside the class.Protected data members and member functions are only available to derived classes.Private data members and member functions can’t be accessed outside the class. However there is an exception can be using friend classes.What is scope & storage allocation of global and extern variables? Explain with an exampleWhat are the advantages of using unions?Tell how to check whether a linked list is circular.

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

What is polymorphism?What is virtual constructors/destructors?What are the advantages of inheritance?What is the difference between an ARRAY and a LIST?What is a template?What is the difference between class and structure?What is encapsulation?What is a COPY CONSTRUCTOR and when is it called?Program: To calculate the factorial value using recursion.Question from JavaWhat is skeleton and stub? what is the purpose of those? Stub is a client side representation of the server, which takes care of communicating with the remote server. Skeleton is the server side representation. But that is no more in use… it is deprecated long before in JDK.What is the final keyword denotes? final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.What is the significance of ListIterator? You can iterate back and forth.What is the major difference between LinkedList and ArrayList? LinkedList are meant for sequential accessing. ArrayList are meant for random accessing.What is nested class? If all the methods of a inner class is static then it is a nested class.What is inner class? If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class.What is composition? Holding the reference of the other class within some other class is known as composition.What is aggregation?It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.What are the methods in Object? clone, equals, wait, finalize, getClass, hashCode, notify, notifyAll, toStringCan you instantiate the Math class?You can’t instantiate the math class. All the methods in this class are static. And the constructor is not public.What is singleton? - It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class. For eg., public class Singleton { private static final Singleton s = new Singleton(); private Singleton() { } public static Singleton getInstance() { return s; } // all non static methods … }

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

IBS Latest HR interview Question, GD topics, Basic Tips with previous year Questions, IBS interview questions for new campus recruitment 2012Top 10 Common HR Interview Questions with Explanation

A job interview is one of the things that you need to get right on the first try. It is a make or break deal that will ultimately decide your career's future. People often make the mistake of coming unprepared for an interview, thinking that their resume and experience is enough to get them through. This overconfidence often leads to disastrous consequences, of course. What they do not know is that these questions are designed to accurately measure an applicant's suitability for a job. The questions look easy enough on the surface, but they require profound and well thought answers. Tips before interview: *Get familiar with your CV.*Prepare & practice a self introduction and make it more effective.*Identify your strength, weakness, Skills, Achievements and Goal*Make subject knowledge.*Aware about the company- vision, Selection pattern, salary , Job post etc...*Obtain a list of practice interview questions and short answers .Practice! Practice! Practice!*Stand in front of a mirror and rehearse your answers*Be relaxed and be yourself

1 Tell me about yourself.An often overlooked question that will set the tone for the rest of the interview. This is where an interviewer gets the ideas that he or she will use to formulate the questions to follow. Don't narrate your biography, just a few interesting facts about your work experience, education, interests and your life in general would do. Your main goal in a job interview is to sell yourself. Do not come unprepared. Though companies have different work environments and hiring processes, the questions used in interviews are more or less the same. The best thing to do is to practice answering these commonly asked questions so you can answer them without batting an eyelash. Be confident and always put your best foot forward so prospective employers can notice you quickly.

2.Why should I hire you?This is one of the most important questions to be asked during an interview, and it is not to be answered with some general, cliched statement. Do not mention anything that is already included in your resume. Mention facts about yourself that would set you apart from other applicants. Tell them why you are the best candidate for the job.

3.Did you ever find yourself in a difficult situation?How did you handle it? Interviewers use this to subtly measure a job applicant's perception of difficulty, and how he or she works under pressure. It is also an accurate gauge of a person's problem-solving skills. Be ready to provide a concrete answer wherein you clearly demonstrated control and competence in handling work-related challenges. 4.What do you think your professors/teachers/co-workers would say about you? When asked, this question could mean that a reference check is close at hand. Contact your references before an interview and ask them what they have to say about you. Stay positive when answering and only say nice things about yourself. What are your weaknesses?The worst answer to this is saying that you have no weaknesses at all. People all have weaknesses, and this question aims to see if you are aware of them and if you are currently working on ways to improve yourself. It is best to answer this question as honestly as possible.

What are your strengths?This is an excellent chance for interviewees to shine. Make a list of some of your marketable characteristics (excellent communication skills, ability to handle pressure well, capacity to beat strict deadlines, etcetera) beforehand and pick some of the best ones that you have complete mastery over. Do not exaggerate your capabilities. It is best to provide examples and situations where you have utilized these skills. Just be sure that these strengths are relevant and suited to the job being applied for. Tell me About your hobbies?Explain your project?your favorite computer language ?Why would you like to work in this company?Where do you see yourself two to five years from now?

Visit www.downloadmela.com for more placementpapers

2012 Placement Papers 2010 Placement Papers 2011 Placement Papers 2009 Placement Papers

How much salary are you expecting?Do you have any questions to ask me?Latest GD TopicsIs advertisement wastage of resourcesIs younger generation smarter than their parents"beauty contest a humiliation to women"