TestQuestionPapers OracleApp
TestQuestionPapers OracleApp
Max Marks: 70
Duration: 2.5 Hrs
Assessment Parameters
Solution Completeness (all requirements addressed) – 20 %
Working solution for each requirement – 40 %
Comments – 20%
Coding standards – 20 %
_____________________________________________________________________________
1. Write the command to list the hidden files along with all files and directories.
2. Write a command to know, what are process running on server.
3. Write a command to create directory
4. Write a command to compare to two files
5. What is tree command?
6.Write a command to copy one directory to another location
7. Write a command to zip a file and unzip a file
8.Write a command to display current running process
9.Write a command to kill the jobs, those are working in background
10. Write a command to
i. to save and quit command in Vi editor
ii. quit without saving a file in Vi editor
Q2. Write shell script for the following: [Marks 5]
1. Write a shell script program to accept two numbers and display add, multiply of two
numbers.
2. Write shell script program to accept filename. Check for the input filename exits in
filesystem or not and give a appropriate message as output.
Capgemini Public
Module Test (Practical): Coding Test on UNIX and Oracle (SQL & PL/SQL)
Q2. 1. Create a procedure to accept department_id and raise amount as input. [Marks 10]
Check if job is clerk and salary is less than 5000 then give raise and update table
employees. Output will be the updated salaries.
2. write a procedure to display all information of EMPLOYEES table. Use
DBMS_OUTPUT.
.
Note: Take care of necessary validations and handle user and system defined exceptions
Q3. a. Write a function to accept the employee_id and return experience : [Marks 15]
In years with minimum 3 decimal ?
c. Write a database trigger store the deleted data of EMPLOYEES table in EMPDEL
table.
Q4. Write an anonymous single PL/SQL block to perform the following task:
Accept department as Input. Using FOR UPDATE and also CURRENT OF clause with
CURSORS, update the table employees and obtain the output of OLDSAL, NEWSAL
with their names, job and department for employees whose job is SH_CLERK or
SA_CLERK by 10% and 20% respectively.
________________________________________________________________________
Page 2 of 2
Capgemini Public