Oracle Sample Placement Paper 1
December 31, 2007
Oracle Placement Paper
1. An index is automatically generated with the following
constraints.
a. Check
b. Not null
c. Primary key
d. Foreign key
2. Select mod(16,3) from emp;
a. 1
b. 2
c. 3
d. Error in the stmt
3. The data dictionary view to see the list of constraints enabled
on a
table is
a. user_tables
b. user_table_constraints
c. user_constraints
d. There is no dictionary view available for the same
4. Identify the pseudocolumns
a. rowid
b. sysdate
c. rowval
d. dual
5. select deptno, count(empno) from emp
where count(empno)>=5
group by deptno;
identify the line no which contains the error
a. 1
b. 2
c. 3
d. 1,3
6. choose the group function that can be used with any data type
a. sum()
b. min()
c. avg()
d. all
7. which of the following sequence is true
a. WHERE,HAVING,GROUPBY,ORDERBY
b. GROUPBY, WHERE, HAVING, ORDERBY
c. ORDERBY,GROUPBY,WHERE,HAVING
d. NONE OF THE ABOVE
8. which of the proper keyword to deallocate memory
a. free
b. delete
c. clear
d. remove
9. what is the index no of the last element of an array with 29
elements
a. 29
b. 28
c. 0
d. programmer defined
10. what is the final value of x when the code for(int
x=0;x
void main()
{
char buffer[10]={“Genesis”};
printf(“%d”,&buffer[4]-(buffer));
}
a. 3
b. 4
c. 0
d. illegal pointer subtraction
14. what is the output for
#include
main()
{
static int a[]={5,10,15,20};
int * ptr=a;
int ** ptr_ptr=&ptr;
printf(“\n %d”,**ptr_ptr++);
}
a. 5
b. 10
c. 15
d. 6
15. what is the value of expr..
1+2/3*4+1
a. 2
b. 3
c. 4
d. 4.666666
e. 5
16. identify the relationship between the many employees
working
in a dept..
a. one to one
b. one to many
c. many to one
d. many to many
17.there was a table given and it was asked which normal form does
it
follows..
18. the process of including some controlled redundancy for
the
sake of performance
is known as
a. normalization
b. Cartesian product
c. Denormalization
d. None
19. in a doubley linked list
a. the last node contains the address of the first node
b. each node contains the address of previous and next node
c. each node contains the address of previous node
d. none
20. in a queue each node contains
a. the address of previous node
b. address of next node
c. address of both the previous and next node
d. none of the above
************************: oracle paper
the test was of 1 hour 30 ques. g apti and 30 of
technical…….some
ques. of g apti were very lengthy so don’t end up in solving
them…..time was less……some 15 ques. from arithmetic……and
rest
15
logical,statement interpretation,arrangement,tense
correction……and
like
that……
i am enclosing here the 2 C questions :
1. given a square matrix which consists only of 1 and 0……find
which
rows,which cols and which diagonals consist entirely of 1’s.
2. given an array of integers find all possible combinations of
the
numbers whose sum equal to 90…..
ans : knapsack problem (in data structures – aho ullman)
Note : for them solution was not the criteria…….but the
approach
was important……the solution should be generalised and
optimized……..optimization was given the top priority……..
here is the techincal paper :
plz try to solve them urself by trying on comp.
1. const int MAX=10;
main()
{enum a {a,b,MAX};
print MAX;
}
2. enum object is a const which can only be assigned a value at
initialization or a variable which can be assigned any value in
the
middle of
the program?
3. void *p;
what operation cannot be performed on p?
ans : arithmetic operation unless it is properly typecasted
4. char **p=”Hello”;
print p,*p,**p
5. main()
{char str[]=”Geneius”;
print (str);
}
print(char *s)
{if(*s)
print(++s);
printf(“%c”,*s);
}
6. what does the function fcloseall() does ?
7. main()
{printf(“Genius %d”,fun(123));
}
fun(int n)
{return (printf(“%d”,n));
}
8. difference between definition and declaration.
9. find the error?
fun()
{int i=10;
if(i
Related Posts
- Yahoo sample placement Paper
- Logicsoft International Pvt Ltd (Oracle Developer )
- Perot Placement Paper and Pattern
- Oracle Sample Placement Paper 4
- Sonata Software – Oracle DBA
- Latest Placement Paper – Chennai – Birlasoft
- AppLabs Placement Paper Pattern
- Satyam Paper 26th March 2007
- Walkin Interview @ IBM in Bangalore on 3rd Nov 2007
- Latest Patni Placement Paper
- Oracle Placement Paper 13th May 2005 at Hyderabad
- HSBC Placement Paper
