HUAWEI Written Test 
      Test Pattern Consist of 
      Section I. 60 [General Aptitude +Puzzles directly from Summers Book )  

1.                  From Summers 5-6 Questions..

2.                  Analytical Reasoning @ Logical Some 10-15 questions..

3.                  Rest of them are aptitutes..

  Section II 60 [Teshnical]

1.                  Mainly consists of full problems in the Communication & ISDN's,  Microprocessor,Digital Circuits question and basic's of electronics...

2.                  30 Questions are Computer
Mostly From OS,Networking and Automata concepts (Compiler Concepts). In Os the asked about the Scheduling Problems like they have given  the Execution time and elapse time u have to allocate the time for the  process...

  Section III  [C prgm] (10-12 from pointers)
  Section I

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

2.                   Find the missing number: 0 6 24 X 120

3.                  There are 26 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.                  There are 30 socks in a bag. 30% is in blue color. What is the probability to take two blue socks?

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

6.                  Find the missing number: 0, 0.577, 1, 1.732, ?
  a. 0.656    b.2    c.2.743   d.none

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

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

9.                  .The Distance between A to B is 1000 miles... A person has 3000 Apples ..He has to deliver to the market in B , he is carring Maximum of 1000 apples by the camel.. For every mile the camel eats a Apple ...Like that then u have to find out the number of apples that he delivered to the market?

10.               In the old era humans used --------- to prevent themself from the attack of dianosur?(Easy one)

11.              Mr x & MRS x  and Mr.y and MRS y are playing a chess ..like that then the chance of winning? ans (MR.y)
 
 C Programming

12.               void checkA()
 {
   int a=2;
   if(a=3!=3)
      printf(" 3 ");
   else
  printf(" 2 ");
  return;
}  
       ans. 2

13.              main()
{
   char P[]={"Hello World"};
   printf(" %s \n",p);
   main();
 } ans (abnormal program termination)

14.              # define D 10
# define Y D+10
# define D 30
 main(int argc, char *arc[])
  {
    printf(" %d \n",D);
  }
  ans.30

15.              # define TRUE 0
 main()
   {
   int i=0;
   while(TRUE)
    {
    printf(" %d \n",i);
    i++;
   }
  printf(" %d \n",i);
i++;
}

 

 

 

 

 

Some Huawei sample  Questions 

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

Technical

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

 

 

 

 

 

Sample Test Paper

1. Which of the following involves context switch,

(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above

Ans: (a)


2. In OST, terminal emulation is done in

(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer

Ans: (b)


3. For a  25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,

(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs


4. For 1 MB memory, the  number of address lines required,

(a)11
(b)16
(c)22
(d) 24

Ans. (b)


5. Semaphore is used for

(a) synchronization
(b) dead-lock avoidence
(c) box
(d) none

Ans. (a)


6. Which holds true for the following statement

     class c: public A, public B

a) 2 member in class A, B should not have same name
b) 2 member in class A, C should not have same name
c) both
d) none

Ans. (a)


7. Question related to java


8. OLE is used in

a) inter connection in unix
b) interconnection in WINDOWS
c) interconnection in WINDOWS NT


9. Convert a given HEX number to OCTAL


10. Macros and function are related in what aspect?

(a)recursion
(b)varying no of arguments
(c)hypochecking
(d)type declaration


11.Preproconia.. does not do which one of the following

(a) macro
(b) conditional compliclation
(c) in type checking
(d) including load file

Ans. (c)


12. Piggy backing is a technique for

a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition

Ans. (c)


13. In signed magnitude notation what is the minimum value that can be represented with 8 bits

(a) -128
(b) -255
(c) -127
(d) 0


14. There is an employer table with key fields as employer number data
      in every n'th row are needed for a simple following queries will get required results.

(a) select A employee number from employee A , where exists from employee B where A employee no. >= B
     employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number>=B employ number
    group by employee number having(count(*) mod n=0 )
(c) both (a) &a