Home Company Questions Allumunus Interview Questions Allumunus Interview Questions - 1

Login Form




Allumunus Interview Questions - 1 Print E-mail

1. void abc (int a[])
        {
           int k=0;int j=50;
          while(k<j)
         {
         if(a[i]>a[j])                                                                              
          k++;
          else
          j--;
        }
        How many times the loop will occur?

 

2. The product of any 3 consecutive nos is always divisible by _ ? options[12/6/10/24]

 

3.  Which data structure should be used for searching an element in an array in constant time in case of  average case?

 

4. How can you include a library code written in C++ in a source code written in C?

 

5. Find the locus of the point whose sum of distance from 2 fixed points is constant.

 

6. int a[20],i
      for(i=0;i<20;i++)
         {
          a[i]=i;
         }                                                                                           
         for(i=0;i<20;i++)
          {
            a[i]=a[20-i]
         }
        What is the final content of the program.

 

7.   [-infinity to +infinity] integration (exp(-x*x))

 

8. If we want to connect two systems to form a network which layer (OSI) is of most interest to us?

 

9. void main()
            {
           int a[]={5,4,3,2,1};
           int x,y;
           int *p=&a[2];
           *p++;
           x=++*p;
           y=*(p++);
           printf("%d %d",x,y)'
          }
         What will be the value of x and y?

 

10. int i=0,j=50
     while (i<j)
            {
             if(<some condtn>)
               {                                                                                          
                 <body of the loop>
                 i++
              }
            elseif (<some condition>)
             {   <body of the loop>
                  j--
              }
          else(<some condition>)
           {<body of the loop>
             j--
           }
          }

      How many times the body of the loops going to be executed?
     
      a) unknown
      b) 25
      c) 50
      d) depends on the given condition