Huawei Placement paper |   29688

Huawei Placement paper

                                        Huawei Previous Placement Paper

 

Aptitude Round

 

1. Find the smallest number in a GP whose sum is 38 and product 1728

(a) 12

(b) 20

(c) 8

(d) none of these

Ans. (c)

 

2. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed of the boat in still water and the speed of the water current?

(a) 1/2 kmph

(b) 7/12 kmph

(c) 5 kmph

(d) none of these

Ans. (b)

 

3. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it can graze?

(a) 38.5 sq.m

(b) 155 sq.m

(c) 144 sq.m

(d) 19.25 sq.m

Ans. (a)

 

4. Mr. Shah decided to walk down the escalator of a tube station. He found that if he walks down 26 steps, he requires 30 seconds to reach the bottom. However, if he steps down 34 stairs he would only require 18 seconds to get to the bottom. If the time is measured from the moment the top step begins to descend to the time he steps of  the last step at the bottom, find out the height of the stair way in steps?

Ans.46 steps.

 

5. The average age of 10 members of a committee is the same as it was4 years ago, because an old member has been replaced by a young member. Find how much younger is the new member ?

Ans.40 years.

 

6.If 2x-y=4 then 6x-3y=?

(a)15

(b)12

(c)18

(d)10

Ans. (b)

 

7.If x=y=2z and xyz=256 then what is the value of x?

(a)12

(b)8

(c)16

(d)6

Ans. (b)

 

8. (1/10)18 - (1/10)20 = ?

(a) 99/1020

(b) 99/10

(c) 0.9

(d) none of these

Ans. (a)

 

9.Pipe A can fill in 20 minutes and Pipe B in 30 mins and Pipe C can empty the same in 40 mins.If all of them work together, find the time taken to fill the tank

(a) 17 1/7 mins

(b) 20 mins

(c) 8 mins

(d) none of these

Ans. (a)

 

10. Thirty men take 20 days to complete a job working 9 hours a day.How many hour a day should 40 men work to complete the job?

(a) 8 hrs

(b) 7 1/2 hrs

(c) 7 hrs

(d) 9 hrs

Ans. (b)

 

11. Three containers A, B and C have volumes a, b, and c respectively; and container A is full of water while the other two are empty. If from container A water is poured into container B which becomes 1/3 full, and into container C which becomes 1/2 full, how much water is left in container A?

 

12. ABCE is an isosceles trapezoid and ACDE is a rectangle. AB = 10 and EC = 20. What is the length of AE?

Ans. AE = 10.

 

13. In the given figure, PA and PB are tangents to the circle at A and B respectively and the chord BC is parallel to tangent PA. If AC = 6 cm, and length of the tangent AP is 9 cm, then what is the length of the chord BC?

Ans. BC = 4 cm.

 

14.  A 270 metres long train running at the speed of 120 kmph crosses another train running in opposite direction at the speed of 80 kmph in 9 seconds. What is the length of the other train

A) 230 m

B) 240 m

C) 260 m

D) 320 m

E) None of these

Ans: A

 

15 Three cards are drawn at random from an ordinary pack of cards. Find the probability that they will consist of a king, a queen and an ace.

Ans. 64/2210.

 

16. A number of cats got together and decided to kill between them 999919 mice. Every cat killed an equal number of mice. Each cat killed more mice than there were cats. How many cats do you think there were ?

Ans. 991

.

17. If Log2 x - 5 Log x + 6 = 0, then what would the value / values of x be?

Ans. x = e2 or e3.

 

18. The square of a two digit number is divided by half the number. After 36 is added to the quotient, this sum is then divided by 2. The digits of the resulting number are the same as those in the original number, but they are in reverse order. The ten's place of the original number is equal to twice the difference between its digits. What is the number?

Ans. 46

 

19.Can you tender a one rupee note in such a manner that there shall be total 50 coins but none of them would be 2 paise coins.?

Ans. 45 one paisa coins, 2 five paise coins, 2 ten paise coins, and 1 twenty-five paise coins.

 

20.A monkey starts climbing up a tree 20ft. tall. Each hour, it hops 3ft. and slips back 2ft. How much time would it take the monkey to reach the top?

Ans.18 hours.

 

21. What is the missing number in this series? 8 2 14 6 11 ? 14 6 18 12

Ans. 9

 

22. A certain type of mixture is prepared by mixing brand A at Rs.9 a kg. with brand B at Rs.4 a kg. If the mixture is worth Rs.7 a kg., how many kgs. of brand A are needed to make 40kgs. Of the mixture?

Ans. Brand A needed is 24kgs

.

23. A wizard named Nepo says "I am only three times my son's age. My father is 40 years more than twice my age. Together the three of us are a mere 1240 years old." How old is Nepo?

Ans. 360 years old

.

24. One dog tells the other that there are two dogs in front of me. The other one also shouts that he too had two behind him. How many are they?

Ans. Three.

 

25. A man ate 100 bananas in five days, each day eating 6 more than the previous day. How many bananas did he eat on the first day?

Ans. Eight.

 

26. If it takes five minutes to boil one egg, how long will it take to boil four eggs?

Ans. Five minutes.

 

27. The minute hand of a clock overtakes the hour hand at intervals of 64 minutes of correct time. How much a day does the clock gain or lose?

Ans. 32 8/11 minutes.

 

28. Solve for x and y: 1/x - 1/y = 1/3, 1/x2 + 1/y2 = 5/9.

Ans. x = 3/2 or -3 and y = 3 or -3/2.

 

29. Daal is now being sold at Rs. 20 a kg. During last month its rate was Rs. 16 per kg. By how much percent should a family reduce its consumption so as to keep the expenditure fixed?

Ans. 20 %.

 

30. Find the least value of 3x + 4y if x2y3 = 6.

Ans. 10.

 

31. Can you find out what day of the week was January 12, 1979?

Ans. Friday.

 

32. A garrison of 3300 men has provisions for 32 days, when given at a rate of 850 grams per head. At the end of 7 days a reinforcement arrives and it was found that now the provisions will last 8 days less, when given at the rate of 825 grams per head. How, many more men can it feed?

Ans. 1700 men.

 

33. From 5 different green balls, four different blue balls and three different red balls, how many combinations of balls can be chosen taking at least one green and one blue ball?

Ans. 3720.

 

34. Three pipes, A, B, & C are attached to a tank. A & B can fill it in 20 & 30 minutes respectively while C can empty it in 15 minutes. If A, B & C are kept open successively for 1 minute each, how soon will the tank be filled?

Ans. 167 minutes.

 

35. A person walking 5/6 of his usual rate is 40 minutes late. What is his usual time?

Ans. 3 hours 20 minutes.

 

36. For a motorist there are three ways going from City A to City C. By way of bridge the distance is 20 miles and toll is $0.75. A tunnel between the two cities is a distance of 10 miles and toll is $1.00 for the vehicle and driver and $0.10 for each passenger. A two-lane highway without toll goes east for 30 miles to city B and then 20 miles in a northwest direction to City C.

 

1. Which is the shortest route from B to C

(a) Directly on toll free highway to City C

(b) The bridge

(c) The Tunnel

(d) The bridge or the tunnel

(e) The bridge only if traffic is heavy on the toll

free highway

Ans. (a)

 

2. The most economical way of going from City A to City B, in terms of toll and distance is to use the

(a) tunnel

(b) bridge

(c) bridge or tunnel

(d) toll free highway

(e) bridge and highway

Ans. (a)

 

3. Jim usually drives alone from City C to City A every working day. His firm deducts a percentage of employee pay for lateness. Which factor would most influence his choice of the bridge or the tunnel ?

(a) Whether his wife goes with him

(b) scenic beauty on the route

(c) Traffic conditions on the road, bridge and tunnel

(d) saving $0.25 in tolls

(e) price of gasoline consumed in covering additional

10 miles on the

bridge

Ans. (a)

 

4. In choosing between the use of the bridge and the tunnel the chief factor(s) would be:

I. Traffic and road conditions

II. Number of passengers in the car

III. Location of one's homes in the center or outskirts of one of the cities

IV. Desire to save $0.25

(a) I only

(b) II only

(c) II and III only

(d) III and IV only

(e) I and II only

Ans. (a)

 

37.The letters A, B, C, D, E, F and G, not necessarily in that order, stand for seven consecutive integers from 1 to 10 D is 3 less than A B is the middle term F is as much less than B as C is greater than D G is greater than F

1. The fifth integer is

(a) A

(b) C

(c) D

(d) E

(e) F

Ans. (a)

 

2. A is as much greater than F as which integer is less than G

(a) A

(b) B

(c) C

(d) D

(e) E

Ans. (a)

 

3. If A = 7, the sum of E and G is

(a) 8

(b) 10

(c) 12

(d) 14

(e) 16

Ans. (a)

 

4. A - F = ?

(a) 1

(b) 2

(c) 3

(d) 4

(e) Cannot be determined

Ans. (a)

 

5. An integer T is as much greater than C as C is greater than E. T can be written as A + E. What is D?

(a) 2

(b) 3

(c) 4

(d) 5

(e) Cannot be determined

Ans. (a)

 

6. The greatest possible value of C is how much greater than the smallest possible value of D?

(a) 2

(b) 3

(c) 4

(d) 5

(e) 6

Ans. (a)

 

38.

1. All G's are H's

2. All G's are J's or K's

3. All J's and K's are G's

4. All L's are K's

5. All N's are M's

6. No M's are G's

 

1. If no P's are K's, which of the following must be true?

(a) All P's are J's

(b) No P is a G

(c) No P is an H

(d) If any P is an H it is a G

(e) If any P is a G it is a J

Ans. (a)

 

2. Which of the following can be logically deduced from the conditions stated?

(a) No M's are H's

(b) No M's that are not N's are H's

(c) No H's are M's

(d) Some M's are H's

(e) All M's are H's

Ans. (a)

 

3. Which of the following is inconsistent with one or more of the conditions?

(a) All H's are G's

(b) All H's that are not G's are M's

(c) Some H's are both M's and G's

(d) No M's are H's

(e) All M's are H's

Ans. (a)

 

4. The statement "No L's are J's" is

I. Logically deducible from the conditions stated

II. Consistent with but not deducible from the

conditions stated

III. Deducible from the stated conditions together

with the additional

statement "No J's are K's"

 

(a) I only

(b) II only

(c) III only

(d) II and III only

(e) Neither I, II nor III

Ans. (a)

 

39.In country X, democratic, conservative and justice parties have fought three civil wars in twenty years. TO restore stability an agreement is reached to rotate the top offices President, Prime Minister and Army Chief among the parties so that each party controls one and only one office at all times. The three top office holders must each have two deputies, one from each of the other parties. Each deputy must choose a staff composed of equally members of his or her chiefs party and member of the third party.

 

1. When Justice party holds one of the top offices, which of the following cannot be true

(a) Some of the staff members within that office are justice party members

(b) Some of the staff members within that office are democratic party members

(c) Two of the deputies within the other offices are justice party members

(d) Two of the deputies within the other offices are conservative party members

(e) Some of the staff members within the other offices are justice party members.

Ans. (a)

 

2. When the democratic party holds presidency, the staff of the prime minister's deputies are composed

I. One-fourth of democratic party members

II. One-half of justice party members and one-fourth of conservative party members

III. One-half of conservative party members and one-fourth of justice party members.

 

(a) I only

(b) I and II only

(c) II or III but not both

(d) I and II or I and III

(e) None of these

Ans. (a)

 

3. Which of the following is allowable under the rules as stated:

(a) More than half of the staff within a given office belonging to a single party

(b) Half of the staff within a given office belonging to a single party

(c) Any person having a member of the same party as his or her immediate superior

(d) Half the total number of staff members in all three offices belonging to a single party

(e) Half the staff members in a given office belonging to parties different from the party of the top office holder in that office.

Ans. (a)

 

4. The office of the Army Chief passes from Conservative to Justice party. Which of the following must be fired.

(a) The democratic deputy and all staff members belonging to Justice party

(b) Justice party deputy and all his or hers staff members

(c) Justice party deputy and half of his Conservative staff members in the chief of staff office

(d) The Conservative deputy and all of his or her staff members belonging to Conservative party

(e) No deputies and all staff members belonging to conservative parties.

Ans. (a)

 

40.In recommendations to the board of trustees a tuition increase of $500 per year, the president of the university said "There were no student demonstrations over the previous increases of $300 last year and $200 the year before". If the president's statement is accurate then which of the following can be validly inferred from the information given:

I. Most students in previous years felt that the increases were justified because of increased operating costs.

II. Student apathy was responsible for the failure of students to protest the previous tuition increases.

III. Students are not likely to demonstrate over new tuition increases.

 

(a) I only

(b) II only

(c) I or II but not both

(d) I, II and III

(e) None

Ans. (a)

 

C programming

 

1. Can you combine the following two statements into one?

 

char *p;

p = (char*) malloc(100);

 

A. char p = *malloc(100);

B. char *p = (char) malloc(100);

C. char *p = (char*)malloc(100);

D. char *p = (char *)(malloc*)(100);

 

2. What will be the output of the program ?

int main()

int i=3, *j, k;

j = &i;

printf("%d\n", i**j*i+*j);

return 0;

 

A. 30

B. 27

C. 9

D. 3

 

3. Point out the compile time error in the program given below.

int main()

int *x;

1;

return 0;

 

A. Error: invalid assignment for x

B. Error: suspicious pointer conversion

C. No error

D. None of above

 

4. Which of the following statements correct about k used in the below statement?

char ****k;

A. k is a pointer to a pointer to a pointer to a char

B. k is a pointer to a pointer to a pointer to a pointer to a char

C. k is a pointer to a char pointer

D. k is a pointer to a pointer to a char

 

5. What is the similarity between a structure, union and enumeration?

A. All of them let you define new values

B. All of them let you define new data types

C. All of them let you define new pointers

D. All of them let you define new structures

 

6. What will be the output of the program ?

int main()

enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};

printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT);

return 0;

 

A. -1, 0, 1, 2, 3, 4

B. -1, 2, 6, 3, 4, 5

C. -1, 0, 6, 2, 3, 4

D. -1, 0, 6, 7, 8, 9

 

7. Which of the following code fragments inserted, will allow to compile?

A. new Inner(); //At line 5

B. new Inner(); //At line 10

C. new ot.Inner(); //At line 10

D. new Outer.Inner(); //At line 10ct data

 

8. Which of the following statements correct about the below code?

A. Structure bolts is nested within structure engine.

B. Structure engine is nested within structure maruti.

C. Structure maruti is nested within structure engine.

D. Structure maruti is nested within structure bolts.

 

9. public void test(int x)

{

int odd = 1;

if(odd) /* Line 4 */

System.out.println("odd");

}

else

System.out.println("even");

}

 

Which statement is true?

A. Compilation fails.

B. "odd" will always be output.

C. "even" will always be output.

D. "odd" will be output for odd values of x, and "even" for even values

 

10. public class Outer

{

public void someOuterMethod()

//Line 5

}

public class Inner { }

public static void main(String[] argv)

Outer ot = new Outer();

//Line 10

}

}

 

Which of the following code fragments inserted, will allow to compile?

A. new Inner(); //At line 5

B. new Inner(); //At line 10

C. new ot.Inner(); //At line 10

D. new Outer.Inner(); //At line 10

 

11. What will be output when you will execute following c code?

#include<stdio.h>

int main(){

int check=2;

switch(check){

case 1: printf("D.W.Steyn");

case 2: printf(" M.G.Johnson");

case 3: printf(" Mohammad Asif");

default: printf(" M.Muralidaran");

}

return 0;

}

Choose all that apply:

(A) M.G.Johnson

(B) M.Muralidaran

(C) M.G.Johnson Mohammad Asif M.Muralidaran

(D) Compilation error

(E) None of the above

Answer: (C)

 

12. What will be output of following c code?

#include<stdio.h>

int main(){

int i=2,j=2;

while(i+1?--i:j++)

printf("%d",i);

return 0;

}

(A)1

(B)2

(C)3

(D)4

(E)Compilation error

Answer: (A)

 

13. What will be output of following c code?\

#include<stdio.h>

int main(){

int i,j;

i=j=2,3;

while(--i&&j++)

printf("%d %d",i,j);

return 0;

}

(A) 2

(B) 3

(C) 13

(D)Infinite loop

(E) Compilation error

Answer: (c)

 

14. What will be output of following program?

#include<stdio.h>

int main(){

int i = 3;

int *j;

int **k;

j=&i;

k=&j;

printf(%u %u %d ”,k,*k,**k);

return 0;

}

(A) Address, Address, 3

(B) Address, 3, 3

(C) 3, 3, 3

(D) Compilation error

(E) None of above

Answer: (A)

 

15. What is size of generic pointer in c?

(A) 0

(B) 1

(C) 2

(D) Null

(E) Undefined

Answer: (C)

 

16. What will be output if you will execute following c code?

#include<stdio.h>

int main(){

int const SIZE=5;

int expr;

double value[SIZE]={2.0,4.0,6.0,8.0,10.0};

expr=1|2|3|4;

printf("%f",value[expr]);

return 0;

}

(A) 2.000000

(B) 4.000000

(C) 6.000000

(D) 8.000000

(E) Compilation error

Answer: (E)

 

16. What will be output when you will execute following c code?

#include<stdio.h>

int main(){

int const SIZE=5;

int expr;

double value[SIZE]={2.0,4.0,6.0,8.0,10.0};

expr=1|2|3|4;

printf("%f",value[expr]);

return 0;

}

Choose all that apply:

(A) 2.000000

(B) 4.000000

(C) 8.000000

(D) Compilation error

(E) None of the above

Answer: (D)

 

17. What will be output of the following c program?

#include<stdio.h>

int main(){

long int 1a=5l;

printf("%ld",1a);

return 0;

}

(A) 5

(B) 51

(C) 6

(D) Compilation error

(E) None of these

Answer: (D)

 

18. What will be output of the following program?

#include<stdio.h>

int main(){

int i=1;

i=2+2*i++;

printf("%d",i);

return 0;

}

(A) 4

(B) 5

(C) 6

(D) 7

(E)Compilation error

Answer: (B)

 

19. What will be output when you will execute following c code?

#include<stdio.h>

int main(){

int a=5,b=10,c=1;

if(a&&b>c){

printf("cquestionbank");

}

else{

break;

}

return 0;

}

Choose all that apply:

(A)cquestionbank

(B)It will print nothing

(C)Run time error

(D)Compilation error

(E)None of the above

Answer: (D)

 

20. What will be output when you will execute following c code?

#include<stdio.h>

int main(){

int a=100;

if(a>10)

printf("M.S. Dhoni");

else if(a>20)

else if(a>30)

printf("A.B. de villiers");

return 0;

}

Choose all that apply:

(A)M.S. Dhoni

(B)A.B. de villiers

(C)M.S Dhoni

M.E.K Hussey

A.B. de Villiers

(D)Compilation error: More than one conditions are true

(E)None of the above

Answer: (A)

feedback