Placement Papers - Sasken

Sasken Communication Technologies Ltd.
Sasken Placement Paper (Aptitude & Technical-C Section)
Posted by :
Preeti
(52)
Paper: Sasken Placement Paper (Aptitude & Technical-C Section)

Aptitude:

1. The hours remaining in a day is one-fifth of the hours passed in the day. What is the time?

2. My successor is my uncles only brothers son who is his only kid. (some what like this)

3. A and B starts from the same point and moves in opposite direction for 8 miles and 6 miles respectively. After that A turns right and moves for another 6 miles. B also turns right and moves 8 miles. What are their respective distance from the starting point?

4. In a pet shop there are 120 eyes and 172 legs. How many birds and puppies are included in these?

5. Two cyclists are moving towards each other at 10 miles/hour. They are now 50 miles apart. At this instance a fly starts from one cyclist and move towards other and moves to and fro till the two cyclist meet each other. If the fly is moving at 15 miles/hour, what is the total distance covered by the fly? 50 80 100

6. Guru\'s draw has 14 blue socks and 14 black socks. How many socks must be taken to get a pair of socks of the same color?

C " Section:

1. Find output?
Int *ptr=&const;
 Ans: error

2. Find output?
Function(i=10);
Ans: error

3. #define SWAP(x,y) t=x;x=y;y=t;
main()
{ int x=5,y=6;
if (x>y)
SWAP(x,y);
Printf("x=%d y=%d
,x,y);
}
 note:- That the function SWAPis not within
braces

4. sum(int x)
{int t;
if(x<=1) return (1);
t=sum(x-3)+sum(x-1);
return (t);
}

if 6 is passed to the function, what is the value returned to the
calling function.
Ans:-9

5. what is int (*ptr)[]()?

6. Main()
{int a[]={0,2,4,6,8};
int *ptr;
ptr=a;
printf("%d, *((char *) ptr+4));
}
find output 8 2 4 6 Ans:- 4

7. which takes the same memory space regardless of the type of operating system?
Ans:- Char* char int float

8. main()
{ int I=3;
while(I--)
{int I=100;
I--;
Printf("%d, I);
}
}
find output?
100 99 98 99 98 97 99 99 99 error 

Ans:- 99 99 99

9. main()
{char ch;
for(ch=\'0\';ch<=255;ch++)
printf("%c, ch);
}
Ans : infinite loop

10. some program using variable b which was not initialized so
Ans:- error