Home / Placement Papers / DE Shaw / Technical Questions Asked In DE Shaw

Technical Questions Asked In DE Shaw

Technical Questions

1.Evaluate following expression:
a=3, b=6,c=4,d=2
a=b>c && b-c= a+c

A.0
B.1
C.Error
D.None of these

Answer & Explanation

Answer: Option B.

Substituting values we get (((3+6)>4)&&((6-4)<2))|| ((6+2)>=(3+4)) i.e. ((1)&&(0))||(1)= 1

2.The DBMS acts as an interface between what two components of an enterprise-class database system?

A.Database application and the database
B.Data and the database
C.The user and the database application
D.Database application and SQL

Answer & Explanation

Answer: Option A

3.The____condition allows a general predicate over the relations being joined.

A.On
B.Using
C.Set
D.None of these

Answer & Explanation

Answer: Option A

4.Write a program to swap two values

Answer & Explanation

: #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 ;
}

5.To access the services of operating system, the interface is provided by the

A.On
B.Using
C.Set
D.None of these

Answer & Explanation

Answer: Option A

6.Which of the following is correct declaration for a pointer to a function that returns a float?

A.float f( );
B.float *f( );
C.float (*f) ( );
D.float* (*f)( );

Answer & Explanation

Answer: Option C

 

Check Also

DE Shaw Reasoning Questions

Reasoning Questions In each of the following questions, select the related letters/word/number from the given …

Leave a Reply

Your email address will not be published. Required fields are marked *