Вы находитесь на странице: 1из 3

Huawei Placement Paper - II with Answers, Solutions:1.

standard error stream stderr,


ans: are by defaultbuffered
2. Named pipes are ansd:strictly unidirectional, even on systems where anonymous
pipes are bidirectional ( full-duplex).
3. proto type of printf
Ans: int fprintf(FILE *stream, const char *format, ...)
4.user level switcjing is faster than the kernel level s/w
Ans:since a trap to kernel is not required(user level thread is not known by the os)
5.automatic variables are stored in
6.dynamic meory is it allocated from heap/satck...?
7.how to find the size of file in unix
8. How many times is the for loop executed
for(i=0;i<10;i++);
a. 1
b. 10
c. compiler error
d.
not executed
9. How many times is the for loop executed
for(i=0;i<10;i++);
a. 1
b. 10
c. compiler error
d. not executed
10. for selection, we use
a .if..else
b .for loop
c. while loop
d.....

11.Which of the following is executed 1rst?


i .&& ii.|| iii.!
a. i
b. ii
c. iii
d. all are equal
12.To find o/p of a recursive pgm, function where in parameters are passed by
value,reference......function used in
ansi computers to clear the screen is:
a. clrsc
b. clear
c. clescr
d.
none of the above
13. Some students are standing in a cirle in which 6th and the 16th student are
standing opposite to each other. find how many students were present there.
14. Two cube intersect then which of the following is never made:
a)rectangle
b)triangle
c)cube
d)none of these
15. Average of 9 numbers is M, avg of 3 nos is N, avg of rest of the nos is P,then
what is the equation formed.
16. A ladder was rested along a wall of height 5m. If ladder slides 2m away from the
wall then ladder touches the foot of the wall.What is the height of the ladder.
17 A boy gets some rupees from his mother and spends them on 5 stores. He
spends one rupee more than half of the money. How much money he had at the
time of entering the shop.
18. 311311311311311311 is divisible by:
a)3 and 11.
b)11 but not 3.
c)3 but not 11.
d)none of the above.
19. If a rainy day occurs on every 10th day and each rainy day accounts for half

rainbow then in 20 days what is the percentage of days when rainbow doesn't takes
place.
20. A man works continuosly for 8 days and then takes rest on the 9th day. If
he starts on monday then on which day he will take 12th rest.
21. Its 27 min past 10. How many minutes would it take to cover 12 noon.
22. In a transistor in active region there is a relation:
a) IB = BIC
b) IC = BIB
c) IC = IB
d) none of these.
23. .For preservation of food we need
a) salt
b) formaldehyde
c) sugar
d) none of these
24. what is dry ice.
25. Ammeter 25-0-25mA then what is the sensitivity of ammeter.
5) Which layer is not in OSI layer:
a)physical
b)data link
c)network
d)transmission
26. If carrier is modulated 100 % then what is the percentage increment of power:
a)50
b)100
c)0
d)none
27. Convert (17)10 to binary.
28. (375)10 = ()8
29. During a day at which time most distortion takes place.

Вам также может понравиться