-->



Oracle Placement Paper



C Programming

1)Which of the following is not a storage class in C?
a. Static
b. Register
c. Extern
d. Stack

2)Which of the following 'return' statement is correct?
a. return, return;
b. return(1, 2, 3);
c. return(return 4);
d. (return 5, return 6);

3)The second argument to fopen() function is?
a. char
b. const char *
c. int *
d. FILE *


4)What is the output of the program?
#include <stdio.h>
void main()
{
char buffer[10] = {"Genesis"};
printf(" %d ", &buffer[4]- (buffer));
}
a. 3
b. 4
c. 0
d. Illegal pointer subtraction
Ans. 4

5)If "arr" is an array of 5 x 5 dimension, arr[2][4] is same as
a. **(a+3+4)
b. *(a+3)+*(a+4)
c. **(a+3)+4
d. *(*(a+2)+4)

Aptitude Section


Log37
1: ------- = ? (Log67)
1 + Log32


2: log(a-b) = log a - log b; then a = ?
(b/(b2+1));

3: 3 black 7 white balls. prob of drawing 2 white balls ? (7/15)

4: In a lock of 4 rings there are five characters. How many unsuccessful attempts can be made ? (624)

5: sqrt(6+sqrt(6+sqrt (6 + .))))) = ? 3

6: A solution is prepared by mixing two solution with sprit 20% & 60%.In What ratio they should be mixed to get the 50% sprit in resultant solution.
(1:3)

7: X2 - (A-3)X +(A+3) = 0
for What value of A the sum of square of roots will be least ? (A=2);

8: 'a' number of persons work daily 'b' hours to produce 'c' items. If 'd' persons walks away from the group What will be the number of hours to produce 'c' items. ? (ab/(a-d))


9: m = ax , and = ay mxny = a2(x+y) find 1/x + 1/y? (1)


10: The diameter of circle can be determined from
1.area.
2.circumference.
Ans either of them.

11: sum of 2 numbers is 7 & product is 10 find larger number.