Technical Questions asked in Mcafee

  1. # define two(x)
    2*x
    # define double(x) x+x main ( )
    {
    intnum, sum, product;
    num = 1;
    sum = --two(num);
    --sum;
    product = --double(num);
    printf("%d %d\n",sum, product);
    }
    1. 0 0
    2. 0 1
    3. 1 0
    4. Compilation error
    Answer: Option D
  2. Follow the code snippet and chose the correct statement(s) intx;
    void f2()
    {
    intx=1; // line1
    ::x=2; // line2
    x=2; //line3
    }
    1. The statement in line1 throws a compilation error
    2. In line2,x=2 is assigned to the globalx
    3. In line3,x=2 isassigned to the globalx and line2 throws compilation error
    4. Both A and B
    Answer: Option B
Wipro
  1. Which of the following function declaration is illegal?
    1. double func();
      int main(){}
      double func(){}
    2. double func(){};
      int main(){}
    3. intmain()
      {
      doublefunc();
      }
      doublefunc()
      {//statements}
    4. None of these
    Answer: Option D
  2. What are the disadvantages in File Processing System?
    1. Data redundancy
    2. Difficulty in accessing data.
    3. Data isolation
    4. All of these.
    Answer: Option D
  3. What is used to store movie and image files in SQL?
    1. Clob
    2. Blob
    3. digital
    4. Image
    1. Which of the following is the search key containing more than one attribute ?
      1. Simple
      2. Composite
      3. Collective
      4. pCompound
      Answer: Option B.
Campus Placement ad
Rate Us
Views:5220