# Sasken Communications Aptitude Questions on 2012

Posted on :23-03-2016

Q1. How many 2 digit numbers are there which have 8 as the unit number in its square.

(a) 3
(b) None
(c) 2
(d)1

Q2. B is 8km East of A. C is 6km North of B. D is 12km East of C. E is 16km North of D. What is the distance b/w A and E.

(a)20km
(b)22km
(c)18km
(d)30km

Q3. x+y = z Then

Q4.Two people were walking in opposite directions. both of them walked 6 miles forward then took right and walked 8 miles. how far is each from starting positions?

a) 14 miles and 14 miles
b) 10 miles 10 miles
c) 6 miles 6 miles

Q5. A person has certain number of cows and birds. they have 172 eyes and 344 legs. how many  cows and birds does he have?

Q6. A person has 14 red socks and 14 white socks in a drawer. what is the minimum number of  socks that he should take to get a correct pair?

Q7. When a number is multiplied by 13,it will become greater to 105 by an amt with which it is lesser  to105 by now. what is the number

Q8. When asked what the time is, a person answered that the amount of time left is 1/5 of the time already completed. what is the time?

Q9. When I become as old as my father is now, I will be 5 times the age of my son. and my son will  be 8 yrs older than what I am now.father+my age=100.how old is my son now?

Q10. Two peoples on cycles are traveling at 10 miles / hour. when they reach a distance of 50 miles, a housefly lands on the first cyclist and then flies to the other and so on…at a speed of 16  miles/hour. what is the distance covered by fly before cyclist meet?

Q11. My successors father is my fathers son. and I dont have any brothers or sons. who is my successor?

a) nephew
b) niece
c) daughter
d) myself

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

Q13. My successor is my uncles only brothers son who is his only kid.

Q14. 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 8miles. What are their respective distance from the starting point?   10,10

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

Q16. 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 twocyclist 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?          14  15  13  16

COMPUTER SCIENCE:

Q1. Which of these checks for structural errors of a language

a) lexical analyser
b) parser
c) intermediate code
d) code optimisation

Q2. Threads in the same process share the same

a) data section
b) stack
c) registers

Q3.The depth of a binary tree…

a) nlogn(base 2)
b) n*n
c) n

Q4. A program computing log(n) accepts 1000 inputs its execution time is 110 ms…when it doubles  n to 2000 inputs..it becomes 120…..and what will be for 4000

a)130
b)140
c)150

Q5. Algorithm to find the balancing of paranthesis was given and output had to be obtaines…using  stacks…easy yaar….

Q6. Which of the following is non preemptive fcfs round robin shortest job first

Q7. Problem to find the avg waiting time of sjf..given the burst times of each process

Q8. Which of the following may be implemented using a stack parenthesis matching parsing local variables stored in runtime all the above

Q9.Which of the foll data structures can be randomly accessed givin loc

4.both single and double linked list

C SECTION

Q1. Find output

Int *ptr=&const;

ANS: error

Q2. Find output

Function(i=10);

ANS:: error

Q3. What is the output?

#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=%dn ,x,y);
}

Q4. What is the output?

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

Q5. What is int (*ptr)[]()?

Q6.

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

Q7. Which takes the same memory space regardless of the type of  operating system?

Char*    char    int    float

Q8. Find output?

main()
{ int I=3;
while(I–)
{int I=100;
I–;
Printf( %d , I);
}
}

100  99  98     99  98  97     99  99  99         error

ANS:  99  99 99

Q9.

main()
{
char ch;

for(ch= 0 ;ch<=255;ch++)

printf( %c , ch);
}

ANS: infinite loop

Q10. Some program using variable b which was not initialized so

ANS: error

Q1. If u have a linked list library, how do u design stack and queue using it; write pseudocode.

Q2. What are static variables and functions?

Q3. Write code in C to count the number of 1s in a character (1byte).

Q4. What is pre-order, post-order, in-order; write code to print post-order.

Q5. Can u construct a binary tree given its in order and postorder details. Is it necessary or sufficient to construct tree. Asked an example to do in both ways.

Q6. If recursion is not used to print post order, what other data structure u use

ANS: Stack

Q7. Can u use stack always in place of recursion?

ANS: Yes

Q8. What are meta characters?

Q9.  Write a piece of code to insert a node in a linked list.

Q11.  About Operating System – Semaphores

Q12.  About Computability (eg:- finding infinite loop), Complexity of
algorithms

Q13.  What does compiler and assembler do?

Q14. They asked grep command in Linux. How do u search ‘n’, using grep, in a file.

Q15. They may ask some other commands if u say u r familiar and recently been using linux.

Q16. About Networks? OSI reference model.

Q17. What does transport layer do?

Q18. TCP belongs to which layer?

Q19. IP belongs to which layer?

Q20. Where is error correction done?

Q21. What is a connection oriented/ connection less transmission?

Q22. What is meant by reliable transmission protocol? why is it called so?

Q23. What is flow control and where it is done?

FreshersLive - No.1 Job site in India. Here you can find latest 2020 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.

 ✖