0% found this document useful (0 votes)
57 views4 pages

Oracle Exam

This document contains an Oracle exam with multiple choice and true/false questions about Oracle database concepts like transactions, locking, joins, and privileges. It also includes tasks to create a user, assign privileges to roles, change passwords, perform joins, and print data. The exam tests knowledge of key Oracle SQL and PL/SQL features.

Uploaded by

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

Oracle Exam

This document contains an Oracle exam with multiple choice and true/false questions about Oracle database concepts like transactions, locking, joins, and privileges. It also includes tasks to create a user, assign privileges to roles, change passwords, perform joins, and print data. The exam tests knowledge of key Oracle SQL and PL/SQL features.

Uploaded by

Student Ritwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Oracle Exam

Name:……………………………………………………………………………………………
Part One: Choose the correct Answer
1. Read Consistency guarantees that readers of the data see consistent
data that is currently undergoing change.
a) True
b) False
2. Implicit locking occurs for all SQL statements except COMMIT,ROLLBACK.
a) True
b) False
3. In Sql statements Keywords cannot be abbreviated or split across lines
a) True
b) False
4. Null Value Type is same as ZERO
a) True
b) False
5. Table alias gives a table a Permanent shorter name:
a) True
b) False
6. NVL function we use to ignore null values from the calculations
a) True
b) False
7. Currency, text and decimal are examples for _____ types.
a) Name
b) Data
c) Field
d) Both
8. If transaction is rolled back,
a) All users see the database as it existed After the transaction
began.
b) It Cancels all the transactions we made it
Oracle Exam
c) It Prints the Original Older Version Of data
d) It makes our transaction Permanent

Suppose, We have two Tables

Medicines Sales
Med_Id …………………….int Invoice_ID ..…….int
Med_Name…………………….varchar(50) Med_ID ..…….int
Med_Type…………………….varchar(50) Invoice_Type…….varchar(50)
Manufacture…………………….varchar(50) Date…………………. ..…….int
Manufacture_Date …………Date Quantity …………..…….int
Per_Price…………………….float Total………………………….float

9. We need to join these two tables using matching column:


a) Med_Type
b) Med_Id
c) Invoice_Type
d) Invoice_ID
10. The correct syntax to print and “Ivoice_id, Med_Name, Med_Type,
PerPrice, Quantity, Total” using ‘using clause’ statement is :
a) select * from medicines join sales;
b) select s.Ivoice_id, m.Med_Name, m.Med_Type, m.PerPrice,
s.Quantity, s.Total from medicines m join sales s using (Med_id);
c) select Ivoice_id, Med_Name, Med_Type, PerPrice, Quantity, Total
from medicines m join sales s using (Med_Type);
d) select Ivoice_id, Med_Name, Med_Type, PerPrice, Quantity, Total
from medicines m join sales s using(Med_Id);
11. In Sql Developer Character and Date column headings are Default:
a) Center Aligned
b) Right Aligned
c) Left Aligned
d) None
Oracle Exam
12. When a COMMIT or ROLLBACK statement is issued, locks on the affected
rows are
a) Released
b) Permanently or temporarily Saved
c) Canceled
d) All
13. The correct statement to give selectio privilage to user is :
a) GRANT select ON table1;
b) GRANT select to user1;
c) Grant Update to table1;
d) GRANT select ON table TO user1;
14. The correct syntax to select “Ivoice_id, Med_Name, Med_Type, PerPrice,
Quantity, Total” using NATURAL JOIN is:
a) select Ivoice_id, Med_Name, Med_Type, PerPrice, Quantity,
Total from medicines m NATURAL JOIN sales s on
(Med_Type);
b) select * from medicines NATURAL JOIN sales;
c) select Ivoice_id, Med_Name, Med_Type, PerPrice, Quantity,
Total from medicines m NATURAL JOIN sales;
d) None
15. All of these are System Privilages except:

a) CREATE SESSION

b) CREATE TABLE

c) ALTER TABLE

d) CREATE VIEW

16. The correct syntax to print all the columns of the the above two
tables(Medicines and Sales ) is :
a) SELECT * FROM Medicines s FULL JOIN Sales m ON (s.Med_id =
m.Med_id) ;
b) SELECT * FROM Medicines s FULL INNER JOIN Sales m ;
Oracle Exam
c) SELECT * FROM Medicines s JOIN Sales m ON (s.Med_id =
m.Med_id) ;
d) All are valid statements

Part Two: Solve all of the following Works


A. Create user;
B. Create role and give “creation of table,session and views”
and “select Privilage on (Ali.Medicines)” privilages;
C. Give the the role to the user you created in step one
D. Change the password of the user you created
E. Make sql join with the tables of employees,departments,and
locations
F. Print the first manufactured medicine from medicine table
G.
Part Three: Answer all these Questions
1) Give briefly explain on Implicit Transaction Processing?
2) What is Database languages and its types?
3) How Oracle locks data
4) Define the following
a. Transaction
b. Commit
c. Rollback
d. Savepoint

You might also like