2023 2024 Student Forum > Management Forum > Main Forum

 
  #2  
24th July 2014, 10:42 AM
Super Moderator
 
Join Date: Apr 2013
Re: ORACLE Recruitment Test Solved Paper

Here I am giving you question paper for Oracle Recruitment Test ..........


1. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The one who was not last or first was a math major. The one who came in third had black hair. Linda had red hair. Amy had no musical abilities. Who was first?

(A) Cindy (B) Amy (C) Linda (D) None of these

2. Two twins have certain peculiar characteristics. One of them always lies on Monday, Wednesday, Friday. The other always lies on Tuesdays, Thursday and Saturdays. On the other days they tell the truth. You are given a conversation.
Person A- today is Sunday, my name is Anil
Person B-today is Tuesday, my name is Bill What day is today?

(A) Sunday (B) Tuesday (C) Monday (D) Thursday

3. The difference of a number and its reciprocal is 1/2.The sum of their squares is

(A) 9/4 (B) 4/5 (C) 5/3 (D) 7/4

4. The difference of a number and its square is 870.What is the number?

(A) 42 (B) 29 (C) 30 (D) 32

5. A trader has 100 Kg of wheat, part of which he sells at 5% profit and the rest at 20% profit. He gains 15% on the whole. Find how much is sold at 5% profit?

(A) 60 (B) 50 (C) 66.66 (D) 33.3

6. Which of the following points are collinear?

(A) (3,5) (4,6) (2,7) (B) (3,5) (4,7) (2,3)
(C) (4,5) (4,6) (2,7) (D) (6,7) (7,8) (2,7)

7. A man leaves office daily at 7pm.a driver with car comes from his home to pick him from office and bring back home. One day he gets free at 5.30 and instead of waiting for driver he starts walking towards home. In the way he meets the car and returns home on car. He reaches home 20 minutes earlier than usual. In how much time does the man reach home usually?

(A) 1 hr 20 min (B) 1 hr (C) 1 hr 10 min (D) 55 min

8. If m:n = 2:3,the value of 3m+5n/6m-n is

(A) 7/3 (B) 3/7 (C) 5/3 (D) 3/5

9. A dog taken four leaps for every five leaps of hare but three leaps of the dog is equal to four leaps of the hare. Compare speed?

(A) 12:16 (B) 19:20 (C) 16:15 (D) 10:12

10. A watch ticks 90 times in 95 seconds. And another watch ticks 315 times in 323 secs. If they start together, how many times will they tick together in first hour?

(A) 100 times (B) 101 times (C) 99 times (D) 102 times

11. The purpose of defining an index is

(A) Enhance Sorting Performance (B) Enhance Searching Performance
(C) Achieve Normalization (D) All of the above

12. A transaction does not necessarily need to be

(A) Consistent (B) Repeatable (C) Atomic (D) Isolated

13. To group users based on common access permission one should use

(A) User Groups (B) Roles (C) Grants (D) None of the above

14. PL/SQL uses which of the following

(A) No Binding (B) Early Binding (C) Late Binding (D) Deferred Binding

15. Which of the constraint can be defined at the table level as well as at the column level

(A) Unique (B) Not Null (C) Check (D) All the above

16. To change the default date format in a SQLPLUS Session you have to

(A) Set the new format in the DATE_FORMAT key in the windows Registry.
(B) Alter session to set NLS_DATE-FORMAT.
(C) Change the Config.ora File for the date base.
(D) Change the User Profile USER-DATE-FORMAT.

17. Which of the following is not necessarily an advantages of using a package rather than independent stored procedure in data base.

(A) Better performance. (B) Optimized memory usage.
(C) Simplified Security implementation. (D) Encapsulation.

18. Integrity constrains are not checked at the time of

(A) DCL Statements. (B) DML Statements.
(C) DDL Statements. (D) It is checked all the above cases.

19. Roll Back segment is not used in case of a

(A) DCL Statements. (B) DML Statements. (C) DDL Statements. (D) all of the above.

20. An Arc relationship is applicable when

(A) One child table has multiple parent relation, but for anyone instance of a child record only one of the relations is applicable.
(B) One column of a table is related to another column of the same table.
(C) A child table is dependent on columns other than the primary key columns of the parent table.
(D) None of the above.

21. What is true about the following C functions?

(A) Need not return any value. (B) Should always return an integer.
(C) Should always return a float. (D) Should always return more than one value.

22. enum number { a=-1, b=4, c,d,e,} what is the value of e?

(A) 7 (B) 4 (C) 5 (D) 3

23. Which of the following about automatic variables within a function is correct?

(A) Its type must be declared before using the variable. (B) They are local.
(C) They are not initialized to zero. (D) They are global.

24. Consider the following program segment
int n, sum=5;
switch(n)
{
case 2:sum=sum-2;
case 3:sum*=5;
break;
default:sum=0;
}
if n=2, what is the value of the sum?
(A) 0 (B) 15 (C) 3 (D) None of these.


25. Which of the following is not an infinite loop?
(A) x=0; (B) # define TRUE 0....
do{ While(TRUE){....}
/*x unaltered within the loop*/ (C) for(; {....}
....}
While(x==0); (D) While(1) {....}

26. Output of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i){
case 0:
i+=5;
case 1:
i+=2;
case 5:
i+=5;
default:
i+=4;
break;
}
}
}
(A) 5,9,13,17 (B) 12,17,22 (C) 16,21 (D) syntax error.

27. What does the following function print?
func(int i)
{
if(i%2) return 0;
else return 1;
}
main()
{
int i=3;
i=func(i);
i=func(i);
printf("%d",i);
}
(A) 3 (B) 1 (C) 0 (D) 2

28. What will be the result of the following program?
char*g()
{
static char x[1024];
return x;
}
main()
{
char*g1="First String";
strcpy(g(),g1);
g1=g();
strcpy(g1,"Second String");
printf("Answer is:%s", g());
}
(A) Answer is: First String (B) Answer is: Second String
(C) Run time Error/Core Dump (D) None of these

29. Consider the following program
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(A) 1 (B) 3 (C) -6 (D) none

30. Given a piece of code
int x[10];
int *ab;
ab=x;
To access the 6th element of the array which of the following is incorrect?
(A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .


Technical section:

1. What is the output of the following program?

#include<stdio.h>

#include<math.h>

void main( )

{

int a=5,b=7;

printf(“%d\n”,b\a);

}

A. 1.4

B. 1.0

C. 1

D. 0

2. What is the output of the following program listing?

#include<stdio.h>

void main ( )

{

int x,y:

y=5;

x=func(y++);

printf(“%s\n”,

(x==5)?”true”;”false”);

}

int func(int z)

{

if (z== 6)

return 5;

else

return 6;

}

A :-True

B :-false

C :-either a or b

D :-neither a nor b

3. What is the output of the following progarm?

#include<stdio.h>

main( )

{

int x,y=10;

x=4;

y=fact(x);

printf(“%d\n”,y);

}

unsigned int fact(int x)

{

return(x*fact(x-1));

}

A. 24

B. 10

C. 4

D. none

4. Consider the following C program and chose collect answer

#include<stdio.h>

void main( )

{

inta[10],k;

for(k=0;k<10;k++)

{

a[k]=k;

}

printf (“%d\n”,k);

}

A. value of k is undefined ; unpredictable answer

B. 10

C. program terminates with run time error

D. 0

5. Consider the prog and select answer

#include<stdio.h>

void main ( )

{

int k=4,j=0:

switch (k)

{

case 3;

j=300;

case 4:

j=400:

case 5:

j=500;

}

printf (“%d\n”,j);

}

A. 300

B. 400

C. 500

D. 0

6. Consider the following statements:

Statement 1

A union is an object consisting of a sequence of named members of various types

Statement 2

A structure is a object that contains at different times, any one of the several members of various types

Statement 3

C is a compiled as well as an interpretted language

Statement 4

It is impossible to declare a structure or union containing an instance of itself

A. all the statements are correct

B. except 4 all are correct

C. statemnt 3 is only correct

D. statement 1,3 are incorrect either 2 or 4 is correct

7. consider the following program listing and select the output

#include<stdio.h>

main ( )

{

int a=010,sum=0,tracker:

for(tracker=0;tracker<=a;tracker++)

sum+=tracker;

printf(“ %d\n”,sum);

}

A. 55

B. 36

C. 28

D. n

8.Spot the line numbers , that are valid according to the ANSI C standards?

Line 1: #include<stdio.h>

Line 2: void main()

Line 3: {

4 : int *pia,ia;

5 :float *pafa,fa;

6 :ia=100;

7 :fa=12.05;

8 :*pfa=&ia;

9 fa=&ia;

10 ia=pfa;

11 :fa=(float)*pia;

12 :fa=ia;

a. 8 and 9

b. 9 and 10

c. 8 and 10

d. 10 and 11

8. What is the o/p of the following program?

#include<stdio.h>

main()

{

char char_arr[5]=”ORACL”;

char c=’E’;

prinf(“%s\n”,strcat(char_arr,c));

}

a: oracle

b. oracle

c. e

d. none

9. consider the following program listing

#include<stdio.h>

main()

{

int a[3];

int *I;

a[0]=100;a[1]=200;a[2]=300;

I=a;

Printf(“%d\n”, ++*I);

Printf(“%d\n”, *++I);



Printf(“%d\n”, (*I)--);

Printf(“%d\n”, *I);

}

what is the o/p

a. 101,200,200,199

b. 200,201,201,100

c. 101,200,199,199

d. 200,300,200,100

10. which of the following correctly declares “My_var” as a pointer to a function that returns an integer

a. int*My_Var();

b. int*(My_Var());

c. int(*)My_Var();

d. int(*My_Var)();

11. what is the memory structure employed by recursive functions in a C pgm?

a. B tree

b. Hash table

c. Circular list

d. Stack

12. Consider the follow pgm listing?

Line 1: #include<stdio.h>

2: void main()

3: {

4: int a=1;

5: const int c=2;

6: const int *p1=&c;

7: const int*p2=&a;

8: int *p3=&c;

9: int*p4=&a;

10:}

what are the lines that cause compilation errors?

a.7

b.8

c.6 and 7

d.no errors

13. what will be the o/p

#include<stdio.h>

main()

{

inta[3];

int *x;

int*y;

a[0]=0;a[1]=1;a[2]=2;

x=a++;

y=a;

printf(“%d %d\n”, x,(++y));


}

a. 0,1

b. 1,1

c. error

d. 1,2

what is the procedure for swapping a,b(assume that a,b and tmp are of the same type?

a. tmp=a; a=b;b=temp;

b. a=a+b;b=a-b;a=a-b;

c. a=a-b;b=a+b;a=b-a;

d. all of the above
  #3  
21st May 2015, 03:29 PM
Unregistered
Guest
 
Re: ORACLE Recruitment Test Solved Paper

I am searching for the Oracle Placement Solved Papers? Can you please tell me from where I can download the Oracle Placement Solved Papers?
  #4  
21st May 2015, 03:32 PM
Super Moderator
 
Join Date: Apr 2013
Re: ORACLE Recruitment Test Solved Paper

You are looking for the Oracle Placement Solved Papers. Here I am uploading a file that contains the Oracle Placement Solved Papers. You can download this from here. Here I am also providing you some content of file. This is as follows:

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 generalized and optimized..optimization was given the top priority

3. const int MAX=10;

main()

{ enum a {a,b,MAX};

print MAX;

}

ans. 2

4. enum variable is a const variable which can only be assigned a value at initialization or a non const variable which can be assigned any value in the middle of the program?

ans. const variable

5. void *p;

what operation cannot be performed on p?

Ans : arithmetic operation unless it is properly typecasted


6. char **p="Hello";

print p,*p,**p

ans. Hello (null)

warning: suspicious pointer conversion

7. main()

{ char str[]="Geneius";

print (str);

}



print(char *s)

{ if(*s)

print(++s);

printf("%c",*s);

}

ans. suiene

8. what does the function fcloseall() does ?

ans. fcloseall() closes all open streams except stdin,stdout,stderr,stdprn and stdaux

9. main()

{ printf("Genius %d",fun(123));

}

fun(int n)

{ return (printf("%d",n));

}

ans. 123genius3


SNAPSHOT is used for [DBA]
a. Synonym, b. Table space, c System server, d Dynamic data replication Ans : D


We can create SNAPSHOTLOG for[DBA]
a. Simple snapshots, b. Complex snapshots, c. Both A & B, d Neither A nor B Ans : A


Transactions per rollback segment is derived from[DBA]
a. Db_Block_Buffers, b. Processes, c. Shared_Pool_Size, d. None of the above
Ans : B


ENQUEUE resources parameter information is derived from[DBA]
a. Processes or DDL_LOCKS and DML_LOCKS, b. LOG_BUFFER, c. DB__BLOCK_SIZE..
Ans : A


LGWR process writes information into
a Database files, b Control files, c Redolog files, d All the above. Ans : C


SET TRANSACTION USE ROLLBACK SEGMENT is used to create user objects in a particular Tablespace
a True, b False Ans : False


Databases overall structure is maintained in a file called
a Redolog file, b Data file, c Control file, d All of the above.
Ans : C

These following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESSES
a True, b False Ans : False


Constraints cannot be exported through EXPORT command
a True, b False Ans : False


It is very difficult to grant and manage common privileges needed by different groups of database users using the roles
a True, b False Ans : False


What is difference between a DIALOG WINDOW and a DOCUMENT WINDOW regarding moving the window with respect to the application window

a Both windows behave the same way as far as moving the window is concerned.
b A document window can be moved outside the application window while a dialog window cannot be moved
c A dialog window can be moved outside the application window while a document window cannot be moved
Ans : C


What is the difference between a MESSAGEBOX and an ALERT

A messagebox can be used only by the system and cannot be used in user application while an alert can be used in user application also.

A alert can be used only by the system and cannot be use din user application while an messagebox can be used in user application also.

An alert requires an response from the userwhile a messagebox just flashes a message
and only requires an acknowledment from the user

An message box requires an response from the userwhile a alert just flashes a message an only
requires an acknowledment from the user Ans : C

Which of the following is not an reason for the fact that most of the processing is done at the server ?
a To reduce network traffic. b For application sharing, c To implement business rules centrally,
d None of the above
Ans : D


Can a DIALOG WINDOW have scroll bar attached to it ?
a Yes, b No Ans : B


Which of the following is not an advantage of GUI systems ?
a. Intuitive and easy to use., b. GUI's can display multiple applications in multiple windows
c. GUI's provide more user interface objects for a developer d. None of the above
Ans

What is the difference between a LIST BOX and a COMBO BOX ?

a In the list box, the user is restricted to selecting a value from a list but in a combo box the user can type in value which is not in the list

b A list box is a data entry area while a combo box can be used only for control purposes

c In a combo box, the user is restricted to selecting a value from a list but in a list box the
user can type in a value which is not in the list

d None of the above
Ans : A

In a CLIENT/SERVER environment , which of the following would not be done at the client ?
a User interface part, b Data validation at entry line, c Responding to user events,
d None of the above Ans : D

Why is it better to use an INTEGRITY CONSTRAINT to validate data in a table than to use a STORED
PROCEDURE ?
a Because an integrity constraint is automatically checked while data is inserted into or updated in a table while a stored procedure has to be specifically invoked
b Because the stored procedure occupies more space in the database than a integrity constraint definition
c Because a stored procedure creates more network traffic than a integrity constraint definition
Ans : A

Which of the following is not an advantage of a client/server model ?
a. A client/server model allows centralised control of data and centralised implementation of business rules.
b A client/server model increases developer;s productivity
c A client/server model is suitable for all applications
d None of the above.
Ans : C

What does DLL stands for ?
a Dynamic Language Library
b Dynamic Link Library
c Dynamic Load Library
d None of the above
Ans : B

POST-BLOCK trigger is a
a Navigational trigger
b Key trigger
c Transactional trigger
d None of the above
Ans : A

The system variable that records the select statement that SQL * FORMS most recently used
to populate a block is
a SYSTEM.LAST_RECORD
b SYSTEM.CURSOR_RECORD
c SYSTEM.CURSOR_FIELD
d SYSTEM.LAST_QUERY
Ans: D

Which of the following is TRUE for the ENFORCE KEY field
a ENFORCE KEY field characterstic indicates the source of the value that SQL*FORMS uses to populate the field
b A field with the ENFORCE KEY characterstic should have the INPUT ALLOWED charaterstic turned off
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 and 2 are TRUE
d Both 1 and 2 are FALSE
Ans : A

What is the maximum size of the page ?
a Characters wide & 265 characters length
b Characters wide & 265 characters length
c Characters wide & 80 characters length
d None of the above
Ans : B

A FORM is madeup of which of the following objects
a block, fields only,
b blocks, fields, pages only,
c blocks, fields, pages, triggers and form level procedures,
d Only blocks.
Ans : C

For the following statements which is true
1 Page is an object owned by a form
2 Pages are a collection of display information such as constant text and graphics.
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 & 2 are TRUE
d Both are FALSE
Ans : B

The packaged procedure that makes data in form permanent in the Database is
a Post
b Post form
c Commit form
d None of the above
Ans : C

Which of the following is TRUE for the SYSTEM VARIABLE $$date$$
a Can be assigned to a global variable
b Can be assigned to any field only during design time
c Can be assigned to any variable or field during run time
d None of the above
Ans : B

Which of the following packaged procedure is UNRESTRICTED ?
a CALL_INPUT, b CLEAR_BLOCK, c EXECUTE_QUERY, d USER_EXIT
Ans : D

Identify the RESTRICTED packaged procedure from the following
a USER_EXIT, b MESSAGE, c BREAK, d EXIT_FORM
Ans : D

What is SQL*FORMS
a SQL*FORMS is a 4GL tool for developing & executing Oracle based interactive applications.
b SQL*FORMS is a 3GL tool for connecting to the Database.
c SQL*FORMS is a reporting tool
d None of the above.
Ans : A

Name the two files that are created when you generate a form using Forms 3.0
a FMB & FMX, b FMR & FDX, c INP & FRM, d None of the above
Ans : C

What is a trigger
a A piece of logic written in PL/SQL
b Executed at the arrival of a SQL*FORMS event
c Both A & B
d None of the above
Ans : C

Which of the folowing is TRUE for a ERASE packaged procedure
1 ERASE removes an indicated Global variable & releases the memory associated with it
2 ERASE is used to remove a field from a page
1 Only 1 is TRUE
2 Only 2 is TRUE
3 Both 1 & 2 are TRUE
4 Both 1 & 2 are FALSE
Ans : 1

All datafiles related to a Tablespace are removed when the Tablespace is dropped
a TRUE
b FALSE
Ans : B

Size of Tablespace can be increased by
a Increasing the size of one of the Datafiles
b Adding one or more Datafiles
c Cannot be increased
d None of the above
Ans : B

Multiple Tablespaces can share a single datafile
a TRUE
b FALSE
Ans : B

A set of Dictionary tables are created
a Once for the Entire Database
b Every time a user is created
c Every time a Tablespace is created
d None of the above
Ans : A

Datadictionary can span across multiple Tablespaces
a TRUE
b FALSE
Ans : B

What is a DATABLOCK
a Set of Extents
b Set of Segments
c Smallest Database storage unit
d None of the above
Ans : C

Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the constraint
a Yes
b No
Ans : B

A column defined as PRIMARY KEY can have NULL's
a TRUE
b FALSE
Ans : B

A Transaction ends
a Only when it is Committed
b Only when it is Rolledback
c When it is Committed or Rolledback
d None of the above
Ans : C

A Database Procedure is stored in the Database
a In compiled form
b As source code
c Both A & B
d Not stored
Ans : C

A database trigger doesnot apply to data loaded before the definition of the trigger
a TRUE
b FALSE
Ans : A

Dedicated server configuration is
a One server process - Many user processes
b Many server processes - One user process
c One server process - One user process
d Many server processes - Many user processes
Ans : C

Which of the following does not affect the size of the SGA
a Database buffer
b Redolog buffer
c Stored procedure
d Shared pool
Ans : C

What does a COMMIT statement do to a CURSOR
a Open the Cursor
b Fetch the Cursor
c Close the Cursor
d None of the above
Ans : D

Which of the following is TRUE
1 Host variables are declared anywhere in the program
2 Host variables are declared in the DECLARE section
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 & 2are TRUE
d Both are FALSE
Ans : B

Which of the following is NOT VALID is PL/SQL
a Bool boolean;
b NUM1, NUM2 number;
c deptname dept.dname%type;
d date1 date := sysdate
Ans : B

Declare
fvar number := null; svar number := 5
Begin
goto << fproc>>
if fvar is null then
<< fproc>>
svar := svar + 5
end if;
End;
What will be the value of svar after the execution ?
a Error
b 10
c 5
d None of the above
Ans : A

Which of the following is not correct about an Exception ?
a Raised automatically / Explicitly in response to an ORACLE_ERROR
b An exception will be raised when an error occurs in that block
c Process terminates after completion of error sequence.
d A Procedure or Sequence of statements may be processed.
Ans : C

Which of the following is not correct about User_Defined Exceptions ?
a Must be declared
b Must be raised explicitly
c Raised automatically in response to an Oracle error
d None of the above
Ans : C

A Stored Procedure is a
a Sequence of SQL or PL/SQL statements to perform specific function
b Stored in compiled form in the database
c Can be called from all client environmets
d All of the above
Ans : D

Which of the following statement is false
a Any procedure can raise an error and return an user message and error number
b Error number ranging from 20000 to 20999 are reserved for user defined messages
c Oracle checks Uniqueness of User defined errors
d Raise_Application_error is used for raising an user defined error.
Ans : C

Is it possible to open a cursor which is in a Package in another procedure ?
a Yes
b No
Ans : A

Is it possible to use Transactional control statements in Database Triggers?
a Yes
b No
Ans : B

Is it possible to Enable or Disable a Database trigger ?
a Yes
b No
Ans : A

PL/SQL supports datatype(s)
a Scalar datatype
b Composite datatype
c All of the above
d None of the above
Ans C

Find the ODD datatype out
a VARCHAR2
b RECORD
c BOOLEAN
d RAW
Ans : B

Which of the following is not correct about the "TABLE" datatype ?
a Can contain any no of columns
b Simulates a One-dimensional array of unlimited size
c Column datatype of any Scalar type
d None of the above
Ans : A

Find the ODD one out of the following
a OPEN
b CLOSE
c INSERT
d FETCH
Ans C

Which of the following is not correct about Cursor ?
a Cursor is a named Private SQL area
b Cursor holds temporary results
c Cursor is used for retrieving multiple rows
d SQL uses implicit Cursors to retrieve rows
Ans : B

Which of the following is NOT VALID in PL/SQL ?
a Select ... into
b Update
c Create
d Delete
Ans : C

What is the Result of the following 'VIK'||NULL||'RAM' ?
a Error
b VIK RAM
c VIKRAM
d NULL
Ans : C

Declare
a number := 5; b number := null; c number := 10;
Begin
if a > b AND a < c then
a := c * a;
end if;
End;
What will be the value of 'a' after execution ?
a 50
b NULL
c 5
d None of the above
Ans : C

Does the Database trigger will fire when the table is TRUNCATED ?
a Yes
b No
Ans : B

SUBSTR(SQUARE ANS ALWAYS WORK HARD,14,6) will return
a ALWAY
b S ALWA
c ALWAYS
Ans : C

REPLACE('JACK AND JUE','J','BL') will return
a JACK AND BLUE
b BLACK AND JACK
c BLACK AND BLUE
d None of the above
Ans : C

TRANSLATE('333SQD234','0123456789ABCDPQRST','01234 56789') will return
a 333234
b 333333
c 234333
d None of the above
Ans : A

EMPNO ENAME SAL
A822 RAMASWAMY 3500
A812 NARAYAN 5000
A973 UMESH 2850
A500 BALAJI 5750
Use these data for the following Questions
Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve
a 3500,5000,2500
b 5000,2850
c 2850,5750
d 5000,5750
Ans : A

Is it possible to modify a Datatype of a column when column contains data ?
a Yes
b No
Ans B

Which of the following is not correct about a View ?
a To protect some of the columns of a table from other users
b Ocuupies data storage space
c To hide complexity of a query
d To hide complexity of a calculations
Ans : B

Which is not part of the Data Definiton Language ?
a CREATE
b ALTER
c ALTER SESSION
Ans : C

The Data Manipulation Language statements are
a INSERT
b UPDATE
c SELECT
d All of the above
Ans : D

EMPNO ENAME SAL
A822 RAMASWAMY 3500
A812 NARAYAN 5000
A973 UMESH
A500 BALAJI 5750
Using the above data
Select count(sal) from Emp will retrieve
a 1
b 0
c 3
d None of the above
Ans : C

If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with
SYSDATE ?
a Will
b Won't
Ans : B

What are the different events in Triggers ?
a Define, Create
b Drop, Comment
c Insert, Update, Delete
d All of the above
Ans : C

What built-in subprogram is used to manipulate images in image items ?
a Zoom_out
b Zoom_in'
c Image_zoom
d Zoom_image
Ans : C

Can we pass RECORD GROUP between FORMS ?
a Yes
b No
Ans : A

SHOW_ALERT function returns
a Boolean
b Number
c Character
d None of the above
Ans : B

What SYSTEM VARIABLE is used to refer DATABASE TIME ?
a $$dbtime$$
b $$time$$
c $$datetime$$
d None of the above
Ans : A

SYSTEM.EFFECTIVE.DATE varaible is
a Read only
b Read & Write
c Write only
d None of the above
Ans : C

How can you CALL Reports from Forms4.0 ?
a Run_Report built_in
b Call_Report built_in
c Run_Product built_in
d Call_Product built_in
Ans : C

When do you get a .PLL extension ?
a Save Library file
b Generate Library file
c Run Library file
d None of the above
Ans : A

What is built_in Subprogram ?
a Stored procedure & Function
b Collection of Subprogram
c Collection of Packages
d None of the above
Ans : D

GET_BLOCK property is a
a Restricted procedure
b Unrestricted procedure
c Library function
d None of the above
Ans : D

A CONTROL BLOCK can sometimes refer to a BASETABLE ?
a TRUE
b FALSE
Ans : B

What do you mean by CHECK BOX ?
a Two state control
b One state control
c Three state control
d none of the above
Ans : C - Please check the Correcness of this Answer ( The correct answeris 2 )

List of Values (LOV) supports
a Single column
b Multi column
c Single or Multi column
d None of the above
Ans : C

What is Library in Forms 4.0 ?
a Collection of External field
b Collection of built_in packages
c Collection of PL/SQl functions, procedures and packages
d Collection of PL/SQL procedures & triggers
Ans : C

Can we use a RESTRICTED packaged procedure in WHEN_TEXT_ITEM trigger ?
a Yes
b No
Ans : B

Can we use GO_BLOCK package in a PRE_TEXT_ITEM trigger ?
a Yes
b No
Ans : B

What type of file is used for porting Forms 4.5 applications to various platforms ?
a . FMB file
b . FMX file
c . FMT file
d . EXE file
Ans : C

What built_in procedure is used to get IMAGES in Forms 4.5 ?
a READ_IMAGE_FILE
b GET_IMAGE_FILE
c READ_FILE
d GET_FILE
Ans A

When a form is invoked with CALL_FORM does Oracle forms issues SAVEPOINT ?
a Yes
b No
Ans : A

Can we attach the same LOV to different fields in Design time ?
a Yes
b No
Ans : A

How do you pass values from one form to another form ?
a LOV
b Parameters
c Local variables
d None of the above
Ans : B

Can you copy the PROGRAM UNIT into an Object group ?
a Yes
b No
Ans : B
100. Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5 ?
a Yes
b No
Ans : A

Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5 ?
a Yes
b No
Ans : A

When is a .FMB file extension is created in Forms 4.5 ?
a Generating form
b Executing form
c Save form
d Run form
Ans : C

What is a Built_in subprogram ?
a Library
b Stored procedure & Function
c Collection of Subprograms
d None of the above
Ans : D

What is a RADIO GROUP ?
a Mutually exclusive
b Select more than one column
c Above all TRUE
d Above all FALSE
Ans : A

Identify the Odd one of the following statements ?
a Poplist
b Tlist
c List of values
d Combo box
Ans : C

What is an ALERT ?
a Modeless window
b Modal window
c Both are TRUE
d None of the above
Ans : B

Can an Alert message be changed at runtime ?
a Yes
b No
Ans : A

Can we create an LOV without an RECORD GROUP ?
a Yes
b No
Ans : B

How many no of columns can a RECORD GROUP have ?
a 10
b 20
c 50
d None of the above
Ans D

Oracle precompiler translates the EMBEDDED SQL statemens into
a Oracle FORMS
b Oracle REPORTS
c Oracle LIBRARY
d None of the above
Ans : D

Kind of COMMENT statements placed within SQL statements ?
a Asterisk(*) in column ?
b ANSI SQL style statements(...)
c C-Style comments (/*......*/)
d All the above
Ans : D

What is TERM ?
a TERM is the terminal definition file that describes the terminal from which you are using R20RUN
( Reports run time )
b TERM is the terminal definition file that describes the terminal from which you are using R20DES
( Reports designer )
c There is no Parameter called TERM in Reports 2.0
d None of the above
Ans : A

If the maximum records retrieved property of a query is set to 10, then a summary value will
be calculated
a Only for 10 records
b For all the records retrieved
c For all therecords in the referenced table
d None of the above
Ans : A

With which function of a summary item in the COMPUTE AT optio required ?
a Sum
b Standard deviation
c Variance
d % of Total function
Ans : D

For a field in a repeating frame, can the source come from a column which does not exist in
the datagroup which forms the base of the frame ?
a Yes
b No
Ans : A

What are the different file extensions that are created by Oracle Reports ?
a . RDF file & .RPX file
b . RDX file & .RDF file
c . REP file & .RDF file
d None of the above
Ans : C

Is it possible to Disable the Parameter form while running the report?
a Yes
b No
Ans : A

What are the SQL clauses supported in the link property sheet ?
a WHERE & START WITH
b WHERE & HAVING
c START WITH & HAVING
d WHERE, START WITH & HAVING
Ans : D

What are the types of Calculated columns available ?
a Summary, Place holder & Procedure column
b Summary, Procedure & Formula columns
c Procedure, Formula & Place holder columns
d Summary, Formula & Place holder columns
Ans.: D

If two groups are not linked in the data model editor, what is the hierarchy between them?
a There is no hierarchy between unlinked groups
b The group that is right ranks higher than the group that is to theleft
c The group that is above or leftmost ranks higher than the group that is to right or below it
d None of the above
Ans : C

Sequence of events takes place while starting a Database is
a Database opened, File mounted, Instance started
b Instance started, Database mounted & Database opened
c Database opened, Instance started & file mounted
d Files mounted, Instance started & Database opened
Ans : B

SYSTEM TABLESPACE can be made off-line
a Yes
b No
Ans : B

ENQUEUE_RESOURCES parameter information is derived from
a PROCESS or DDL_LOCKS & DML_LOCKS
b LOG BUFFER
c DB_BLOCK_SIZE
d DB_BLOCK_BUFFERS
Ans : A

SMON process is used to write into LOG files
a TRUE
b FALSE
Ans : B

EXP command is used
a To take Backup of the Oracle Database
b To import data from the exported dump file
c To create Rollback segments
d None of the above
Ans : A

SNAPSHOTS cannot be refreshed automatically
a TRUE
b FALSE
Ans : B

The User can set Archive file name formats
a TRUE
b FALSE
Ans : A

The following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESS
a TRUE
b FALSE
Ans : B

NOARCHIEVELOG parameter is used to enable the database in Archieve mode
a TRUE
b FALSE
Ans : B

Constraints cannot be exported through Export command?
a TRUE
b FALSE
Ans : B

It is very difficult to grant and manage common priveleges needed by
different groups of database users using roles
a TRUE
b FALSE
Ans : B

The status of the Rollback segment can be viewed through
a DBA_SEGMENTS
b DBA_ROLES
c DBA_FREE_SPACES
d DBA_ROLLBACK_SEG
Ans : D

Explicitly we can assign transaction to a rollback segment
a TRUE
b FALSE
Ans : A

What file is read by ODBC to load drivers ?
a ODBC.INI
b ODBC.DLL
c ODBCDRV.INI
d None of the above
Ans : A

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 generalized and optimized..optimization was given the top priority

3. const int MAX=10;

main()

{ enum a {a,b,MAX};

print MAX;

}

ans. 2

4. enum variable is a const variable which can only be assigned a value at initialization or a non const variable which can be assigned any value in the middle of the program?

ans. const variable

5. void *p;

what operation cannot be performed on p?

Ans : arithmetic operation unless it is properly typecasted


6. char **p="Hello";

print p,*p,**p

ans. Hello (null)

warning: suspicious pointer conversion

7. main()

{ char str[]="Geneius";

print (str);

}



print(char *s)

{ if(*s)

print(++s);

printf("%c",*s);

}

ans. suiene

8. what does the function fcloseall() does ?

ans. fcloseall() closes all open streams except stdin,stdout,stderr,stdprn and stdaux

9. main()

{ printf("Genius %d",fun(123));

}

fun(int n)

{ return (printf("%d",n));

}

ans. 123genius3

10. difference between definition and declaration.

ans. definition once while declaration more than once

11. find the error?

main()

{ void fun();

fun();

}

void fun()

{ int i=10;

if(i<10)

return 2.0;

return 3.0;

}

ans. no error but warning
  #5  
21st May 2015, 03:32 PM
Super Moderator
 
Join Date: Apr 2013
Re: ORACLE Recruitment Test Solved Paper

12. int a=9,b=5,c=3,d;

d=(b-c)<(c-a) ? a : b;

print d

ans 5


13. 1+2/3*4+1=?

Ans. 2

14. In C++, a variable can be defined wherever needed whereas not in C

15. main()

{ int i=4;

fun(i=i/4);

print i;

}

fun(int i)

{ return i/2;

}

ans 1



16. what is an array ?

ans. contiguous collection of memory occupied by similar data types

17. printf("\"NITK %%SURAHKAL%% !\"");

ans. "NITK %SURATHKAL% !"

18. difference between scanf and gets in case of string input

ans. scanf does not accepts white space while gets does

19. table t1 m rows and x cols

table t2 n rows and y cols

in t1*t2 rows? cols=?

ans. m*n ,x+y

20. symbol of relationship between 2 entities?

21. which one cannot come in data modelling

a. customer b. student c. office d. speed

Ans speed

22. can a database table exist without a primary key ?

23. whether higher normal forms better than lower forms as far redundancy is concerned ?

ans. higher

24. file is at which level

ans. conceptual level

25. what is a foreign key

ans. primary key in some other table


Questions that remembered are,
Difference between Vector and ArrayList?
What is controller in your project?
How will u authentication a user?
Some servlet calls JSP and in JSP will initialize a servlet this way
Servlet1 s=new Servlet1();
s.doPost(request,response);
and this in turn calls a jsp and this JSP calls another Servlet what will be the output?
Any 2 errors and exceptions?
Difference between SAX and DOM?
Have u ever used <xsl:include>. How to include an xslt in another xslt ?
How will u get connection in ur project?
Which loads driver classloader or JVM?
Difference between Statement and PreparedStatement?
ResultSet points to which location by default?
What is ResultSetMetaData?
Types of Drivers in JDBC?
Difference between 3rd and 4th type java?
What is class?what is object?
What is object ? what is instance? What is the difference between object and instance?
What is encapsulation?
What is polymorphism? Types of polymorphism ? how will u achieve all types of polymorphism?
What is the difference between vector and Array?
What is the difference between HashTable and HashMap?
Are servlets and JSP's threadsafe ? how can u make them threadsafe?
What is multithreading? What Is synchronized?
How can u stop a thread?
Is stop()=sleep()
How to kill a thread?
Describe the design of ur project as MVC ? Methodologies? Flow of ur project?
How will u make transactions with creditcard? Ie will u deduct money from the card
Immediately after making transaction?
How will u insert and delete with a single java connection when u have referential integrity?
What is serialization? Any methods in serialization? What is externalization?
How will u achieve threads?
How will u set priorities of threads?


These r all the basic questions generally u will face at the round which is easy to get through.

Coming to the second round where u have to thorough with ur current project and interviewer will go deep into the concepts that u r using in ur project...

some of them which i remembered..

How to implement connection pooling by ourself?
Will service all doget , dopost or the reverse?
How can u implement cocoon on ur own?
How can u implement hashmap if u r not having it in java?
What is the difference between static binding and dynamic binding?

below r u some questions generally we will face at the interview...

What is synchronization? Why is it used? What are its disadvantages?

How will u enforce synchronization?
How will u declare a synchronized block? What does this represent in the
Declaration of synchronized block?

Can u assign an instance of a class which implements an interface to an interface type?

What is servlet chaining?

Describe the life cycle of servlet starting from the request from a browser to the response it get?

If service method is used then doGet() and doPost() stand for what?

If we can access a sevlet through both GET and POST methods then which methods will u declare in
The sevlet class?

What is dynamic binding?Can u explain with an example?

Can u read all elements from an array?

If aaaa is an array then why aaaa.length why not aaaa.length()?

Is array an object?

Class A{

Public void meth(){
}
}

class B extends A{
Public void meth(){

}
public static void main(String args[]){
A a=new A();
a.meth();//which method will this call
}
}

if u want to call a method of class B then how can u achieve this?

What is static variable? What is static method?
Can u call a static method on a class object,can u access
Static variables through class objects?

What is the diffrenence between AWT and Swing?

How will u add a button to a frame?

Cant we add a component directly to a frame? Why?

What are the different types of panes available?
What are the uses of different types of panes?

What is a layered pane?

What is event delegation model?describe it with an example?

Public void Methos(){
Int I;

Int a[]=new int[10];
S.O.P(i);

For(int k=0;k<a.length;k++)
S.O.P(a[ k]);
}
What will be the output of this method

What is the difference between getActionCommand()
And getSource() on event object?

If u have a table with columns empid,empname,salary,
Write a query to get maximum 5 salary drawing employees?

What is a tier? What is the difference between tier and system or computer?

What do u mean by portability?

What do u mean by platform independence?

Completely view of MVC and n tier architecture and differences?

What is the difference between JradioButton and Jradiobuttongroup.

If u add 2 Jradiobuttons to a panel and check the first one and then the second one
Then which one will be selected

What are the methods of authorization in jsp or servlets?

What is webapplication?

What are the various methods of declaring a TLD in a taglib directive in jsp?

What is TLD?

Implicit objects of jsp are available in destroy() method or not?

What is translation unit in jsp?

What is context in webapplication?

What are multiple and single processor servers? How session is handled
When the server is multi processor server?

If server crashes the threads will continue running or will they stop?
what happens to the sevlet?

Explain MVC pattern by taking any one component ex JtextField or Jbutton?

What is GridBagLayout?

If we want to change the entire path of the server ,where should we touch in a application server?

If we have 3 jsp's as model.jsp, controller.jsp, view.jsp then will it be a MVC architecture?

What is a classloader?

What is dynamic typing, static typing ?

Is java dynamic typed language?

What are the types of sevlet containers?

What is web.xml?

What is pooling of sevlets?

If we have two abstract classes A,B then can we extend both the classes in a single class?

What are the different types of thread priorities?

What is SAX?

What is the difference between SAX and DOM?

What is the difference between RequestDispatcher.forward(request req,response res)
And response.sencRedirect("url");?

What are implicit objects in jsp?

Why cocoon ?why not struts?what is cocoon?

How are u implementing session in ur application?

What is serialization? What are the methods in implementing serialization?

If u have a single table in database how to normalize it?

Is servlet thread safe ? life cycle of JSp?

What is the difference between checked exception an runtime exception?

Interrupt() method throws which exception?

Why jsp is used if we have sevlets>

Difference between a String and Stirng Buffer?

How to increment the capacity of a StringBuffer?

If String S="x";
S+"y";
Then what is S?

How can u set the priorities of thread ? What are the priorities available?

Difference between Vector and ArrayList other than Synchronization?

Which JDBC dirver are u using?

What are the drivers available?

What do u mean by precompiled statement? What is the difference between
Statement and PreparedStatement?

Difference between HashMap and HashTable?

What is context?

Difference between application server and webserver ?

Can we have a try without catch and with a finally?
What is the use of having finally?

If there is try{
Return x;
}finally{
S.O.P("Yes");
}

then finally will execute or not

what is the superclass of an exception?

Is sevlet threadsafe?

What is synchronization?

Sleep() throws which exception?



This is the oracle paper

Technical section:

its very easy any one can answer 25 qns without preperation. some are
1. how compiler treats variables of recursive functions
2. what is orthogonal matrix?
3. given two tables and asked 2 qns on those table ,
one is on join and another is on NOT IN
4. given some qns on pointers( pretty easy)
5. given five qns on data structures like , lifo, fifo
6. qtn on primary key
7. how NULL in sql is treated?
8. given a doubly linked list and asked r->left->right->data
ans: r->data
9:explain const char *ptr and char *const ptr
remaining i didn`t remember

Aptiude

15 quant apti from rs agrval
15 verbal apti,
in this 4 are odd word out
and 4 are sentese ordering when jumbled senteses given
and 4 are reasoning


1) A. Final Year students would like a good career.

B. All final year students are eligible as candidates for MBA entrance
exam.
C.Final Year students are entitled to work towards a good career.
D.Some of those who are candidates for an MBA entrance exam are final
year students
E.All those eligible as candidates for an MBA exam are eligible for a
good career
F.All those who would like a good career are entitled to it.

1. AEF 2. EBC 3.BCF 4.CDF

2) A. All bright people acknowledge brains in others
B. Some knowledgeable men are bright
C. Some knowledgeable men do not acknowledge brains in others
D.Some knowledgeable men are persons who are bright
E.Some knowledgeable men are not bright
F.All bright people do not necessarily acknowledge brains in others

1. ABE 2. ACF 3.ADE 4. ACE

3) A.Some thoughts lack clarity
B.Anything unclear is not worth writing about
C.Some thoughts are worth writing about
D.All thoughts lack clarity
E.Some thoughts are clear
F. No thought is worth is writing about

1. ABF 2.BCD 3.BEF 4.BDF

Directions for questions 4 to 6:Arrange the sentences A,B,C,D in a logical
sequence to form a coherent paragraph.

4) A. How do you set your mental co-ordinates vis a vis the external
variables if every-
thing changes so fast ?
B. Modern life is about managing the prices and consequences of changes
C. That is creating a problem
D. The pace of the changing process seems to be getting quicker overtime

1. ABDC 2.DCAB 3.BDCA 4.BCDA

5) A. Infact trying to calculate an element of chance
B. The rather fanciful idea of Lady Luck favouring her own can be traced
back to
Pagan times when lucky gamblers were thought to be the beloved of
the goddess of
Good fortune
C.Risks were taken in order to gain her approval ,and one of these risks
was trying to
Guess what would happen -for example ,which way a leaf would fall
,which way a
Frog would jump
D.She was seen as being capricious and prone ,occasionally ,to mockery

1. BCAD 2.BDCA 3.BADC 4.BDAC

6) A.It is because Japanese companies do not have to pay the consultancies'
inflated fees
the argument goes ,that companies have more money to devote to
'real' investment
and because they are not tempted to follow the latest management
fashions that they
can develop a coherent ,long term strategy.
B.The average salary man,relaxing after a ten hour day over yakitori
and sake ,hardly
Spends his time talking about Drucker -san and Peter-san .
C.It might seem far fetched to argue that Japan's post war growth has
anything to do
With management theory.
D.Critics of management theory happily point out that thirty years after
arriving ,
Western consultancies are still to make ends meet ,and that Japan
has few business
Schools ,none of them very prestigious.

1. CADB 2. CBDA 3. DBAC 4. DBCA



Directions for questions 7 to 9 :Each question consists of a sentence ,part
of which is underlined .Choose the option that best replaces the underlined
part

7) Nearly everyone know that exercise has numerous health benefits for
people of all ag-
es and physical conditions .

1. Nearly everyone know that exercise has numerous .
2. Nearly everyone knows that exercise has numerous
3. Everyone nearly knows that exercise having numerous
4. Everyone nearly have know that exercise has numerous

8) The researchers hope to study a large patient group to investigate the
effect further and
finding out how long the effects last

1. finding out
2. to find out
3. for finding
4. to finding

9) Having failed to work out a viable marriage with the BSP twice in the
past ,another
hasty alliance shouldn't have been entered into by the BJP

1. another hasty alliance shouldn't have been entered into by the BJP
2. a hasty alliance should have been avoided by the BJP

3. the BJP's entering into hasty alliance shouldn't have been done by them.
4. the BJP should not have entered into a hasty alliance

Directions for questions 10 to 12: Choose the word that is least related to
the question word.

10) Mighty
1. puny 2. colossal 3.prodigious
4.towering

11) Ordeal
1. tribulation 2. copious 3. .affliction
4.torment

12) Pen
1. enclosure 2.corral 3. coop 5.nib



Direction for questions 13 to 15:Read of the following short passages and
answer the question that follows

13) The Mahauti tribe that inhabited the Himayalan region had a personal
relationship with their deities .This gave support and protection to the
tribe most of whom were hunters ; the support might otherwise be lacking
.The absence of each support left tye individual weak and vulnerable .So
,important was this spititual relation that when the tribes lost their
beliefs in the spirit ,their culture disintegrated.

The passage suggests that a primary motivation for members of hunting
cultures to seek firm bonds with the spirit world was the

1. ambition to be better at huntung than others
2. wish to secure an afterlife
3. need for cpmfort in times of sorrow
4. desire to obtain and maintain skill and strength

14) Cosmetologists trying to make ultimate hair care product have found that
when the did not treat hair with a quaternary compound,on combing ,the
combing force remained high This happened even when the electrostatic charge
was substantially reduced by high humidity.

It can be inferred from the above that ,the cosmetologist did which of the
following to reduce the electrostatic charge generated when hair not treated
with a quaternary compound was combed ?

1. decreased the combing speed
2. increased humidity
3. tangled the hair
4. dried the hair.

15) No thorough consideration of the metropolis can overlook either its
social organization or its governmental institutions .The informal means of
social control that once regulated communal affairs of settlement have given
way to the more formal methods of modern society .As metropolitan grew more
complex governmental organizations have evolved as instruments of control
and direction

Which of the followinf situations in a city is most clearly an example of
the developments described in the passage ?

1. City officials no longer control the allocation of water rights :instead
state governments distribute water rights
2. Delinquent children are not verbally chastised by community elders
:instead ,they are brought before a court of law
3. The local government has retained its autonomy thereby preventing central
governments from providing solutions for population problem
4. Community cohesion has decreased ,leading to a sense of isolation on the
part of city residents.

Questions 16 and 17 are based on the following

a/b = (a+b)/(a-b)
a*b = (a+b)(a-b)
a@b = a/b - b/a (implies subtracting the smaller of the two from the other
one )
a#b = a/b + b/a

16) Find (((a@b) + (a#b)) * 1)/ 1, where a=5.91 and b= 17.73

1. 35 2. 18/17 3.17/18
4.None of these

17) State which of the following is/are true
I. 7@(a*b) is undefined if a = b
II. [(a/b)/1 * [(b/a)/1. = (a@b) x (a#b)

1.I only 2. II only 3. Both I and II
4. Neither I or II



18) What is the maximum area that can be enclosed by a wire 44cm long ?

1. 77 2. 154 3. 308 4.None of
these

19) If A(2,3) ,B(-2,-3) and C(1,2) are three vertices of a triangle ,which
among the following is the largest angle ?

1. ABC 2. BCA 3. CAB 4. All three angles
are equal
20) f(x) = 2(x*x) +1 when x<0
= -2x when x>=0
What is f(f(f(2))) ?

1. 66 2. -33 3. 33
4. None of these

21) One sells 30 kg rice with cost Rs.22.87/kg at 20% profit and 50kg rice
with cost price Rs 20.92/kg at 30% profit .What is the total percentage
profit ?

1. 26.25% 2. 24.72% 3. 26.5% 4. 28%

22) Ravi buys 100 5% shares of face value Rs.100 at Rs.15000 .If he sells
them off after a year at Rs 155 a share ,what is his yield ?

1. 8.33% 2. 6.67% 3. 5% 4. 3.33%

23) Amit and Meghna went to New York for a 63 day holiday .Each day ,Amit
spent as many as hundred dollar bills as the remaining number of days in the
trip (excluding the current day ) ,and Meghna spent as many as hundred
dollar bills as the number of days already spent (including current day).
How much per day would they have spent together during the holiday ?

1. $12,600 2. $10000 3. $6300 4. $5000

24) Bacteria reproduce in such a manner that every hour their number
doubles In a controlled experiment that started with a certain number of
bacteria in a jar at 12noon on Tuesday ,30 million were found at 12noon on
Wednesday .At what time were there 15 million bacteria ?

1. Midnight ,Tuesday
2. 6a.m on Wednesday
3. 10 a.m Wednesday
4. None of these

25) Take a number 'x' and follow these steps :
1. Find the sum of its digit
2. If the sum has only one digit , STOP
3. Else , go back to step 1 with the new number.
If x = 1684 ,what is the end result ?

1. 19 2. 10 3. 1
4. None of these

26) A number consisting of five digits 5,6,7,8 and 9 each coming once but
not necessarily in that order is taken ,and an algorithm specified in the
previous question is run on it .How many different end results are possible
?

1. One 2.Three 3.Five
4. Nine

Directions for questions 27 and 28 :Each question is followed by two
statements A and B. Mark
1. If statement A alone is sufficient to answer the question
2. If statement B alone is sufficient to answer the question
3. If both statements A and B are required to answer the question
4. If neither A or B are sufficient to answer the question

27) What is the height of the tower ?
A. A man standing at a distance of 1km from the bottom of the tower
makes an angle
300 degrees with the top of the tower .
B. An insect starts from the bottom of the tower and reaches the top in
25sec.

28) Distance between A and B is
A. A and B two points on the circumference of the circle with center O and
radius 5.2 cm
B. Angle AOB = 450

Additional instructions for questions 29 and 30:

For any activity , X, year Ao dominates year Bo if organized retail business
in activity X in year Ao is greater than organized retails business in
activity X is year Bo .For any two activities in the organized retail
business ,A and B ,year Xo dominates year Yo if
a. The organized retail business in activity A ,in the year Xo is greater
than equal to the organized retail business activity A in the year Yo: and
b. The organized retail business in activity B ,in the year Yo is less than
or equal to the organized retail business in activity B in the year Xo.

29) For the organized retail business activity in children's clothing ,which
one of the following is true ?

1. 1994-95 dominates 1995-96
2. 1995-96 dominates 1994-95
3. 1997-98 dominates 1996-97
4. 1998-99 dominates 1997-98

30) For the organized retail business activity in children 's clothing and
footwear ,which of the following is true ?

1. 1995-96 dominates 1994-95
2. 1994-95 dominates 1995-96
3. 1996-97 dominates 1995-96
4. None of these



QUESTION : 1

EVALUATE THESE TWO SQL COMMANDS:

1. SELECT DISTINCT OBJECT_TYPE FROM USER_OBJECTS;

2. SELECT OBJECT_TYPE FROM ALL_OBJECTS;

HOW WILL THE RESULTS DIFFER?

A. STATEMENT 1 WILL DISPLAY THE DISTINCT OBJECT TYPES IN THE DATABASE, STATEMENT 2 WILL DISPLAY ALL THE OBJECT TYPES IN THE DATABASE.

B. STATEMENT 1 WILL DISPLAY THE DISTINCT OBJECT TYPES OWNED BY THE USER, STATEMENT 2 WILL DISPLAY ALL THE OBJECT TYPES IN THE DATABASE.

yC. STATEMENT 1 WILL DISPLAY THE DISTINCT OBJECT TYPES OWNED BY THE USER, STATEMENT 2 WILL DISPLAY ALL THE OBJECT TYPES THE USER CAN ACCESS.

D. STATEMENT 1 WILL DISPLAY ALL THE OBJECT TYPES THE USER CAN ACESS, STATEMENT 2 WILL DISPLAY ALL OBJECT TYPE THAT THE USER OWNS.


QUESTION : 2

The EMPLOYEE table contains these columns:

LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) SALARY NUMBER(7,2)

You need to display the names of employees that earn more than the average salary of all employees.

Evaluate this SQL statement:

SELECT last_name,first_name FROM employee WHERE salary > AVG(salary);

Which change should you make to achieve the desired results?

A. Change the function in the WHERE clause. B. Move the function to the SELECT clause and add a GROUP BY clause. yC. Use a subquery in the WHERE clause to compare the average salary value. D. Move the function to the SELECT clause and add a GROUP BY clause and a HAVING clause.


QUESTION : 3


You need to remove all the data from the employee table while leaving the table definition intact. You don't care about being able to undo this operation. How would you accomplish this task?

yA. Use the DELETE command. B. Truncate the table. C. Drop the table and recreate it. D. This task cannot be accomplished.


QUESTION : 4

Click on the EXHIBIT button and examine the table instance chart for the sales table.

You attempt to change the database with this command:

SALES ****** __________________________________________________ _____________ | Column Name | PURCHASE_NO | CUSTOMER_ID | CAR_ID | MODEL | |_______________|_______________|_____________|___ _____|________| | Key Type | PK | FK | FK | FK | |_______________|_______________|_____________|___ _____|________| | Nulls/Unique | NN, U | NN | NN | NN | |_______________|_______________|_____________|___ _____|________| | FK Table | | PURCHASE | S_ORD | S_ITEM | |_______________|_______________|_____________|___ _____|________| | FK Column | | CUST_ID | C_ID |MODEL_ID| |_______________|_______________|_____________|___ _____|________| | Datatype | NUM | NUM | NUM | NUM | |_______________|_______________|_____________|___ _____|________| | Lenght | 6 | 6 | 6 | 6 | |_______________|_______________|_____________|___ _____|________|

INSERT INTO sales(purchase_no, customer_id, car_id) VALUES (1234 , 345 , 6);

If this statement fails , which condition would explain the failure?

A. The statement has invalid datatypes. B. The sales table has too many foreign keys. yC. A mondatory column value is missing. D. This statement does not fail at all.


QUESTION : 5

Which ALTER command would you use a disabled primary key constraint ?

A. ALTER TABLE cars ENABLED PRIMARY (id) ; B. ALTER TABLE cars ADD CONSTRAINT cars_id_pk PRIMARY KEY (id) ;

yC. ALTER TABLE cars ENABLE CONSTRAINT cars_id_pk;

D. ALTER TABLE cars ENABLE PRIMARY KEY (id) CASCADE;


QUESTION : 6


You need to create the patient_id_seq sequence to be used with the patient table's primary key column. The sequence should begin at 1000, have a maximum value of 999999999, increment by 1 , and cache 10 number which statement would you use to complete this task ?

yA. CREATE SEQUENCE patient_id_seq START WITH 1000 MAXVALUE 999999999 CACHE 10 NOCYCLE;

B. CREATE SEQUENCE patient_id_seq ON patient (patient_id) MINVALUE 1000 MAXVALUE 999999999 INCREMENT BY 1 CACHE 10 NOCYCLE;

C. CREATE SEQUENCE patient_id_seq START WITH 1000 MAXVALUE 999999999 INCREMENT BY 1 CYCLE 10;

D. This task cannot be accomplished.


QUESTION : 7

Evaluate this SQL statement:

CREATE INDEX emp_dept_id_idx ON employee (dept_id);

Which result will the statement provide ?

A. Store an index in the EMPLOYEE table. B. Increase the chance of full table scans. yC. May reduce the amount of disk I/O for SELECT statements. D. May reduce the amount of disk I/O for INSERT statements. E. Override the unique index created when the FK relationship was defined.


QUESTION : 8


Evaluate this SQL script:

CREATE ROLE manager; CREATE ROLE clerk; CREATE ROLE inventory; CREATE USER scott IDENTIFIED BY tiger; GRANT inventory TO clerk; GRANT clerk TO manager; GRANT inventory TO scott;

How many roles will user SCOTT have access to ?

A. 0 yB. 1 C. 2 D. 3


QUESTION : 9

Within a PL/SQL loop, you need to test if the current fetch was successful. Which SQL Cursor attribute would you use to accomplish this task ?

A. SQL%ROWCOUNT B. A SQL cursor attribute cannot be used within a Pl/sql loop. yC. SQL%FOUND D. SQL%ISOPEN E. This task cannot be accomplished with a SQL cursor attribute.


QUESTION : 10

The EMPLOYEE table contains these columns:

BONUS NUMBER(7,2) DEPT_ID NUMBER(9)

These are 10 departments and each department has at least 1 employee. Bonus values are greater than 5 not all employees receive a bonus.

Evaluate this PL/SQL block:

DECLARE v_bonus employee.bonus%TYPE :=300; BEGIN UPDATE employee SET bonus = bonus + v_bonus WHERE dept_id IN(10 , 20 , 30); COMMIT; END:

What will be the result ?

A. All employees will be given a 300 bonus. B. A subset of employees will be given a 300 bonus. C. All employees will be given a 300 increase in bonus. yD. A subset of employees will be given a 300 increase in bonus.

QUESTION : 11

In which situation should you use an outer join query ?

A. The employee and region tables have no corresponding columns. yB. The employee and region tables have corresponding columns. C. The employee table column corresponding to the region table column constains null Values for rows need to be displayed. D. The employee table has two columns that correspond.


QUESTION : 12

You query the database with this command:

SELECT lot_no "LOT NUMBER" ,COUNT (* ) "NUMBER OF CARS AVAILABLE" FROM cars WHERE model = 'Fire' GROUP BY lot_no HAVING COUNT (*) > 10 ORDER BY COUNT( * );

Which clause restricts which groups are displayed ?

A. SELECT lot_no "LOT NUMBER" ,COUNT (* ) "NUMBER OF CARS AVAILABLE" B. WHERE model = 'Fire' C. GROUP BY lot_no yD. HAVING COUNT ( * ) > 10 E. ORDER BY COUNT ( * )


QUESTION : 13

IN PL/SQL BLOCK WE QUERRY THIS STATEMENT

FOR EMP_RECORD IN CURSOR_EMP LOOP EMP_RECORD:='JIM'; END LOOP; CLOSE CURSOR_EMP; WHICH TASK WILL BE ACCOMPLISHED

1.NO FETCH STATEMENTIS ISSUED. 2.THERE IS NEED TO OPEN A CURSOR. y3.THERE IS NO NEED TO CLOSE THE CURSOR. 4.THE LOOP TERMINATING CONDITION IS MISSING.


QUESTION : 14

WHICH PL/SQL BLOCK USER_DEFINED EXCEPTION RAISED ?

y1. EXCEPTION 2. EXECUTEABLE 3. DECLARATIVE 4. HEADER


QUESTION : 15

WHAT SHOULD YOU TO DO AFTER FETCH STATEMENT

1. CLOSE THE CURSOR y2. TEST TO SEE THE CURSOR ATTRIBUTE 3. OPEN THE CURSOR 4. IDANTIFY THE ACTIVE SET


QUESTION : 16

IN PL/SQL BLOCK

IF V_VALUE >100 THEN V_VALUE_INCREASE := 2*V_VALUE; IF V_VALUE >200 THEN V_VALUE_INCREASE := 3*V_VALUE; IF V_VALUE <300 THEN V_VALUE_INCREASE := 4*V_VALUE; ELSE V_VALUE_INCREASE := 4*V_VALUE;

WHICH VARIABLE V_VALUE_INCREASE ASSIGN A VALUE IF V_VALUE IS 250


1. 500 2. 750 y3. 1000 4. 1250


QUESTION : 17

EVALUATE THIS STATEMENT

SELECT UPPER(FIRST_NAME),UPPER(LAST_NAME), LENGTH(CONCAT(FIRST_NAME,LAST_NAME)) NAME FROM EMPLOYEE WHERE UPPER(LAST_NAME) LIKE '%J' OR UPPER(LAST_NAME) LIKE '%A' OR UPPER(LAST_NAME) LIKE '%N' ;

SELECT INITCAP(FIRST_NAME),INITCAP(LAST_NAME), LENGTH(FIRST_NAME) + LENGTH(LAST_NAME) FROM EMPLOYEE WHERE UPPER(SUBSTR(LAST_NAME,1,1) IN ('J','A','N');

HOW WILL THE RESULT DIFFER

y1. BOTH STATEMENT RETRIVED DIFFERENT DATA FROM THE DATABASE 2. STATEMENT 1 WILL EXECUTE AND STATEMENT 2 WILL NOT 3. STATEMENT 2 WILL EXECUTE AND STATEMENT 1 WILL NOT 4. BOTH STATEMENT RETURNS SAME DATA


QUESTION : 18

HOW MANY ELEMENT CONSISTS OF WHERE CLAUSE


1. USER_SUPPLIED LITERALS 2. ALIAS 3. COLUMN NAME 4. COMPARISION OPERATOR 5. COLUMN POSITION


QUESTION : 19

IN PL/SQL BLOCK

BEGIN FOR I IN 1..10 LOOP IF I=4 OR I=6 THEN NULL; ELSE INSERT INTO CARS(ID) VALUES(I); END IF; COMMIT; END LOOP; ROLL BACK; END;

HOW MANY VALUES WILL BE INSERTED

1. 2 2. 1 3. 5 4. 6 y5. 8 6. 10


QUESTION : 20

EVALUATE THIS STATEMENT

CREATE SYNONYUM CARS FOR ED.MARYLIN;

WHICH TASK WILL BE ACCOMPLISH?

1. SYNONYUM IS CREATED FOR ALL USER. y2. SYNONYUM IS CREATED FOR YOU. 3. SYNONYUM IS CREATED FOR ED 4. SYNONYUM IS CREATED FOR THOSE EMPLOYEES WHO HAS ACCESS THE DATABASE.

QUESTION : 21

DISPLAY ENAME,JOB AND SALARY OF ALL EMPLOYEES. ORDER OF SALARY IS DESCENDING, IF SALARY IS MATCHED THEN ORDER THE ENAME.

A. SELECT ENAME,JOB,SAL FROM EMP ORDER BY SAL,ENAME

yB. SELECT ENAME,JOB,SAL FROM EMP ORDER BY SAL DESC,ENAME

C. SELECT ENAME,JOB,SAL FROM EMP ORDER BY SAL DESC,ENAME ASCENDING

QUESTION : 22

EVALUATE THIS STATEMENT:

SELECT ENAME,JOB FROM EMP WHERE EMPNO NOT IN(SELECT MGR FROM EMP);

WHICH OPERATOR IS EQUAL TO 'NOT IN':

A. != B. NOT ALL yC. != ALL D. NOT LIKE

1. In SQL*Plus environment ,you want to store the result of your query in a text file, which command will you use; a. Spool Out. yb. Spool filename.txt. c. Spool out to filename.txt.

2. You are informed that cost of your product has by 25% and price of the product is increased by 10%. Now you have to determine the actual net profit for that product, you issued this query Select Price*1.10-Cost*1.25 from product How will this statement execute; a. This will give more result than you want yb. This will give desired result. c. This will give less result than you want.

3. Which characteristic applies to SQL. ya. When sorted in ascending order null values come in last b. When sorted in descending order null values come in last c. When sorted in ascending order null values come first

4. You have to find a name, but you don't know the case of stored data, which query will give the desired result. a. Select * from product Where ename=upper('&ename');

b. Select * from product Where ename=lower('&ename');

c. Select * from product Where upper(ename)='&ename';

yd. Select * from product Where upper(ename)=upper('&ename');

5. You have to find the name Smith. But you don't have any idea that which case user will use, which command will give the desired result. a. Select * from product Where ename=initcap('&ename');

b. Select * from product Where intioap(ename)=('&ename');


c. Select * from product Where upper(ename)='&ename';

yd. Select * from product Where ename = upper('&ename');

6. You have to find the total service period of employee in months as whole number, which query will give the result. ya. Select round(months_between(sysdata,hiredate)) from emp; b. Select round(months_between(hiredate,sysdate)) from emp;

7. If you want to join table without direct matching of their columns, which type of join will you use. a. Equi Join b. Self Join. c. Outer Join yd. Non EquiJoin.

8. Click on Exhibit Button ID Number(4) Name Varchar2(20) Manager_ID Number(4) You want to see name with their manager name which query will you use?

9. Which order is advised in SQL a. Where , Having ,Group By b. Group By, Having,Where c. Group By, Where ,Having yd. Where, Group By, Having

10. What is a nonpairwise subquery. ya. Cross Product applies to them. b. Cross product doesn't applies to them.

11. Click on Exhibit Button Table User_Tab ID Number(4) Name Varchar2(20) Hired Date You have to insert a row in this table, which query will give the desired result. ya. Insert into User_tab Values('asd',23,sysdate); b. Insert into User_tab(Name,Id,Hired) Values(123,'asd',sysdate); c. Insert into User_tab(Name,id,hired) Values('asd','123',sysdate)

12. Click on Exhibit Button Table is User_Tab Ino Number(4)

You use this PL/Sql program Begin For I in 1..5 loop Insert into user_tab Values (I); Commit; End Loop; RollBack; End; How many values will be inserted in User_tab table? a. 0. b. 1. c. 3. yd. 5.

13. To see which table you can access, which data dictionary is used. a. User_Objects. b. Dba_Ojbects. yc. All_objects.

14. To add a comment on table abc, syntax is a. Alter Table abc Add Comment b. Alter abc Add Comment. c. Commnent on abc. yd. Comment on table abc.

15. In SQL*Plus, you issued this command DELETE FROM dept WHERE DEPT_ID=30; You received an Integrity Constraint Error. What could you do to make the statement execute? a. Add the FORCE keyword to the command. b. Add the CONSTRAINTS CASCADE option to the command. c. You cannot make the command execute. yd. Delete the child record first.

16. You are updating the employee table, Jane has been granted the same privileges as you on the employee table. You ask Jane to log on to the database to check your work before you issue a COMMIT command. What can Jane do to the employee table? a. Jane can access the table and verify your changes. b. Jane cannot access the table. c. Jane can access the table, but she cannot see your changes. She can make the changes for you. yd. Jane can access the table, but she cannot see your changes and cannot make the same changes.

17. You created the patient_vu view based on id_number and last_name from the patient table. What is the best way to modify the view so that the rows can only be accessed b/w 8:00 A.M to 5:00 P.M. a. Use the ALTER command to add a WHERE clause to verify the time. b. Replace the view adding a WHERE clause. c. Drop the patient_vu and create a new view with a WHERE clause. d. Drop th epatient_vu and create a new view with a HAVING clause. ye. This task cannot be accomplished.

18. You issued this command CREATE SYNONYM e FOR ed.employee; Which task has been accomplished? a. The need to qualify an object name with its schema was eliminated for user Ed. yb. The need to qualify an object name with its schema was eliminated for only you. c. The need to qualify an object name with its schema was eliminated for all users. d. The need to qualify an object name with its schema was eliminated for users with access.


19. In the declaration section of a PL/SQL block , you create this variable; abc employee%rowtype; Which task has been accomplished? a. The abc variable was declared with the same datatype as the employee column. b. The abc table was created. c. A scalar table was created. yd. A composite variable was created based on the employee table.


ORACLE
------


section 2:

1. what is sparese matrices?. give (at least) two methods for implemetation
rather than two dimentional array.
2.what are cheap locks/latches?.
3.what is two phase locking?. Name two locks.
4. What are volatile variables in C?. What is their significance ?.
5. will these two work in same manner
#define intp int *
typedef int * inpp;
6. what are binary trees?. what is its use?.
7.

section 3 :

A). write header file containing functions used, etc (C),
problem is to maitain a Queue. user has to give size and type of Queue.
This problem is like this I don't remember exactly.
B). C++
1. What is polymorphism?
2. What is Inheritence?.
3. Mention four Object Oriented Programming Languages?>
4. Mention basic concepts of OOP.
5. What are messages in OOP?.
6. What is garbase collection?.
7.what is object?.
8. what is a class?.

section 4:
1. expand the following:
a.SEI b. ISO
2. what are different levels of SEI?.
3. What is significance of ISO?>
4. Expand the following:
a. WWW
b. HTTP
c. HTML
d. TCP/IP
5. what is Black box testing?.
6. explain the following:
1. white box testing
2. white box testing
3. boundary testing
4 stress
5. negative
6. system
7. unit
8.module
9.destructive


Quick Reply
Your Username: Click here to log in

Message:
Options

Thread Tools Search this Thread



All times are GMT +5. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4