# Huawei Written Exam January 01, 2005

Posted on :15-02-2016

Aptitude

Q1. Following some pattern, understand the table and find the answer?
JANUARY 20
APRIL 10
MAY 5
NOVEMBER 15
JULY ?

Q2. Find the missing number: 1 10 3 9 5 8 7 7 9 6 ? ?

Q3. 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?

Q4. 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?

Q5. Find the missing number: 0 6 24 X 120

Q6. Which is not lean year: 1900 2000 1952 1980

Q7. Find the missing number: J, ?, M, ?, M, J, ?, A, S, O, N, ?

Q8. 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

Q9. Direct distance between A & B is 200. Direct distance between B & C is 200. Direct  distance  between C & A?

Q10. There are 30 socks in a bag. 30% is in blue color. What is the probability to take two blue socks?

Q11. 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?

Q12. You need to print and 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?

Q13. 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?

Q14. 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

Q15. How many ways a section of four letter word can be made in complete alphabet?

Q16. Find the missing number: 0, 0.577, 1, 1.732, ?

a. 0.656
b. 2
c. 2.743
d. none

Q17. 17171717171.....(101 digits) is divided by 625. What is the answer?

Q18. Synonym for ZENITH: ridge trough nadir crecent

Q19. June 30, 2004 is wednesday. What is June 30, 1974?

Q20. 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?

Q21. 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?

Q22. 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?

Q23.  A can do a piece of work in 7 days of 9 hours each and B can do it in 6 days of 7 hours each. How long will they take to do it, working together 8 hours a day?

ANS: 3 days

Q24. 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?

ANS: A, Band C together can finish the work in 16 days.

Explanation:

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.

Q25 . 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?

ANS: 27 days.

Q26. 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?

ANS: 7 1/2 days.

Q27. 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?

ANS: 30 days.

Q28. 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.

ANS: Rs. 75.

Q29. 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?

ANS: 10 1/4days.

Q30 .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?

Q1.

void checkA()
{
int a=2;
if(a=3!=3)
printf(" 3 ");
else
printf(" 2 ");
return;
}

Q2.

main()
{
char P[]={"Hello World"};
printf(" %s
",p);
main();
}

Q3.

UINT i,j;
i = j = 0;
i = ( i++ > ++j ) ? i++ : i--;

Q4. # define D 10
# define Y D+10
# define D 30
main(int argc, char *arc[])
{
printf(" %d
",D);
}

Q5.

# define TRUE 0
main()
{
int i=0;
while(TRUE)
{
printf(" %d
",i);
i++;
}
printf(" %d
",i);

Q6.

UCHAR j;
for(j=0;j<2000;j++);

Number of iterations?

Q7. What are the elements of array?

main()
{
int a;
a=0;
a=1;
for(i=2 ; i<4 ; i++)
a[i] = a[i-1] + a[i-2];
}

Q8. 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

ANS: A

Q9. What will be the output of the program?

A. 3, 4, 4, 3
B. 4, 3, 4, 3
C. 3, 3, 4, 4
D3, 4, 3, 4

ANS: B

Q10. 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.

Q11. Write prefix and post fix notation for (a+b)*c-(d+e)^(f-g)

Q12. Write program to swap 2 variables without using extra memory.

Q13. Find the output for the following C program function f(x)

{
if(x<=0)
return;
else f(x-1)+x;
}

Q14. Find the output for the following C program main()

{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}

Q15. 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

Q16. Find the output for the following C program

Main
{int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);

Q17. Find the output for the following C program

fn f(x)
{ if(x<=0)
return;
else f(x-1)+x;
}

Q18. Find the output for the following C program

i=20,k=0;
for(j=1;j
{k+=j<10?4:3;
}
printf("%d", k);

Q19. 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);

Q20. Find the output for the following C program

int x=5;
y= x&y

## Related Companies

Accenture
Syntel
HP
Samsung
Microsoft
Honeywell
Dell
Philips
TVS Motor

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.

 ✖