No. 1 Fresher Jobs Website in India.
Are you employer? Register to Post Jobs Login
Search Jobs

Aptitude - General - Past Year Paper 2 by Huawei

Details of Aptitude - General - Past Year Paper 2 by Huawei conducted by Huawei for job interview.
Share This Job With Others
Some Huawei sample  Questions 

standard error stream stderr,
    ans: are by defaultbuffered 

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

proto type of printf
 ans: int fprintf(FILE *stream, const char *format, ...)

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)

automatic variables are stored in  

dynamic meory is it allocated from heap/satck...?

how to find the size of file in unix

Technical

  How many times is the for loop executed 
   for(i=0;i<10;i++);
    a.    1
    b.   10
    c.   compiler error
    d.     not executed

 How many times is the for loop executed 
   for(i=0;i<10;i++);
   a.    1
   b.   10
   c.   compiler error
   d.   not executed

  for selection, we use
 a   .if..else
 b  .for loop
 c.  while loop
 d.....

Which of the following is executed 1rst?
  i .&& ii.|| iii.!
  a.   i
  b.  ii
  c.  iii
  d.  all are equal

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