Huawei Placement Paper(QuestionPaper) : 30213
HUAWEI
Aptitude
1.Following some pattern, understand the table and find the answer?
JANUARY 20
APRIL 10
MAY 5
NOVEMBER 15
JULY ?
2. Find the missing number: 1 10 3 9 5 8 7 7 9 6 ? ?
3. If it was two hours later, it would be half an hour as long until midnight as it will be if it were an hour later. What is the time now?
4. In a city, 80% speaks English, 70% speaks Hindi and 10% do not speak both. It was found that 162 people talk both. How many are there in the city?
5. Find the missing number: 0 6 24 X 120
6. Which is not 'lean year': 1900 2000 1952 1980
7. Find the missing number: J, ?, M, ?, M, J, ?, A, S, O, N, ?
8. There are 27 pearls in a bag. One among them is less in weight. You have been given 2 pan weight machine. In how many trials, you will be able to find the defected one? 4 3 11 13
9. Direct distance between A & B is 200. Direct distance between B & C is 200. Direct distance between C & A?
10. There are 30 socks in a bag. 30% is in blue color. What is the probability to take two blue socks?
11. In a ground, there are two poles in 7 ft & 12 ft respectively. They are 12 ft apart from each other. What is the distance between the edges of two poles?
12. You need to print an document of the area 216 sq cm. Condition is 3 cm margin is to be left at both top & bottom and 2 cm at the sides. What 'd be the optimized size of your paper?
13. In a party, every man has his dog with him. There are 22 heads and 72 legs all together. How many men & dogs are there?
14. Ram writes a number between 1 to 1000. Raja wants to know the number, knowing Ram can answer only yes & no and always speaks truth. What will be the minimum number of questions Raja finds the answer.
a. 999 b.10 c.500 d.none
15. How many ways a section of four letter word can be made in complete alphabet?
16. Find the missing number: 0, 0.577, 1, 1.732, ?
a. 0.656 b.2 c.2.743 d.none
17. 17171717171.....(101 digits) is divided by 625. What is the answer?
18. Synonym for ZENITH: ridge trough nadir crecent
19. June 30, 2004 is wednesday. What is June 30, 1974?
20. Two different types of tea are mixed, at 6 Kg of type 1 and 4 Kg of type 2. One Kg of type 1 is Rs. 6 and that of type 2 is Rs. 7. The seller get 10% profit, by this action. Find at what price, he 'd have sold the mixture/Kg?
21. All the students of class are told to sit in circle shape. Here the boy at the 6 th position is exactly opposite to 16 th boy. Total number of boys in the class?
22. The average mark of 10 students is 80%. Later it was found that for one student, instead of 60%, the recorded 90%, by mistake. Now the corrected new percentage?
Ans:
Old % is 80 for 10 ppl. So the total: 800.
Difference in correction : 30. So the total : 770 for 10 ppl. (i.e) 770/10= 77%. (New %)
23 A can do a piece of work in 7 days of 9 hours each and B can do it in 6 days
of 7 bours each. How long will they take to do it, working together 8 hours a day?
Sol. 3 days
24. A and B can do a piece of work in 18 days; Band C can do it in 24 days A and C can do it in 36 days. In how many days will A, Band C finish it together and separately?
Sol. , A, Band C together can finish the work in 16 days.
A alone can finish the work in 48 days.
B alone can finish the work in 144/5=28 4/5 days
C alone can finish the work in 144 days.
25 . A is twice as good a workman as B and together they finish a piece
in 18 days. In how many days will A alone finish the work?
Sol. 27 days.
26. A can do a certain job in 12 days. B is 60% more efficient than A. How many
days does B alone take to do the same job?
Sol. 7 1/2 days.
27. A can do a piece of work in 80 days. He works at it for 10 days B alone finishes the remaining work in 42 days. In how much time will A and B working together, finish the work?
Sol. 30 days.
28. A and B undertake to do a piece of work for Rs. 600. A alone can do it in 6 days while B alone can do it in 8 days. With the help of C, they finish it in 3 days. !find the share of each.
Sol : Rs. 75.
29. A and B working separately can do a piece of work in 9 and 12 days respectively, If they work for a day alternately, A beginning, in how many days, the work will be completed?
Sol : 10 1/4days.
30 .45 men can complete a work in 16 days. Six days after they started working, 30 more men joined them. How many days will they now take to complete the remaining work?
C programming:
[What will be the output???]
1. void checkA()
{
int a=2;
if(a=3!=3)
printf(" 3 ");
else
printf(" 2 ");
return;
}
2. main()
{
char P[]={"Hello World"};
printf(" %s
",p);
main();
}
3. UINT i,j;
i = j = 0;
i = ( i++ > ++j ) ? i++ : i;
4. # define D 10
# define Y D+10
# define D 30
main(int argc, char *arc[])
{
printf(" %d
",D);
}
5. # define TRUE 0
main()
{
int i=0;
while(TRUE)
{
printf(" %d
",i);
i++;
}
printf(" %d
",i);
6. UCHAR j;
for(j=0;j<2000;j++);
Number of iterations?
7. main()
{
int a[5];
a[0]=0;
a[1]=1;
for(i=2 ; i<4 ; i++)
a[i] = a[i1] + a[i2];
}
What are the elements of array?
8.In the following code snippet can we declare a new typedef named ptr even though struct employee has not been completely declared while using typedef?
A. Yes B. No
AnsA
9.What will be the output of the program?
A. 3, 4, 4, 3 B. 4, 3, 4, 3
C. 3, 3, 4, 4 D. 3, 4, 3, 4
AnsB
10.Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept.
11.Write prefix and post fix notation for (a+b)*c(d+e)^(fg)
12.write program to swap 2 variables without using extra memory.
13.Find the output for the following C program fn f(x)
{
if(x<=0)
return;
else f(x1)+x;
}
14.Find the output for the following C program main()
{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}
15. Given the following statement
enum day = {jan = 1, feb=4, april, may}
What is the value of may?
(a) 4
(b) 5
(c) 6
(d) 11
(e) None of the above
16. Find the output for the following C program
main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
17. Find the output for the following C program
fn f(x)
{ if(x<=0)
return;
else f(x1)+x;
}
18. Find the output for the following C program
i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{k+=j<10?4:3;
}
printf("%d", k);
19. Find the output for the following C program
int i =10
main()
{int i =20,n;
for(n=0;n<=i;)
{int i=10;
i++;
}
printf("%d", i);
20. Find the output for the following C program
int x=5;
y= x&y


Your comment 

0 Answers 