Huawei Placement-Paper

HUAWEI

 

Aptitude Round

 

1. There are two balls touching each other circumferencically. The radius of the big ball is 4 times the diameter of the small ball. The outer small ball rotates in anticlockwise direction circumferencically over the bigger one at the rate of 16 rev/sec. The bigger wheel also rotates anticlockwise at Nrev/sec. what is ‘N’ for the horizontal line from the centre of small wheel always is horizontal.

 

2.  Strike off any digit from each number in seven rows (need not  be at same place) and combine the same operations with 3 digit numbers  to get the same addition. After this strike off another digit from all  and add all the No.s to get the same 2 digit No. perform the same  process again with 1 digit No.s. Give the ‘ no.s in 7 rows at  each stage.

 

3. There is a safe with a 5 digit No. The 4th digit is 4 greater than second digit, while 3rd digit is 3 less than 2nd digit. The 1st digit is thrice the last digit. There are 3 pairs whose sum is 11. Find the number.

 

4. Low temperature at the night in a city is 1/3 more than ½ hinge as higher temperature in a day. sum of the low temp and highest temp is 100C. then what is the low temperature ?

 

5. A person who decided to go weekend trip should not exceed 8 hours driving in a day Average speed of forward journey is 40 mph. due to traffic in Sunday, the return journey average speed is 30 mph. How far he can select a picnic spot ?

 

6. A sales person multiplied a number and get the answer is 3, instead of that number divided by 3. what is th answer he actually has to get ?

 

7. The distance b/w 2 places is 1000 miles and a man has a camel which eats an apple/mile. He has 3000 apples and want to transport from one to another. Camel can take 1000 apples at a time. when reaching the destination how many apples will be with him?

 

8. How many 3-digit numbers will be there which are divisible by 19?

 

9. How many 3-digit numbers with atleast one 5 in their digits?

 

10. find the next term 0, 6, 24, 120, –

 

11. There is 12 pearls. One of them is either light or heavy than others. There is a weighing pan. How many trials are needed to find the exceptional one.

 

12. There is a work which can be completed by A with 12 days and B by 18 days. A and B works together for 3 days and B left. After that how many days for A to complete the work?

 

13. 1992 Feb have 5 Sundays. In which year, the month Feb have 5 Sundays  next?

 

14. There are 2 pots each filled with water and milk respectively. Some amount of milk is poured into water pot and then the some amount of mixture in water pot is poured into milk pot. which is true?

a. the amount of milk in water pot is greater than the amount of water in milk pot.

b. the amount of milk in water pot is less than the amount of water in milk pot.

c. the amount of water in milk pot is same as that of amount of milk in water pot.

d. cannot be determined.

 

15. In a party there are women and cats. There are 18 heads and 72 legs altogether. How many women and cats?

 

16. The sum of 25 consequtive integers (including negative, positive and zero) is divisible by

a. 5

b. 10

c. 25

 

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

 

For questions 18-21 read the following

 

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.

18. 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)

 

19. 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)

 

20. 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)

 

21. 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 centre 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)

 

For questions 22-27 read the following

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

 

22. The fifth integer is

(a) A

(b) C

(c) D

(d) E

(e) F

Ans. (a)

 

23. 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)

 

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

(a) 8

(b) 10

(c) 12

(d) 14

(e) 16

Ans. (a)

 

25. A – F = ?

(a) 1

(b) 2

(c) 3

(d) 4

(e) Cannot be determined

Ans. (a)

 

26. An integer T is as much greater than C as C isgreater 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)

 

27. 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)

 

28) A number consists of two digits. If the digits interchange places and the new number is added to the original number, then the resulting number will be divisible by:

A. 3                 B. 5

C. 9                 D. 11

 

29) What is the sum of two consecutive even numbers, the difference of whose squares is 84?

A. 34               B. 38

C. 42               D. 46

 

30.  In how many different ways can the letters of the word ‘LEADING’ be arranged in such a way that the vowels always come together?

A. 360             B. 480

C. 720             D. 5040

E. None of these

 

31. The banker’s gain on a sum due 3 years hence at 12% per annum is Rs. 270. The banker’s discount is:

A. Rs. 960                   B. Rs. 840

C.Rs. 1020                  D. Rs. 760

 

32) January 1, 2008 is Tuesday. What day of the week lies on Jan 1, 2009?

A. Monday                  B. Wednesday

C. Thursday                D. Sunday

 

33) A trader owes a merchant Rs. 10,028 due 1 year hence. The trader wants to settle the account after 3 months. If the rate of interest 12% per annum, how much cash should he pay?

A. Rs. 9025.20            B. Rs. 9200

C. Rs. 9600                 D. Rs. 9560

 

34) In a 100 m race, A can beat B by 25 m and B can beat C by 4 m. In the same race, A can beat C by:

A. 21 m           B. 26 m

C. 28 m           D. 29 m

35) The sum of three numbers is 98. If the ratio of the first to second is 2 :3 and that of the second to the third is 5 : 8, then the second number is:

A. 20               B. 30

C. 48               D. 58

 

36) A fires 5 shots to B’s 3 but A kills only once in 3 shots while B kills once in 2 shots. When B has missed 27 times, A has killed:

A. 30 birds                  B. 60 birds

C. 72 birds                  D. 90 birds

 

37)  A cistern of capacity 8000 litres measures externally 3.3 m by 2.6 m by 1.1 m and its walls are 5 cm thick. The thickness of the bottom is:

A. 90 cm         B. 1 dm

C. 1 m             D. 1.1 cm

 

38) How many times in a day, are the hands of a clock in straight line but opposite in direction?

A. 20               B. 22

C. 24               D. 48

 

39) A fruit seller had some apples. He sells 40% apples and still has 420 apples. Originally, he had:

A. 588 apples              B. 600 apples

C. 672 apples              D. 700 apples

 

 

40.   A can do a piece of work in 12 days and B can do it in 10 days and A, B and C together in 5 days. C alone can do it in:

(A) 17 days

(B) 27 days

(C) 60 days

(D) 30 days

 

 

 

C programming

 

1)  typedef struct {

char * ;

nodeptr NEXT ;

} *nodeptr;

What does nodeptr stand for?

 

 

2)  Supposing that each integer occupies 4 bytes and each character 1 byte,

what is the output of the following program ?

main()

{

int a[ ] = {1,2,3,4,5,6,7};

char c[ ] = {a,s,h,o,k};

printf(“%d  %d”,&a[3] – &a[0], &c[3] – &c[0]);

}

 

 

3)  What is the output of the program?

main()

{

struct s1 { int i;}

struct s2 {int i;}

struct s1 st1;

struct s2 st2;

st1.i = 5;

st2 = st1;

printf(“%d”, st2.i);

}

 

 

4)  What is the output of the program?

main()

{

int i,j;

int mat[3][3] = { 1 2 34 5 6 7 8 9};

for(i=2;i>=0;i–)

{

for(j=2;j>=0;j–)

printf(“%d”, *(*(mat+j)+i));

}

}

 

 

5)  fn(n)

{

int i;

for(i=0;i<=n;i++)

fn(n-i);

printf(“Well done!”);

}

How many times is the printf statement executed for n=10

 

6)   What is the output of the program?

main()

{

struct emp{

char emp[ ];

int empno;

float sal;

};

struct emp member = { “TIGER” };

printf(“%d  %f”, member.empno, member.sal);

}

 

 

7)  find the  O/P of the program

#define infiniteloop while(1)

main()

{

infiniteloop;

printf(“DONE”);

}

 

 

8)  find the O/P of the program?

main()

{

int a=2, b=3;

printf(“%d”, a+++b);

}

 

9) find the O/P of the program?

#define prn(a)    printf(“%d”, a);

#define print(a,b,c)    prn(a),prn(b),prn(c)

#define max(a,b)    (a<b)?b:a

main(0

{

int x=1, y=2;

print(max(x++,y),x,y);

print(max(x++,y),x,y);

}

 

 

10. How many additions are done in this program

for(i=0;i<31;i++)

for(j=0;j<31;j++)

for(k=0;k<31;k++)

d=d+1;

 

11. i=6720,j=4;

for(;i%j==0;){

i=i/j;

;

j=j+1;

}

print i;

what is the output?

 

12.What is the sizeof(long int)

(a) 4 bytes

(b) 2 bytes

(c) compiler dependent

(d) 8 bytes

 

13. Storage class defines

a.scope

b.scope and permeance

c.permeance

 

14. main(){

int x=0;

fun(x);

print x;

}

fun(int x){

x=x+1;

print x;

}

what is the output?

 

15. main{

int i=1;

{

int i=2;

print i;

i=i+1;

}

print i;

}

what is the output.

 

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

Ans. i=20

 

17. Find the output for the following C program

Y=10;

if( Y++>9 && Y++!=10 && Y++>10)

{printf(“%d”, Y);

else

printf(“%d”, Y);

}

Ans. 13

 

 

18.Which of the function operator cannot be over loaded

(a) <=

(b) ?:

(c) =

(d) *

 

19.Find the output for the following C program

main()

{intx=2,y=6,z=6;

x=y==z;

printf(%d”,x)

}

 

20.find the output

main()

{

printf(“%d%d”size of (“Hcl

technologies”),strlen(“HCL Technologies”));

}

a)16 16

b)16 17

c)17 17

d)17 16

Leave a Reply0

Your email address will not be published.