Sap labs placement paper

** Company: ** Sap labs

The paper was set by merittrac. There were 2 sections.

1st section had general aptitude questions and the 2nd section had ques based on C and data structures.

Section 1:

30 ques :30 mins(time was not sufficient)

I remember only a few questions.

Sheela gets salary, along with an increment given at the end of each year.After 4 years from her date of joining she gets Rs.15,000 and after 10 years she gets Rs.18000.wat is her salary when she joined?

There were few elephants and an equal number of mahouts.Half of the mahouts were sitting on the elephants and half were walking.Totally there was 84 legs,hw many elephants were there?

some data sufficiency ques

one question based on venn diagram

Usual merittrac pattern,some 7 ques like, if * stands +,- stands for /,+ stands for * and / stands for –,then 24+7-6*8/2=?

Section 2:

1).main()

{

int i =0;

printf(“In the name of lord”);

for(i =0;i<5;i++) main(); } 2)struct one { int j; char m; union two { int a; char b; float c; struct three { int x; float y; char z; };};}; wat is the size of union?

3).fun( int a,int b) { /*some code*/ } fun (a.b) int a,b; { /*some code*/ } a)Both functions are in ANSI notation b)1st one in ANSI & 2nd in K& R notation(Ans) c)1st in K&R,2nd in ANSI d)Both in K&R

4).An array of numbers were given and sorted using insertion and selection sort, options will b given, correct one has to be chosen

5)Programs based on Binary search tree,binary tree were given Results wil b out by next week.

Sap labs placement paper