Mcafee – Test Pattern

MCAFEE Technical Questions

  1. # define two(x)
    2*x
    # define double(x) x+x main ( )
    {
    intnum, sum, product;
    num = 1;
    sum = --two(num);
    --sum;
    product = --ddouble(num);
    printf("%d %d\n",sum, product);
    }
    • 0 0
    • 0 1
    • 1 1
    • Compilation error


  2. Follow the code snippet and chose the correct statement(s)
    intx;
    void f2()
    {
    intx=1; // line1
    ::x=2; // line2
    x=2; //line3
    }
    • The statement in line1 throws a compilation error
    • In line2,x=2 is assigned to the globalx
    • In line3,x=2 isassigned to the globalx and line2 throws compilation error
    • Both A and B

  3. Which of the following function declaration is illegal?
    • double func();
      int main(){}
      double func(){}
    • double func(){};
      int main(){}
    • intmain()
      {
      doublefunc();
      }
      doublefunc()
      {//statements}
    • None of these

  4. What are the disadvantages in File Processing System?
    • Data redundancy
    • Difficulty in accessing data.
    • Data isolation
    • All of these.
  5. What is used to store movie and image files in SQL?
    • Clob
    • Blob
    • digital
    • Image

  6. Which of the following is the search key containing more than one attribute ?
    • Simple
    • Composite
    • Collective
    • Compound