2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
16th July 2014, 02:12 PM
Super Moderator
 
Join Date: Apr 2013
Re: Papers for Huawei Placement exam

Here I am giving you question paper for placement examination of Huawei company in a file attached with it so you can get it easily.

Huawei Placement Papers

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

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

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

4. find the next term 0, 6, 24, 120, -
ans:210; each term is obtained by adding multiples of 6 with series 1,3,6,10,15

5. There is 12 perls. 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.

6. 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?
ans:7 days

7. 1992 Feb have 5 sundays. In which year, the month Feb have 5 sundays next?

8. 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.
ans:C

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

10. The sum of 25 consequtive integers (including negative, positive and zero) is divisible by
a. 5
b. 10
c. 25
d.

11. The headquarters of Huawei is at
a. Honkong
b. Shenzan
c. Shanghai
d.

12. In olden times man used to avoid attacks of Dinosour
a. using fire
b. Climbing the tree
c. Using weapons
d. None of the above
( i don't understand the significance of this question)

13. There is a population of N numbers and each person in the population shakehands with every other person. Which is true?
a. If N is even, even no of shakehands
b. if N is even, odd no of shakehands
c. if N is odd, even no of shakehands
d. if N is odd, odd no of shakehands


Technical-C


1. which is true?
out of 4 options ans is "& operator cannot be applied to register
variables"

2. How many additions are done in this pgm
for(i=0;i<31;i++)
for(j=0;j<31;j++)
for(k=0;k<31;k++)
d=d+1;

3. i=6720,j=4;
for(;i%j==0{
i=i/j;
;
j=j+1;
}
print i;

what is the output?

4. what is a bit=field?

5. Storage class defines
a.scope
b.scope and permeance
c.permeance
d.

6. main(){
int x=0;
fun(x);
print x;
}
fun(int x){
x=x+1;
print x;
}
what is the output?

7. Changing some of the bits to a desired pattern is known as
a.masking
b.Pruning
c.
d.

8. main{
int i=1;
{
int i=2;
print i;
i=i+1;
}
print i;
}
what is the output.

9.whether atleast one function in a C pgm.


Interview Questions


First there is a tech interview and after succeeding this, second is a tech cum HR interview. tell abt Urself. some C pgms are given and find their output.

1. main(){
char *p="Huawei";
printf("%s
",p);
*p++;
printf(%s
",p);
}

2. main(){
int x=5,y=7,z;
z = x++ + y++;
printf("%d
",z);
z = ++x + ++y;
printf("%d
",z);
}

3. main(){
int *p;
p=(int *)malloc(sizeof(int)*20);
memset(p,0,20) or memset(p,20,0) (i don't remember which one)
then some code, i don't remember
}

4. main(){
int x=4;
printf("%d %d %d",x,x>>2,x<<2);
}

5. write a pgm to print
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1

6. write a pgm to find the fibinocci series recursively.

7. write a pgm to find the reverse fib series starting from N.

8. Given the Nth fib no and find the (N-1)th fib no without calculating from the beginning

9. Find the next term 60,30,20,

And some logical questions
Second interview questions

Tell abt yourself

1. write an optimized pgm to find the smallest of 3 numbers.

2. implement stack operations with pointers with appropriate exception checks.

3. Explain any pgm using semaphores.

4. Find the next term 0,4,18,100,-
prime number x asx^3-x^2

Huawei Placement Papers

Section I : 60
**************
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-25 RS Agarwal questions from frequetly asked topics (time & dist., work done, problems on numbers, ratio, mixture, calender).

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

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

28. There are 10 people in a party. "How many other people, you met?" is the question asked to everyone. First person says 1, Second says 2, Third says 3..........ninth says 9. Now what tenth person 'd have answered?

29. Find the missing number: 24 : 15 :: 63 : ?

30. A metal ball weighing 10 gm is droped from 20 meter height tall point. What will be the time to reach ground?

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

32. 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 %)

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++ &gt; ++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&lt;2000;j++);
Number of iterations?

7. main()
{
int a[5];
a[0]=0;
a[1]=1;
for(i=2 ; i&lt;4 ; i++)
a[i] = a[i-1] + a[i-2];
}
What are the elements of array?
  #3  
22nd March 2015, 10:56 AM
Unregistered
Guest
 
Re: Papers for Huawei Placement exam

Hey, I am an B.tech (IT ) student , want to appear in Huawei Placement exam , I requires Huawei previous year placement paper , will you provide me the same ?
  #4  
22nd March 2015, 10:58 AM
Super Moderator
 
Join Date: Apr 2013
Re: Papers for Huawei Placement exam

As you want I am here providing you Huawei previous year placement paper.

Sample paper :
Huawei previous year placement paper

1.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;



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)
  #5  
31st March 2015, 12:51 PM
Unregistered
Guest
 
Re: Papers for Huawei Placement exam

I want to get Huawei Placement exam paper for doing preparation of exam so will you please provide me that ?
  #6  
31st March 2015, 12:51 PM
Super Moderator
 
Join Date: Apr 2013
Re: Papers for Huawei Placement exam

As you want to get Huawei Placement exam paper for doing preparation of exam so here I am giving you some questions of that paper:

1.A lady's age is between 50 and 70.each of her sons has many sons as his brothers. the sum of the sons and grandsons in the lady's age. what is her age?

2. Two persons have 64 and 20 barrels of wine. the first one pays tax 5 barrels and 40 frames. the second one pays 2 barrel and got back 40 frames. What is the value of each barrel and the tax paid on each barrel?

3. There are 20 balls of green color,20 balls of red color,20 balls of blue color,20 of balck,20 of yellow. how many u have to pick to guarantee 2pairs of same color?

4. 8 litres are drawn from a cask full of wine and is then filled with water. This operation is performed three more times. The ratio of the quantity of wine now left in cask to that of water is 16 : 81. How much wine did the cask hold originally?
A. 18 litres B. 24 litres
C. 32 litres D. 42 litres
5. In how many ways a committee, consisting of 5 men and 6 women can be formed from 8 men and 10 women?
A. 266 B. 5040
C. 11760 D. 86400

6.A man buys Rs. 20 shares paying 9% dividend. The man wants to have an interest of 12% on his money. The market value of each share is:
A. Rs. 12 B. Rs. 15
C. Rs. 18 D. Rs. 21
E. None of these

7. If m and n are whole numbers such that mn = 121, the value of (m - 1)n + 1 is:
A. 1 B. 10
C. 121 D. 1000

8. The least perfect square, which is divisible by each of 21, 36 and 66 is:
A. 213444 B. 214344
C. 214434 D. 231444


9. A clock is started at noon. By 10 minutes past 5, the hour hand has turned through:
A. 145º B. 150º
C. 155º D. 160º

10. What was the day of the week on 17th June, 1998?
A. Monday B. Tuesday
C. Wednesday D. Thursday

11. In how many ways a committee, consisting of 5 men and 6 women can be formed from 8 men and 10 women?
A. 266
B. 5040
C. 11760
D. 86400

12..A man buys Rs. 20 shares paying 9% dividend. The man wants to have an interest of 12% on his money. The market value of each share is:
A. Rs. 12
B. Rs. 15
C. Rs. 18
D. Rs. 21
E. None of these
13. If m and n are whole numbers such that mn = 121, the value of (m - 1)n + 1 is:
A. 1
B. 10
C. 121
D. 1000
14. The least perfect square, which is divisible by each of 21, 36 and 66 is:
A. 213444
B. 214344
C. 214434
D. 231444

15.. A clock is started at noon. By 10 minutes past 5, the hour hand has turned through:
A. 145º
B. 150º
C. 155º
D. 160º
16.. What was the day of the week on 17th June, 1998?
A. Monday
B. Tuesday
C. Wednesday
D. Thursday
17.. If a - b = 3 and a2 + b2 = 29, find the value of ab.
A. 10
B. 12
C. 15
D. 18
18. 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

19. A pupil's marks were wrongly entered as 83 instead of 63. Due to that the average marks for the class got increased by half. The number of pupils in the class is
A) 10 B) 20 C) 40 D) 73
Ans: C

20. The average weight of A, B and C is 45 kg. If the average weight of A and B be 40 kg and that of B and C be 43 kg, then the weight of B is
A) 17 kg B) 20 kg C) 26 kg D) 31 kg
Ans: D

21. The average monthly salary of 20 employees in an organisation is Rs. 1500. If the manager's salary is added, then the average salary increases by Rs. 100. What is the manager's salary?
A) Rs.2000 B) Rs.2400 C) Rs. 3600 D) Rs.4800
Ans: C

22. The average of five consecutive numbers in n. If the next two numbers are also included, the average will :
A) remain the same B) increase by 1 C) increase by 1.4 D) increase by 2
Ans: B

23. In an election between two candidates, one got 55% of the total valid votes, 20% of the votes were invalid.If the total number of votes was 7500, the number of valid votes that the other candidate got, was
A) 2700 B) 2900 C) 3000 D) 3100
Ans: A

24. Two tailors X and Y are paid a total of Rs. 550 pe week by their employer. If X is paid 120 percent of the sum paid to Y, how much is Y paid per week

A) Rs. 200 B) Rs. 250 C) Rs.300 C) Rs. None of these
Ans : B

25. A student secures 90%, 60% and 54% marks in test papers with 100, 150 and 200 respectively as maximum marks. The percentage of his aggregate is
A) 64 B) 68 C) 70 D) None of these

Ans: A

26. A man gains 20% by selling an article for a certain price. If he sells it at double the price, the percentage of profit will be
A) 40 B) 100 C) 120 D) 140
Ans: D

27. Profit earned by selling an article for Ra. 1060 is 20% more than the loss incurred by selling the article for Rs. 950. At what price should be article be sold to earn 20% profit.?

A) 980 B) 1080 C) 1800 D) None of these
Ans: D

28. The ages of A and B are in the ration of 3:1. Fifteen years hence, the ratio will be 2:1 Their present ages are
A) 30 years, 10 years B) 45 years, 15 years C) 21 years, 7years
D) 60 years, 20 years

Ans: B

29. The electricity bill of a certain establishment is partly fixed and partly varies as the number of units of electricity consumed. When in a certain month 540 units are consumed, the bill is Rs. 1800. In another month 620 units are consumed and the bill is Rs. 2040. In yet another month 500 units are consumed. The bill for that month would be

A) Rs.1560 B) Rs. 1680 C) Rs. 1840 D) Rs. 1950

Ans: B

30. A and B are two alloys of gold and copper prepared by mixing metals in the ratio 7: 2 and 7: 11 respectively. If equal quantities of the alloys are melted to form a third alloy C, the ratio of gold and copper in C will be

A) 5:7 B) 5:9 C) 7:5 D) 9:5

Ans: C

31. 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.
32. 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?

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

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

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


Tags
placement, placement papers

Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5. The time now is 12:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4