0% found this document useful (0 votes)
64 views3 pages

iGATE Oracle Exit Test Questions

This document contains an Oracle exit test with multiple choice and written response questions. It tests knowledge of Oracle SQL and PL/SQL. The questions cover topics like data types, constraints, joins, functions, views, synonyms, exceptions, and DML and DDL statements. It has three parts - the first with 20 multiple choice questions, the second asking to write 5 SQL queries, and the third asking to write 2 PL/SQL blocks.

Uploaded by

KIRAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views3 pages

iGATE Oracle Exit Test Questions

This document contains an Oracle exit test with multiple choice and written response questions. It tests knowledge of Oracle SQL and PL/SQL. The questions cover topics like data types, constraints, joins, functions, views, synonyms, exceptions, and DML and DDL statements. It has three parts - the first with 20 multiple choice questions, the second asking to write 5 SQL queries, and the third asking to write 2 PL/SQL blocks.

Uploaded by

KIRAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

iGATE GLOBAL SOLUTIONS LTD

Oracle Exit Test


Part I: Answer the following ( 20)
1. A column that is defined as unique can accept null values. Comment
2. Which line has the error
1. Create table Oracle
2. ( n number(4) primary key
3.

char1 char(2) not null )


A. No error
B. error in line 1
C. Error in line 2
D. Error in line 3

3. To join four tables we need minimum __________ conditions


4. SELECT floor(99.5), floor(-11.5) from dual will return _____________
5. To increase the size of the amount column we use the ALTER statement.
ALTER TABLE EMP ________________ comm number (8,2)
6. number(5,-2) stores 98765.432 as _____________________

7. Which SELECT statement should you use to extract the month from the system date and
display it in the format JANUARY?
A. Select to_char(sysdate,'Month') from dual
B. Select to_date(sysdate,'month') from dual;
C. Select substr(sysdate,3,'month') from dual;
D. Select to_date(substr(sysdate,3,2,'month')) from dual;
8. To create a view without a base table we use
A. Force keyword
B. inline
C. Auto
D. with check option

FPB II CHN 2006

Page 1 of 3

iGATE GLOBAL SOLUTIONS LTD


Oracle Exit Test

9. A synonym is
A. Alternate name for database object
B. dummy table with same name as that of the table
C. data dictionary of user objects
D. alternate for view
10. select * from emp where deptno = 10 and (sal > 1300 or job = 'ANALYST') will return
A. employees of deptno 10 who are either analysts or those receiving salary greater
than 1300
B. Analysts of deptno 10 whose salary is greater than 1300
C. the employees from deptno 10 and the employees from other depts whose salary is
greater than 1300 or whose job is analyst
D. employees of deptno 10 with salary greater than 1300 and job being Analyst
11. Data Dictionary consists of

A. tables and their definitions


B. physical structure of tables
C. the actual data of the user
D. the meta data of objects residing in database
12. __________ attribute is used to count the number of rows returned by a cursor
13. select deptno, dname DEPT from depart order by 2
A. correct SQL
B. Error: DEPT should be within double quotes
C. Error : order by should have column name
D. Runtime error
14. When a table is created by copying rows from the existing table
A. all the constraints of the parent table are copied
B. No constraint will be copied
C. Only unique constraint is copied
D. Only not null constraint is copied

FPB II CHN 2006

Page 2 of 3

iGATE GLOBAL SOLUTIONS LTD


Oracle Exit Test

15. When user tries to close an unopened cursor, which predefined exception will be fired
A. CURSOR_NOT_OPENED
B. INVALID_CURSOR
C. CURSOR_ALREADY_CLOSED
D. CURSOR_CHECK_EXCEPTION

Part B ( 15)
1. Write a query to display employee number, name and their annual income. Income consists
of salary and commission
2. Write a query to display the employees working in the department having the minimum
strength
3. Find the highest paid job from the employee table
4. Display the employees who have been hired in the month of August.
5. It has been decided to change the designation of clerks as Executive. Implement the
change in the emp table.
Part C (15)
1. Write a PL/SQL block to calculate the total salary of the employees of a given department
2. Using procedure calculate the number of employees hired in each department every year.

FPB II CHN 2006

Page 3 of 3

You might also like