Motorola | Placement Papers


                                                 


1.BIRD:HIPK::EMCR: ?
ANS:ZLUP ( SEE THE VALUE IN WORD2.)
2. h i n d find the odd man out ?
ans: i (vowel)
3. word1: word2 then motorola: ?
ans: replace m o r l by respective letters in word2.
4. 6 1 2 7 12 ? 2 3 11 1
ans: add 1+2+11+7
5. O(n), O(n2), O(n3), O(n4) what is the overall complexity ?
Ans: orde of n power 4 O(n4).
6.for(i=0:!
element ?
ans: a[m-i+1]
7. out of 52 cards two are drawn consecutively. what is the probablility
to get black king &
black queen ? ans: 2/663
8.. 1,2,3,5,8, ..?
ans: 13
Difference between Macro and ordinary definition.
Difference between Class and Struct.
9. for n=2 the following fn returning value is
int fun(int n)
{
for(i = 1;i<=n;i++)
for(j=i;j<=i;j++)
sum=sum+j;
return(sum);
} Ans 6
10.. Calculate sum=1+1+2+1+2+3+1......
Ans i<=x;j<=i
5. for x=2 y=3 z=1
the following fn return
int fun(int n; int y; int z)
{
int sum
for(i=x;i<=y;i++)
for(j=1;j<=z;z++)
sum=sum+z;
return sum
}
Ans 0(check)
11. int term (int x)
{ int sum=0;int i;
for(i=0;i<=5;i++)
sum+=x; /*problel is wrong but Ans is 650.*/
return(sum);
} Ans 650
the above fn value for x=150
13.int x;
scanf("%d",x);

what is error in the above program
14.int a[] = { 1, , 9,2.......}
int *p;
p=&a[2];
printf("%s",p);
a)7 b)2 c)4407 d)none
ans: d
15.a[][] = {1,2},{3,4}
b[] [] ={
void fun(A,B)
int i,j;
for(i=1;i
for(j=1;j
sum=sum+A[j];
return sum;
}
what is wrong in the above function?
18. there are 1800 coins .one soin is defective in that .in how many minimum
times you can find that the coin is defective.
a)11
b)9
c)7
d)2
ans:7

19.there are two kind of professonal in a company software & personal.if the
personal are 15% of the total .a party is going .in a party if 50% of the
total professonal left and all are s/w then what is the ratio of the s/w
professonal left to total software professonal.
ans b) 10/17
20. what is the probability of the taking out two card one king and one quene
of black in a card packet.
ans d) 1/663
 

About

Site Info

Placements Info Copyright © 2009 Community is Designed by Bie Converted To Community Galleria by Cool Tricks N Tips