|
1. Let there be a set of 3 numbers. Then number of groups possible? 2. Fiber optic backbone is in which OSI layer? 3. Which data structure to use for fastest search? 4. When compiled from command line what are linking options? 5. Integrate e^(x^-2)dx , with limits -infinity to +infinity? What is the final value? 6. You have written a code in C++, and u have to use a C library , what would u do? 7. If we carry out operation (-3)+(-6),then which of the what will be the value of carry and sign flag? 8. for(i=0;i<20;i++) { a[i]=i; } for(i=0;i<20;i++) { a[i]=a[19-i]; } What is final value of array a? 9. A binary tree contains 1024 elements. What is maximum number of comparisons needed to search an element? 10. void main() { int x=1; int y=1; int i; for(i=2;i<=100;i++) { x=x+i;y=y*(i+1)/(i-1); } What are the values of x & y? 11. In Java can a variable be initialized inside a loop? 12. Two dices are thrown. What is the probability that the the number on the first dice is greater or equal to number on the second dice? 13. s=1-1/4+1/16-1/32...... What is the value of S? Ans. 0.8 Hint Its a GP
14. Let p be a 16 bit number. The 2's complement of p will be represented by?
|