# Huawei Written Test 2013

Posted on :15-02-2016

Q1. Three ants are there in 3 corner of a triangle. They started moving randomly. What is the probability that they meet.

a. 100%
b. 50%
c. 75%
d .25%

Q2. How many squares in a chess board?

a. 64
b.128
c. 204
d. 206

Q3. A Ball is dropped from 8 m height. It rebounds to half the height when it hits the ground. What is the distance travelled by the ball before it hits the ground?

a. 23
b. 24
c. 12
d .16

ANS: a

4. What is the angle between hour and minute hand when the time is 7:20

a. 100
b. 110
c. 90
d. 80

C Aptitude questions:

Find the output:

Q1.
void main()
{
int const * p=5;
printf("%d",++(*p));
}

Q2.

void main()
{
float me = 2.1;
double you = 2.1;
if(me==you)
printf("equal");
else
printf("not equal");
}

Q3.

#include
#define a 10
main()
{
#define a 20
printf("%d",a);
}

ANS: 20

Q4.

main()
{
static int a = 5;
printf("%d ",a--);
if(a)
main();
}

ANS: 54321

Q5. What are the different data types?

Q7. Difference between array and linked list?

Q8. What is stack? What is heap?

Q9. What is volatile embedded c?

Q10. Write the output of programme

switch(1)
{
case 1:printf(1);
case 2:printf(2);
default:printf(default);
}

Q11. What is function?

Q12. What is a process in OS?

Q14. What is size of int, and what are formatting types for int?

Q15. What is pointer?

Q16. What is the size of int *ptr and char *ptr?

Q17. Pipes are ansd:strictly unidirectional, even on systems where anonymous pipes are bidirectional (  full-duplex).

Q18. Proto type of printf

ANS: int fprintf(FILE *stream, const char *format, ...)

Q17. for selection, we use

a. if..else
b. for loop
c. while loop

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

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

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

Q21.  Its 27 min past 10. How many minutes would it take to cover 12 noon.

Q22.  In a transistor in active region there is a relation:

a) IB  = BIC
b) IC = BIB
c) IC = IB
d) none of these.

ANS: c

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

 ✖