Technical Questions asked in DE-Shaw

  1. Evaluate following expression:
    a=3, b=6,c=4,d=2
    a=b>c && b-c= a+c 
    1. 0
    2. 1
    3. Error
    4. None of these
    Answer: Option B.
    Substituting values we get (((3+6)>4)&&((6-4)<2))|| ((6+2)>=(3+4)) i.e. ((1)&&(0))||(1)= 1 
Campus Placement ad
  1. The DBMS acts as an interface between what two components of an enterprise-class database system?
    1. Database application and the database
    2. Data and the database
    3. The user and the database application
    4. Database application and SQL
    Answer: Option A
  2. The____condition allows a general predicate over the relations being joined.
    1. On
    2. Using
    3. Set
    4. None of these
    Answer: Option A
  3. Write a program to swap two values
    : #include 
    int main()
    {
    void swap(int&, int&);
    int a,b;
    a=10;
    b=16;
    cout << “a=”<< a << “b=” << b<< “\n”;
    swap(a,b);
    cout << “a=”<< a << “b=” << b;
    return 0;
    }
    void swap(int &x, int &y)
    {
    int temp ;
    temp = x;
    x=y;
    y= temp ;
    }
  4. To access the services of operating system, the interface is provided by the
    1. On
    2. Using
    3. Set
    4. None of these
    Answer: Option A
  5. Which of the following is correct declaration for a pointer to a function that returns a float?
    1. float f( );
    2.  float *f( );
    3. float (*f) ( );
    4. float* (*f)( );
    Answer: Option C
Campus Placement ad
Rate Us
Views:14146