Sunteți pe pagina 1din 138

CS352

ADVANCE
DATA ALL IN
SOURCE BY
JAYSON C.
LUCENA

JAYSON C.LUCENA
CREATOR
Q1:80
It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Redo Log Buffer
b. Large Pool
c. Java Pool
d. Data Buffer Cache
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
It is also known as specific connection of a user to an instance through a user process
Select one:
a. Database Instance
b. Session
c. Connection
d. isqlPlus*
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that automatically connects to other databases involved in
in- doubt distributed transactions
Select one:
a. Checkpoint Process (CKPT)
b. Archiver Processes (ARCn)
c. Recoverer Process
d. Log Writer Process (LGWR)
Question 4
Answer saved
Marked out of 1.00
Flag question

Question text
It is a type of process structure that cleans up the database buffer cache
Select one:
a. Checkpoint Process (CKPT)
b. Process Monitor Process (PMON)
c. Log Writer Process (LGWR)
d. Database Writer Process (DBWn)
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
Also known as Oracle Database backup and restore operations
Select one:
a. Java Pool
b. Data Buffer Cache
c. Redo Log Buffer
d. Large Pool
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Database Server
b. Oracle Storage
c. Oracle Database
d. Databank
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that records checkpoint information in Control file on each
data file header
Select one:
a. Process Monitor Process (PMON)
b. Checkpoint Process (CKPT)
c. Log Writer Process (LGWR)
d. Database Writer Process (DBWn)
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication between a user process and an instance
Select one:
a. isqlPlus*
b. Session
c. Database Instance
d. Connection
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Log Writer Process (LGWR)
b. Recoverer Process
c. Archiver Processes (ARCn)
d. Checkpoint Process (CKPT)
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Checkpoint Process (CKPT)
b. Log Writer Process (LGWR)
c. Process Monitor Process (PMON)
d. Database Writer Process (DBWn)

Q2:80
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR
WITH GRANT OPTION;
b. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR
WITH GRANT OPTION;
c. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR
WITH GRANT OPTION;
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Schema
b. System
c. Object
d. Table / View
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to remove a privilege granted to a user.
Select one:
a. REMOVE
b. DELETE
c. CANCEL
d. REVOKE
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR;
b. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR;
c. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;
d. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR;
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following System Privileges is not part of SYSTEM privilege?
Select one:
a. CREATE TABLE
b. CREATE SESSION
c. CREAT VIEW
d. CREATE INDEX
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type a Oracle environment where Oracle Products run.
Select one:
a. ORACLE_HOME
b. ORACLE_SID
c. ORACLE_WAREHOUSE
d. ORACLE_BASE
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
This is also known collection of objects such as tables, views, and sequences.
Select one:
a. System
b. Schema
c. Table / View
d. Object
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
It is a named group of related privileges that can be granted to the user. This method
makes it easier to revoke and maintain privileges.
Select one:
a. Character
b. Role
c. Operator
d. User
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Backing up the database
Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
b. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance
c. Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
Backing up the database
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
In planning to install Oracle which of the following is not important to consider.
Select one:
a. Are there prerequisite steps that must be performed by someone other than the DBA?
b. Does the hardware involved meet the minimum required specifications?
c. Type of Oracle software .
d. Any Oracle version will do even when multiple products are involved.

Q3
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
It is the key in solving the problems of information management.
Select one:
a. Oracle Storage
b. Oracle Database
c. Database
d. Database Server
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
It is part of the System Global Area which is used to provide memory for Oracle Streams
processes
Select one:
a. Java Pool
b. Redo Log Buffer
c. Large Pool
d. Data Buffer Cache
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;
b. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR
WITH GRANT OPTION;
c. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR
WITH GRANT OPTION;
Question 4
Answer saved
Marked out of 1.00
Flag question

Question text
Which of the following is the correct example of changing a password to user ANNA from
ANNA01 to AN01?
Select one:
a. ALTER USER ANNA
IDENTIFIED BY AN01;
b. ALTER USER ANNA
IDENTIFIED B01 TO AN01;
c. ALTER OLD USER ANNA
IDENTIFIED BY AN01;
d. ALTER USER ANNA
IDENTIFIED BY NEW PASSWORD B@1;
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files.
Select one:
a. Large Pool
b. Redo Log Buffer
c. Data Buffer Cache
d. Java Pool
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of selecting all columns from employees
table using the user BEN?
Select one:
a. SELECT * FROM STUDENT BY USER BEN;
b. SELECT * FROM SYSTEM.STUDENT BY USER BEN;
c. SELECT * FROM SYSTEM.STUDENT;
d. SELECT * FROM STUDENT
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Recoverer Process
b. Archiver Processes (ARCn)
c. Checkpoint Process (CKPT)
d. Log Writer Process (LGWR)
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication pathway between a user process and an Oracle Database instance.
Select one:
a. Connection
b. User process
c. Communication
d. session
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that gain access to the database
Select one:
a. Schema
b. Table / View
c. Object
d. System
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not included in the optional requirement for operating system of
oracle database?
Select one:
a. Dba
b. Asmoper
c. Asmdba
d. asmadmin
Question 11
Answer saved
Marked out of 1.00

Flag question

Question text
This is use to connect to the Oracle instance and is started when a user establishes a
session
Select one:
a. User process
b. Server process
c. Connection
d. Communication
Question 12
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Log Writer Process (LGWR)
b. Database Writer Process (DBWn)
c. Process Monitor Process (PMON)
d. Checkpoint Process (CKPT)
Question 13
Answer saved
Marked out of 1.00

Flag question

Question text
Holds information about changes made to the database
Select one:
a. Java Pool
b. Redo Log Buffer
c. Data Buffer Cache
d. Large Pool
Question 14
Answer saved
Marked out of 1.00

Flag question

Question text
Also known as Oracle Database backup and restore operations
Select one:
a. Data Buffer Cache
b. Redo Log Buffer
c. Large Pool
d. Java Pool
Question 15
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication between a user process and an instance
Select one:
a. Database Instance
b. Session
c. Connection
d. isqlPlus*
Question 16
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not included in the oracle environment?
Select one:
a. Oracle_instance
b. oracle_base
c. oracle_sid
d. NSL_LANG
Question 17
Answer saved
Marked out of 1.00

Flag question

Question text
It holds information about changes made to the database
Select one:
a. Redo Log Buffer
b. Data Buffer Cache
c. Large Pool
d. Java Pool
Question 18
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR;
b. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR;
c. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;
d. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR;
Question 19
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following System Privileges is not part of SYSTEM privilege?
Select one:
a. CREATE SESSION
b. CREATE TABLE
c. CREAT VIEW
d. CREATE INDEX
Question 20
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example revoking a priviledge to INSERT, UPDATE
and DELETE to USER ANNA?
Select one:
a. REVOKE INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA;
b. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
ON USER ANNA;
c. REVOKE INSERT, UPDATE, DELETE
TO EMPLOYEES
ON USER ANNA;
d. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO USER ANNA;
Question 21
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Object
b. System
c. Schema
d. Table / View
Question 22
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not part or Oracle Installation System Requirement.
Select one:
a. File Manager
b. Operating System
c. Disk Space
d. Memory
Question 23
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type process structure that cleans up the database buffer cache
Select one:
a. Log Writer Process (LGWR)
b. Database Writer Process (DBWn)
c. Checkpoint Process (CKPT)
d. Process Monitor Process (PMON)
Question 24
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Checkpoint Process (CKPT)
b. Process Monitor Process (PMON)
c. Database Writer Process (DBWn)
d. Log Writer Process (LGWR)
Question 25
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type process structure that records checkpoint information in Control file on each
data file header.
Select one:
a. Process Monitor Process (PMON)
b. Checkpoint Process (CKPT)
c. Database Writer Process (DBWn)
d. Log Writer Process (LGWR)
Question 26
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of creating a user ANNA with password
ANN01?
Select one:
a. CREATE USER ANNA
IDENTIFIED BY PASSWORD ANN01;
b. CREATE USER ANNA
PASSWORD ANN01;
c. CREATE USER ANNA
IDENTIFIED BY ANN01;
d. CREATE ANNA
IDENTIFIED BY ANN01;
Question 27
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of granting create session and create table
to user ANNA?
Select one:
a. GRANT SESSION,TABLE
TO ANNA;
b. GRANT CREATE SESSION, CREATE TABLE
TO ANNA;
c. GRANT CREATE SESSION, TABLE
TO ANNA;
d. GRANT CREATE SESSION, CREATE TABLE
TO USER ANNA;
Question 28
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of granting INSERT, UPDATE and DELETE
to user ANNA with an option to pass the privilege to other user?
Select one:
a. GRANT INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO ANNA
WITH GRANT OPTION;
b. GRANT INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA
WITH PRIVILEGE GRANT OPTION;
c. GRANT INSERT, UPDATE, DELETE
TO EMPLOYEES
ON ANNA
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA
WITH GRANT OPTION;
Question 29
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that automatically connects to other databases involved in
in- doubt distributed transactions
Select one:
a. Recoverer Process
b. Log Writer Process (LGWR)
c. Checkpoint Process (CKPT)
d. Archiver Processes (ARCn)
Question 30
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that cleans up the database buffer cache
Select one:
a. Process Monitor Process (PMON)
b. Database Writer Process (DBWn)
c. Log Writer Process (LGWR)
d. Checkpoint Process (CKPT)
Q3 90

Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to insert a default value into a column.
Select one:
a. Not Null
b. Default
c. Check
d. Unqiue
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of create a default constraint.
Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
c. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE BSIT));
d. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) DEFAULT ‘Invalid’));
Question 3
Answer saved
Marked out of 1.00
Flag question

Question text
Which of the following statement is not true about Foreign Key constraint.
Select one:
a. The foreign key constraint also prevents invalid data from being inserted into the foreign
key column, because it has to be one of the values contained in the table it points to.
b. The foreign key constraint is used to prevent actions that would destroy links between
tables.
c. Ensures that the relationship between tables remain preserved as data is inserted,
deleted and modified
d. A foreign key in one table points to a foreign key in another table.
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to deactivate an integrity constraint.
Select one:
a. ENABLE CONSTRAINT
b. ON DELETE CASCADE
c. DROP CASCADE
d. DISABLE CONSTRAINT
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Primary key
b. Unique
c. Foreign key
d. Check
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique and Primary Key
b. Primary key
c. Unique
d. Foreign key
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
Which two of the following forms key itergrity constraint.
Select one:
a. Primary Key and Unique
b. Check and Not Null
c. Foreign Key and Unique
d. Foreign key and Primary Key
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of disabling an integrity constraint?
Select one:
a. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;
b. ALTER TABLE STUDENTS
MODIFY CONSTRAINT DISABLE usn_pk;
c. ALTER TABLE STUDENTS
DISABLE usn_pk;
d. ALTER TABLE STUDENTS
DROP CONSTRAINT usn_pk;
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to delete a primary key constraint in a parent table and will automatically drop
the foreign key constraint in the child table.
Select one:
a. ENABLE CONSTRAINT
b. DROP CASCADE
c. DISABLE CONSTRAINT
d. ON DELETE CASCADE
MIDTERM
Question 1
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of create a default constraint.
Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) DEFAULT ‘Invalid’));
c. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));
d. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE BSIT));
Question 2
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct representation of one-to-many relation?
Select one:
a.

b.

c.

d.
Question 3
Not yet answered
Marked out of 1.00
Flag question

Question text
A process where an application waits indefinitely to obtain any needed locks.
Select one:
a. Lock
b. Lockwait
c. Podlock
d. Deadlock
Question 4
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding primary key constraint?
Select one:
a. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY;
b. ALTER TABLE AUTHORS
ADD BK_ID PRIMARY KEY(NUMBER);
c. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY NUMBER;
d. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY(NUMBER);
Question 5
Not yet answered
Marked out of 1.00

Flag question

Question text
A state of the data where a transaction must be fully complete, saved (committed) or
completely undone (rolled back).
Select one:
a. Atomicity
b. Isolation
c. Consistency
d. Durability
Question 6
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following transaction rules is not included in the group?
Select one:
a. Redundancy
b. Atomicity
c. Isolation
d. Durability
Question 7
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of enabling constraint?
Select one:
a. ALTER BOOKS
ENABLE CONSTRAINT STUD_ID;
b. ALTER TABLE BOOKS
ENABLE CONSTRAINT STUD_ID;
c. ALTER TABLE BOOKS
ENABLE STUD_ID;
d. ALTER TABLE BOOKS
ENABLE COLUMN CONSTRAINT STUD_ID;
Question 8
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to insert a default value into a column.
Select one:
a. Unqiue
b. Not Null
c. Default
d. Check
Question 9
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_IT;

ROLLBACK;
Select one:
a. The manager_id that is equal to null has been updated to IT.
b. Savepoints are saved.
c. No changes made on employees table.
d. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater than 500 have been updated to secretary.
Question 10
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of lock that is acquired when an application updates, inserts, or deletes a row.
Select one:
a. Private Lock (P Lock)
b. Sharelock (S locks)
c. Exclusive Lock (X Lock)
d. Special Lock (Sp lock)
Question 11
Not yet answered
Marked out of 1.00

Flag question

Question text
This is also known as unit of work.
Select one:
a. Data Control Language
b. Database Transaction
c. Transaction
d. Database Processes
Question 12
Not yet answered
Marked out of 1.00

Flag question

Question text
An automatic rollback is issued by the oracle under the following circumstances.
Select one or more:
a. CREATE TABLE is issued
b. Closes the sqlplus normally by typing exit
c. Closes the sqlplus normally by closing he isqlplus using x button
d. The user encounter system failure
Question 13
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique
b. Foreign key
c. Unique and Primary Key
d. Primary key
Question 14
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of derived attribute?
Select one:

a.

b.
c. None

d.
Question 15
Not yet answered
Marked out of 1.00

Flag question

Question text
This gives the user more flexibility and control when changing data and they ensure data
consistency in the event of user process or system failure.
Select one:
a. Data control language
b. Transaction
c. Data manipulation language
d. DBMS
Question 16
Not yet answered
Marked out of 1.00
Flag question

Question text
A transaction start when the first ____________ is issued.
Select one:
a. DCL
b. SELECT
c. DDL
d. DML
Question 17
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct representation of one-to-one relation?
Select one:

a.
b.

c.

d.
Question 18
Not yet answered
Marked out of 1.00

Flag question

Question text
A state where a transaction data changes must be available, even in the event of
database failure.
Select one:
a. Atomicity
b. Consistency
c. durability
d. Isolation
Question 19
Not yet answered
Marked out of 1.00

Flag question

Question text
Which one (1) DCL (Data Control Langauge) is considered as part of Database
Transaction
Select one:
a. SAVEPOINT
b. ROLLBACK
c. ROLLBACK TO SAVEPOINT
d. COMMIT
Question 20
Not yet answered
Marked out of 1.00

Flag question

Question text
A transaction ends when either of the following occurs EXCEPT:
Select one:
a. The user closes the isqlplus
b. The user type in Commit
c. CREATE TABLE is issued
d. CREATE VIEW is issued
e. The user encounter system failure
f. The user type in Rollback
Question 21
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of transaction that rolls back the current transaction to the specified savepoint,
thereby discarding any changes or savepoint created after the savepoint to which you are
rolling back.
Select one:
a. COMMIT
b. ROLLBACK
c. SAVEPOINT
d. ROLLBACK TO SAVEPOINT
Question 22
Not yet answered
Marked out of 1.00

Flag question

Question text
It is a state of operational database with data at any given time.
Select one:
a. Physical Data Instance
b. Logical Data Instance
c. Data Instance
d. Database Instance
Question 23
Not yet answered
Marked out of 1.00

Flag question

Question text
Which two of the following forms key itergrity constraint.
Select one:
a. Foreign key and Primary Key
b. Foreign Key and Unique
c. Check and Not Null
d. Primary Key and Unique
Question 24
Not yet answered
Marked out of 1.00

Flag question

Question text
A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Unique
b. Foreign key
c. Check
d. Primary key
Question 25
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
Question 26
Not yet answered
Marked out of 1.00

Flag question

Question text
It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Referential Itegrity
b. Domain Intergrity
c. Entity Itegrity
d. Not Null
Question 27
Not yet answered
Marked out of 1.00
Flag question

Question text
Which one (1) Data Definition Language is considered as part of Database Transaction.
Select one:
a. CREATE VIEW
b. CREATE TABLE
c. CREATE TABLE/ALTER STATEMENT
Question 28
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of saving changes made on the table?
Select one:
a. Commit;
b. Type exit
c. Save;
d. CTRL + S
Question 29
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of lock that is acquired when an application wants to read and prevent others from
updating the same row.
Select one:
a. Special Lock (Sp lock)
b. Private Lock (P Lock)
c. Sharelock (S locks)
d. Exclusive Lock (X Lock)
Question 30
Not yet answered
Marked out of 1.00
Flag question

Question text
Which of the following is the correct example of multivalued attributes?
Select one:

a.
b. None

c.

d.
Question 31
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct representation of many-to-many relation?
Select one:

a.

b.

c.
d.
Question 32
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Foreign key
b. Unique
c. Check
d. Primary key
Question 33
Not yet answered
Marked out of 1.00

Flag question

Question text
This is acquired automatically as needed to support a transaction based on isolation
levels.
Select one:
a. Deadlock
b. Lock
c. Podlock
d. Lockwait
Question 34
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of referencing the BOOKS table to
AUTHORS?
Select one:
a. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID (BOOK_ID)
REFERENCES AUTHORS (BOOK_ID));
b. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCE AUTHORS (BOOK_ID));
c. CREATE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCES TABLE AUTHORS (BOOK_ID));
d. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCES AUTHORS (BOOK_ID));
Question 35
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of disabling an integrity constraint?
Select one:
a. ALTER TABLE STUDENTS
MODIFY CONSTRAINT DISABLE usn_pk;
b. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;
c. ALTER TABLE STUDENTS
DROP CONSTRAINT usn_pk;
d. ALTER TABLE STUDENTS
DISABLE usn_pk;
Question 36
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Check
b. Not Null
c. Unqiue
d. Default
Question 37
Not yet answered
Marked out of 1.00
Flag question

Question text
A state of the data where a transaction data must not be available to other transactions
until the original transaction is committed or rolled back.
Select one:
a. Consistency
b. Atomicity
c. Isolation
d. Durability
Question 38
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Unique
b. Foreign key
c. Check
d. Primary key
Question 39
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of transaction that is ends the current transactions by making all pending data
changes permanent.
Select one:
a. SAVEPOINT
b. ROLLBACK
c. COMMIT
d. ROLLBACK TO SAVEPOINT
Question 40
Not yet answered
Marked out of 1.00

Flag question

Question text
This is used to delete child row when a parent key is deleted.
Select one:
a. DISABLE CONSTRAINT
b. DROP CASCADE
c. ENABLE CONSTRAINT
d. ON DELETE CASCADE
Question 41
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90);

SAVEPOINT UPDATE_IT;

COMMIT;

ROLLBACK;
Select one:
a. The job_id of employees under department_id 50,90 have been updated to secretary.
b. Savepoints are saved.
c. The manager_id that is equal to null has been updated to IT.
d. Changes are made permanently.
Question 42
Not yet answered
Marked out of 1.00

Flag question

Question text
A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Check
b. Unique
c. Foreign key
d. Primary key
Question 43
Not yet answered
Marked out of 1.00

Flag question

Question text
An automatic commit is issued by the Oracle Server under the following circumstances.
Select one or more:
a. Closes the sqlplus normally by closing he isqlplus using x button
b. Closes the sqlplus normally by typing exit
c. The user encounter system failure
d. CREATE TABLE is issued
Question 44
Not yet answered
Marked out of 1.00

Flag question

Question text
A state of the data where a transaction must be fully compliant with the state of the
database as it was prior to the transaction.
Select one:
a. Consistency
b. Isolation
c. Durability
d. Atomicity
Question 45
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of an attributes?
Select one:
a. USN_ID
b. Department
c. Student
d. Teacher
Question 46
Not yet answered
Marked out of 1.00

Flag question

Question text
It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Entity Itegrity
b. Not Null
c. Domain Intergrity
d. Referential Itegrity
Question 47
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;
SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_SECRETARY;

ROLLBACK TO UPDATE_IT;
Select one:
a. No changes made on employees table.
b. The manager_id that is equal to null has been updated to IT.
c. Savepoints are discarded.
d. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater than 5000 have been updated to secretary
Question 48
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_IT;

ROLLBACK TO UPDATE_IT;
Select one:
a. Savepoints are discarded.
b. No changes made on employees table.
c. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater that 500 have been updated to secretary.
d. The manager_id that is equal to null has been updated to IT.
Question 49
Not yet answered
Marked out of 1.00

Flag question

Question text
This is used to enable a currentlt disable constraint in the table definition.
Select one:
a. ENABLE CONSTRAINT
b. DROP CASCADE
c. DISABLE CONSTRAINT
d. ON DELETE CASCADE
Question 50
Not yet answered
Marked out of 1.00

Flag question

Question text
This is the fundamental entity which introduces abstraction in a Database Management
System (DBMS).
Select one:
a. Entity Relationship Diagram
b. Entity Relationship Model
c. This is the fundamental entity which introduces abstraction in a Database Management
System (DBMS).
d. Data Model

Q1:80
It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Redo Log Buffer
b. Large Pool
c. Java Pool
d. Data Buffer Cache
Question 2
Answer saved
Marked out of 1.00
Flag question

Question text
It is also known as specific connection of a user to an instance through a user process
Select one:
a. Database Instance
b. Session
c. Connection
d. isqlPlus*
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that automatically connects to other databases involved in
in- doubt distributed transactions
Select one:
a. Checkpoint Process (CKPT)
b. Archiver Processes (ARCn)
c. Recoverer Process
d. Log Writer Process (LGWR)
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that cleans up the database buffer cache
Select one:
a. Checkpoint Process (CKPT)
b. Process Monitor Process (PMON)
c. Log Writer Process (LGWR)
d. Database Writer Process (DBWn)
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
Also known as Oracle Database backup and restore operations
Select one:
a. Java Pool
b. Data Buffer Cache
c. Redo Log Buffer
d. Large Pool
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Database Server
b. Oracle Storage
c. Oracle Database
d. Databank
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that records checkpoint information in Control file on each
data file header
Select one:
a. Process Monitor Process (PMON)
b. Checkpoint Process (CKPT)
c. Log Writer Process (LGWR)
d. Database Writer Process (DBWn)
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication between a user process and an instance
Select one:
a. isqlPlus*
b. Session
c. Database Instance
d. Connection
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Log Writer Process (LGWR)
b. Recoverer Process
c. Archiver Processes (ARCn)
d. Checkpoint Process (CKPT)
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Checkpoint Process (CKPT)
b. Log Writer Process (LGWR)
c. Process Monitor Process (PMON)
d. Database Writer Process (DBWn)

Q2:80
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR
WITH GRANT OPTION;
b. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR
WITH GRANT OPTION;
c. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR
WITH GRANT OPTION;
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Schema
b. System
c. Object
d. Table / View
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to remove a privilege granted to a user.
Select one:
a. REMOVE
b. DELETE
c. CANCEL
d. REVOKE
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR;
b. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR;
c. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;
d. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR;
Question 5
Answer saved
Marked out of 1.00

Flag question
Question text
Which of the following System Privileges is not part of SYSTEM privilege?
Select one:
a. CREATE TABLE
b. CREATE SESSION
c. CREAT VIEW
d. CREATE INDEX
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type a Oracle environment where Oracle Products run.
Select one:
a. ORACLE_HOME
b. ORACLE_SID
c. ORACLE_WAREHOUSE
d. ORACLE_BASE
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
This is also known collection of objects such as tables, views, and sequences.
Select one:
a. System
b. Schema
c. Table / View
d. Object
Question 8
Answer saved
Marked out of 1.00

Flag question
Question text
It is a named group of related privileges that can be granted to the user. This method
makes it easier to revoke and maintain privileges.
Select one:
a. Character
b. Role
c. Operator
d. User
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Backing up the database
Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
b. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance
c. Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
Backing up the database
Question 10
Answer saved
Marked out of 1.00
Flag question

Question text
In planning to install Oracle which of the following is not important to consider.
Select one:
a. Are there prerequisite steps that must be performed by someone other than the DBA?
b. Does the hardware involved meet the minimum required specifications?
c. Type of Oracle software .
d. Any Oracle version will do even when multiple products are involved.

Q3
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
It is the key in solving the problems of information management.
Select one:
a. Oracle Storage
b. Oracle Database
c. Database
d. Database Server
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
It is part of the System Global Area which is used to provide memory for Oracle Streams
processes
Select one:
a. Java Pool
b. Redo Log Buffer
c. Large Pool
d. Data Buffer Cache
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;
b. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR
WITH GRANT OPTION;
c. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR
WITH GRANT OPTION;
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of changing a password to user ANNA from
ANNA01 to AN01?
Select one:
a. ALTER USER ANNA
IDENTIFIED BY AN01;
b. ALTER USER ANNA
IDENTIFIED B01 TO AN01;
c. ALTER OLD USER ANNA
IDENTIFIED BY AN01;
d. ALTER USER ANNA
IDENTIFIED BY NEW PASSWORD B@1;
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files.
Select one:
a. Large Pool
b. Redo Log Buffer
c. Data Buffer Cache
d. Java Pool
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of selecting all columns from employees
table using the user BEN?
Select one:
a. SELECT * FROM STUDENT BY USER BEN;
b. SELECT * FROM SYSTEM.STUDENT BY USER BEN;
c. SELECT * FROM SYSTEM.STUDENT;
d. SELECT * FROM STUDENT
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Recoverer Process
b. Archiver Processes (ARCn)
c. Checkpoint Process (CKPT)
d. Log Writer Process (LGWR)
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication pathway between a user process and an Oracle Database instance.
Select one:
a. Connection
b. User process
c. Communication
d. session
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that gain access to the database
Select one:
a. Schema
b. Table / View
c. Object
d. System
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not included in the optional requirement for operating system of
oracle database?
Select one:
a. Dba
b. Asmoper
c. Asmdba
d. asmadmin
Question 11
Answer saved
Marked out of 1.00

Flag question

Question text
This is use to connect to the Oracle instance and is started when a user establishes a
session
Select one:
a. User process
b. Server process
c. Connection
d. Communication
Question 12
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Log Writer Process (LGWR)
b. Database Writer Process (DBWn)
c. Process Monitor Process (PMON)
d. Checkpoint Process (CKPT)
Question 13
Answer saved
Marked out of 1.00

Flag question

Question text
Holds information about changes made to the database
Select one:
a. Java Pool
b. Redo Log Buffer
c. Data Buffer Cache
d. Large Pool
Question 14
Answer saved
Marked out of 1.00

Flag question

Question text
Also known as Oracle Database backup and restore operations
Select one:
a. Data Buffer Cache
b. Redo Log Buffer
c. Large Pool
d. Java Pool
Question 15
Answer saved
Marked out of 1.00

Flag question

Question text
It is a communication between a user process and an instance
Select one:
a. Database Instance
b. Session
c. Connection
d. isqlPlus*
Question 16
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not included in the oracle environment?
Select one:
a. Oracle_instance
b. oracle_base
c. oracle_sid
d. NSL_LANG
Question 17
Answer saved
Marked out of 1.00

Flag question

Question text
It holds information about changes made to the database
Select one:
a. Redo Log Buffer
b. Data Buffer Cache
c. Large Pool
d. Java Pool
Question 18
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR;
b. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR;
c. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;
d. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR;
Question 19
Answer saved
Marked out of 1.00
Flag question

Question text
Which of the following System Privileges is not part of SYSTEM privilege?
Select one:
a. CREATE SESSION
b. CREATE TABLE
c. CREAT VIEW
d. CREATE INDEX
Question 20
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example revoking a priviledge to INSERT, UPDATE
and DELETE to USER ANNA?
Select one:
a. REVOKE INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA;
b. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
ON USER ANNA;
c. REVOKE INSERT, UPDATE, DELETE
TO EMPLOYEES
ON USER ANNA;
d. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO USER ANNA;
Question 21
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Object
b. System
c. Schema
d. Table / View
Question 22
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is not part or Oracle Installation System Requirement.
Select one:
a. File Manager
b. Operating System
c. Disk Space
d. Memory
Question 23
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type process structure that cleans up the database buffer cache
Select one:
a. Log Writer Process (LGWR)
b. Database Writer Process (DBWn)
c. Checkpoint Process (CKPT)
d. Process Monitor Process (PMON)
Question 24
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Checkpoint Process (CKPT)
b. Process Monitor Process (PMON)
c. Database Writer Process (DBWn)
d. Log Writer Process (LGWR)
Question 25
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type process structure that records checkpoint information in Control file on each
data file header.
Select one:
a. Process Monitor Process (PMON)
b. Checkpoint Process (CKPT)
c. Database Writer Process (DBWn)
d. Log Writer Process (LGWR)
Question 26
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of creating a user ANNA with password
ANN01?
Select one:
a. CREATE USER ANNA
IDENTIFIED BY PASSWORD ANN01;
b. CREATE USER ANNA
PASSWORD ANN01;
c. CREATE USER ANNA
IDENTIFIED BY ANN01;
d. CREATE ANNA
IDENTIFIED BY ANN01;
Question 27
Answer saved
Marked out of 1.00
Flag question

Question text
Which of the following is the correct example of granting create session and create table
to user ANNA?
Select one:
a. GRANT SESSION,TABLE
TO ANNA;
b. GRANT CREATE SESSION, CREATE TABLE
TO ANNA;
c. GRANT CREATE SESSION, TABLE
TO ANNA;
d. GRANT CREATE SESSION, CREATE TABLE
TO USER ANNA;
Question 28
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of granting INSERT, UPDATE and DELETE
to user ANNA with an option to pass the privilege to other user?
Select one:
a. GRANT INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO ANNA
WITH GRANT OPTION;
b. GRANT INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA
WITH PRIVILEGE GRANT OPTION;
c. GRANT INSERT, UPDATE, DELETE
TO EMPLOYEES
ON ANNA
WITH GRANT OPTION;
d. GRANT INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA
WITH GRANT OPTION;
Question 29
Answer saved
Marked out of 1.00
Flag question

Question text
It is a type of process structure that automatically connects to other databases involved in
in- doubt distributed transactions
Select one:
a. Recoverer Process
b. Log Writer Process (LGWR)
c. Checkpoint Process (CKPT)
d. Archiver Processes (ARCn)
Question 30
Answer saved
Marked out of 1.00

Flag question

Question text
It is a type of process structure that cleans up the database buffer cache
Select one:
a. Process Monitor Process (PMON)
b. Database Writer Process (DBWn)
c. Log Writer Process (LGWR)
d. Checkpoint Process (CKPT)

Q3 90

Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to insert a default value into a column.
Select one:
a. Not Null
b. Default
c. Check
d. Unqiue
Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of create a default constraint.
Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
c. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE BSIT));
d. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) DEFAULT ‘Invalid’));
Question 3
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following statement is not true about Foreign Key constraint.
Select one:
a. The foreign key constraint also prevents invalid data from being inserted into the foreign
key column, because it has to be one of the values contained in the table it points to.
b. The foreign key constraint is used to prevent actions that would destroy links between
tables.
c. Ensures that the relationship between tables remain preserved as data is inserted,
deleted and modified
d. A foreign key in one table points to a foreign key in another table.
Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to deactivate an integrity constraint.
Select one:
a. ENABLE CONSTRAINT
b. ON DELETE CASCADE
c. DROP CASCADE
d. DISABLE CONSTRAINT
Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Primary key
b. Unique
c. Foreign key
d. Check
Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique and Primary Key
b. Primary key
c. Unique
d. Foreign key
Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
Which two of the following forms key itergrity constraint.
Select one:
a. Primary Key and Unique
b. Check and Not Null
c. Foreign Key and Unique
d. Foreign key and Primary Key
Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of disabling an integrity constraint?
Select one:
a. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;
b. ALTER TABLE STUDENTS
MODIFY CONSTRAINT DISABLE usn_pk;
c. ALTER TABLE STUDENTS
DISABLE usn_pk;
d. ALTER TABLE STUDENTS
DROP CONSTRAINT usn_pk;
Question 10
Answer saved
Marked out of 1.00

Flag question

Question text
This is used to delete a primary key constraint in a parent table and will automatically drop
the foreign key constraint in the child table.
Select one:
a. ENABLE CONSTRAINT
b. DROP CASCADE
c. DISABLE CONSTRAINT
d. ON DELETE CASCADE

MIDTERM
Question 1
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of create a default constraint.
Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) DEFAULT ‘Invalid’));
c. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));
d. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE BSIT));
Question 2
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct representation of one-to-many relation?
Select one:
a.

b.

c.

d.
Question 3
Not yet answered
Marked out of 1.00

Flag question

Question text
A process where an application waits indefinitely to obtain any needed locks.
Select one:
a. Lock
b. Lockwait
c. Podlock
d. Deadlock
Question 4
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding primary key constraint?
Select one:
a. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY;
b. ALTER TABLE AUTHORS
ADD BK_ID PRIMARY KEY(NUMBER);
c. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY NUMBER;
d. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY(NUMBER);
Question 5
Not yet answered
Marked out of 1.00

Flag question

Question text
A state of the data where a transaction must be fully complete, saved (committed) or
completely undone (rolled back).
Select one:
a. Atomicity
b. Isolation
c. Consistency
d. Durability
Question 6
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following transaction rules is not included in the group?
Select one:
a. Redundancy
b. Atomicity
c. Isolation
d. Durability
Question 7
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of enabling constraint?
Select one:
a. ALTER BOOKS
ENABLE CONSTRAINT STUD_ID;
b. ALTER TABLE BOOKS
ENABLE CONSTRAINT STUD_ID;
c. ALTER TABLE BOOKS
ENABLE STUD_ID;
d. ALTER TABLE BOOKS
ENABLE COLUMN CONSTRAINT STUD_ID;
Question 8
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to insert a default value into a column.
Select one:
a. Unqiue
b. Not Null
c. Default
d. Check
Question 9
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_IT;

ROLLBACK;
Select one:
a. The manager_id that is equal to null has been updated to IT.
b. Savepoints are saved.
c. No changes made on employees table.
d. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater than 500 have been updated to secretary.
Question 10
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of lock that is acquired when an application updates, inserts, or deletes a row.
Select one:
a. Private Lock (P Lock)
b. Sharelock (S locks)
c. Exclusive Lock (X Lock)
d. Special Lock (Sp lock)
Question 11
Not yet answered
Marked out of 1.00

Flag question

Question text
This is also known as unit of work.
Select one:
a. Data Control Language
b. Database Transaction
c. Transaction
d. Database Processes
Question 12
Not yet answered
Marked out of 1.00

Flag question

Question text
An automatic rollback is issued by the oracle under the following circumstances.
Select one or more:
a. CREATE TABLE is issued
b. Closes the sqlplus normally by typing exit
c. Closes the sqlplus normally by closing he isqlplus using x button
d. The user encounter system failure
Question 13
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique
b. Foreign key
c. Unique and Primary Key
d. Primary key
Question 14
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of derived attribute?
Select one:

a.

b.
c. None

d.
Question 15
Not yet answered
Marked out of 1.00

Flag question

Question text
This gives the user more flexibility and control when changing data and they ensure data
consistency in the event of user process or system failure.
Select one:
a. Data control language
b. Transaction
c. Data manipulation language
d. DBMS
Question 16
Not yet answered
Marked out of 1.00

Flag question

Question text
A transaction start when the first ____________ is issued.
Select one:
a. DCL
b. SELECT
c. DDL
d. DML
Question 17
Not yet answered
Marked out of 1.00
Flag question

Question text
Which of the following is the correct representation of one-to-one relation?
Select one:

a.
b.

c.

d.
Question 18
Not yet answered
Marked out of 1.00

Flag question

Question text
A state where a transaction data changes must be available, even in the event of
database failure.
Select one:
a. Atomicity
b. Consistency
c. durability
d. Isolation
Question 19
Not yet answered
Marked out of 1.00

Flag question

Question text
Which one (1) DCL (Data Control Langauge) is considered as part of Database
Transaction
Select one:
a. SAVEPOINT
b. ROLLBACK
c. ROLLBACK TO SAVEPOINT
d. COMMIT
Question 20
Not yet answered
Marked out of 1.00

Flag question

Question text
A transaction ends when either of the following occurs EXCEPT:
Select one:
a. The user closes the isqlplus
b. The user type in Commit
c. CREATE TABLE is issued
d. CREATE VIEW is issued
e. The user encounter system failure
f. The user type in Rollback
Question 21
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of transaction that rolls back the current transaction to the specified savepoint,
thereby discarding any changes or savepoint created after the savepoint to which you are
rolling back.
Select one:
a. COMMIT
b. ROLLBACK
c. SAVEPOINT
d. ROLLBACK TO SAVEPOINT
Question 22
Not yet answered
Marked out of 1.00

Flag question

Question text
It is a state of operational database with data at any given time.
Select one:
a. Physical Data Instance
b. Logical Data Instance
c. Data Instance
d. Database Instance
Question 23
Not yet answered
Marked out of 1.00

Flag question

Question text
Which two of the following forms key itergrity constraint.
Select one:
a. Foreign key and Primary Key
b. Foreign Key and Unique
c. Check and Not Null
d. Primary Key and Unique
Question 24
Not yet answered
Marked out of 1.00

Flag question

Question text
A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Unique
b. Foreign key
c. Check
d. Primary key
Question 25
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
Question 26
Not yet answered
Marked out of 1.00

Flag question

Question text
It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Referential Itegrity
b. Domain Intergrity
c. Entity Itegrity
d. Not Null
Question 27
Not yet answered
Marked out of 1.00

Flag question

Question text
Which one (1) Data Definition Language is considered as part of Database Transaction.
Select one:
a. CREATE VIEW
b. CREATE TABLE
c. CREATE TABLE/ALTER STATEMENT
Question 28
Not yet answered
Marked out of 1.00
Flag question

Question text
Which of the following is the correct example of saving changes made on the table?
Select one:
a. Commit;
b. Type exit
c. Save;
d. CTRL + S
Question 29
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of lock that is acquired when an application wants to read and prevent others from
updating the same row.
Select one:
a. Special Lock (Sp lock)
b. Private Lock (P Lock)
c. Sharelock (S locks)
d. Exclusive Lock (X Lock)
Question 30
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of multivalued attributes?
Select one:

a.
b. None

c.
d.
Question 31
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct representation of many-to-many relation?
Select one:

a.

b.

c.
d.
Question 32
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Foreign key
b. Unique
c. Check
d. Primary key
Question 33
Not yet answered
Marked out of 1.00

Flag question

Question text
This is acquired automatically as needed to support a transaction based on isolation
levels.
Select one:
a. Deadlock
b. Lock
c. Podlock
d. Lockwait
Question 34
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of referencing the BOOKS table to
AUTHORS?
Select one:
a. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID (BOOK_ID)
REFERENCES AUTHORS (BOOK_ID));
b. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCE AUTHORS (BOOK_ID));
c. CREATE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCES TABLE AUTHORS (BOOK_ID));
d. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCES AUTHORS (BOOK_ID));
Question 35
Not yet answered
Marked out of 1.00
Flag question

Question text
Which of the following is the correct example of disabling an integrity constraint?
Select one:
a. ALTER TABLE STUDENTS
MODIFY CONSTRAINT DISABLE usn_pk;
b. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;
c. ALTER TABLE STUDENTS
DROP CONSTRAINT usn_pk;
d. ALTER TABLE STUDENTS
DISABLE usn_pk;
Question 36
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Check
b. Not Null
c. Unqiue
d. Default
Question 37
Not yet answered
Marked out of 1.00

Flag question

Question text
A state of the data where a transaction data must not be available to other transactions
until the original transaction is committed or rolled back.
Select one:
a. Consistency
b. Atomicity
c. Isolation
d. Durability
Question 38
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Unique
b. Foreign key
c. Check
d. Primary key
Question 39
Not yet answered
Marked out of 1.00

Flag question

Question text
A type of transaction that is ends the current transactions by making all pending data
changes permanent.
Select one:
a. SAVEPOINT
b. ROLLBACK
c. COMMIT
d. ROLLBACK TO SAVEPOINT
Question 40
Not yet answered
Marked out of 1.00

Flag question

Question text
This is used to delete child row when a parent key is deleted.
Select one:
a. DISABLE CONSTRAINT
b. DROP CASCADE
c. ENABLE CONSTRAINT
d. ON DELETE CASCADE
Question 41
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90);

SAVEPOINT UPDATE_IT;

COMMIT;

ROLLBACK;
Select one:
a. The job_id of employees under department_id 50,90 have been updated to secretary.
b. Savepoints are saved.
c. The manager_id that is equal to null has been updated to IT.
d. Changes are made permanently.
Question 42
Not yet answered
Marked out of 1.00

Flag question

Question text
A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Check
b. Unique
c. Foreign key
d. Primary key
Question 43
Not yet answered
Marked out of 1.00

Flag question

Question text
An automatic commit is issued by the Oracle Server under the following circumstances.
Select one or more:
a. Closes the sqlplus normally by closing he isqlplus using x button
b. Closes the sqlplus normally by typing exit
c. The user encounter system failure
d. CREATE TABLE is issued
Question 44
Not yet answered
Marked out of 1.00

Flag question

Question text
A state of the data where a transaction must be fully compliant with the state of the
database as it was prior to the transaction.
Select one:
a. Consistency
b. Isolation
c. Durability
d. Atomicity
Question 45
Not yet answered
Marked out of 1.00

Flag question

Question text
Which of the following is the correct example of an attributes?
Select one:
a. USN_ID
b. Department
c. Student
d. Teacher
Question 46
Not yet answered
Marked out of 1.00

Flag question

Question text
It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Entity Itegrity
b. Not Null
c. Domain Intergrity
d. Referential Itegrity
Question 47
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_SECRETARY;

ROLLBACK TO UPDATE_IT;
Select one:
a. No changes made on employees table.
b. The manager_id that is equal to null has been updated to IT.
c. Savepoints are discarded.
d. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater than 5000 have been updated to secretary
Question 48
Not yet answered
Marked out of 1.00

Flag question

Question text
Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_IT;

ROLLBACK TO UPDATE_IT;
Select one:
a. Savepoints are discarded.
b. No changes made on employees table.
c. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater that 500 have been updated to secretary.
d. The manager_id that is equal to null has been updated to IT.
Question 49
Not yet answered
Marked out of 1.00

Flag question

Question text
This is used to enable a currentlt disable constraint in the table definition.
Select one:
a. ENABLE CONSTRAINT
b. DROP CASCADE
c. DISABLE CONSTRAINT
d. ON DELETE CASCADE
Question 50
Not yet answered
Marked out of 1.00

Flag question

Question text
This is the fundamental entity which introduces abstraction in a Database Management
System (DBMS).
Select one:
a. Entity Relationship Diagram
b. Entity Relationship Model
c. This is the fundamental entity which introduces abstraction in a Database Management
System (DBMS).
d. Data Model

It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Database Writer Process (DBWn)

It is the key in solving the problems of information management.


Select one:
a. Database Server

It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Database Writer Process (DBWn)

It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Log Writer Process (LGWR)

It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Recoverer Process

It is a type of process structure that cleans up the database buffer cache


Select one:
a. Database Writer Process (DBWn)
b. Process Monitor Process (PMON)

It is also known as specific connection of a user to an instance through a user process


Select one:
a. isqlPlus*
b. Session

It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Object

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Large Pool
b. Data Buffer Cache

Also known as Oracle Database backup and restore operations


Select one:
a. Data Buffer Cache
b. Java Pool
c. Large Pool

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Large Pool
b. Java Pool
c. Data Buffer Cache

Which of the following are mandatory tablespaces that are created at the time of database
creation
Select one:
a. Sysman and System
b. System and SysDba
c. System and Syshaux

It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Database Writer Process (DBWn)
b. Log Writer Process (LGWR)

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Redo Log Buffer
b. Java Pool
c. Data Buffer Cache

Which of the following are mandatory tablespaces that are created at the time of database
creation
Select one:
a. System and Syshaux

It is a type of process structure that records checkpoint information in Control file on each
data file header
Select one:
a. Log Writer Process (LGWR)
b. Process Monitor Process (PMON)
c. Checkpoint Process (CKPT)

It is a communication between a user process and an instance


Select one:
a. Database Instance
b. isqlPlus*
c. Connection

is the key in solving the problems of information management.


Select one:
a. Database Server

It is also known as specific connection of a user to an instance through a user process


Select one:
a. Session

Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;

Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;

It is a type of privilege that gain access to the database


Select one:
a. System

It is a type a Oracle environment where Oracle Products run.


Select one:
a. ORACLE_BASE
b. ORACLE_WAREHOUSE
c. ORACLE_SID
d. ORACLE_HOME

It is a named group of related privileges that can be granted to the user. This method
makes it easier to revoke and maintain privileges.
Select one:
a. Role

Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
Backing up the database
b. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance

Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
Backing up the database
b. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance

This is used to remove a privilege granted to a user.


Select one:
a. DELETE
b. CANCEL
c. REVOKE

Which of the following system privileges is not part of the task by the database admin.?
Select one:
a. Managing user environment

Which of the following is not part or Oracle Installation System Requirement.


Select one:
a. Operating System
b. Memory
c. File Manager

This is also known collection of objects such as tables, views, and sequences.
Select one:
a. System
b. Schema

Which of the following is the correct syntax for creating a new user?
Select one:
a. CREATE ROLE hr
IDENTIFIED BY USER hr;
b. CREATE USER hr
IDENTIFIED BY hr;

It is a type of privilege that gain access to the database


Select one:
a. Table / View
b. Object
c. Schema
d. System

Which of the following is the correct example of passing a privilege (INSERT and UPDATE) to user HR
coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR;
b. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;
Which of the following is the correct example of passing a privilege (INSERT and UPDATE) to user HR
coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR;
b. GRANT ROLE INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO USER HR;
c. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;

Which of the following is the correct Disk space requirement when installing Oracle?
Select one:
a. 1GB
b. 3.8 GB

Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;

It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. Object

It represents the state of a current user login to the database instance.


Select one:
a. Session

It is a type of process structure that can collect transaction, redo data and transmit that
data to standby destinations
Select one:
a. Recoverer Process

This is also known collection of objects such as tables, views, and sequences.
Select one:
a. Schema

It is part of the System Global Area which is used to provide memory for Oracle Streams
processes
Select one:
a. Data Buffer Cache
b. Java Pool

It is a named group of related privileges that can be granted to the user. This method
makes it easier to revoke and maintain privileges.
Select one:
a. User
b. Character
c. Operator
d. Role

Also known as the application or tool that connects to the Oracle Database Processes
Select one:
a. Communication
b. User process
c. session

Which of the following system privileges is not part of the task by the database admin.?
Select one:
a. Managing user environment
Which of the following is the correct example of selecting all columns from employees
table using the user BEN?
Select one:
a. SELECT * FROM STUDENT
b. SELECT * FROM SYSTEM.STUDENT;

Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a SYSTEM?
Select one:
a. GRANT INSERT, UPDATE
ON EMPLOYEES
TO USER HR
WITH GRANT OPTION;
b. GRANT INSERT, UPDATE
ON EMPLOYEES
TO HR
WITH GRANT OPTION;

It is the key to solving the problems of information management.


Select one:
a. Database server

Which of the following is not included in the memory requirements of oracle database.
Select one:
a. Manager Database Control
b. 3GB for the ASM instance

It is a communication pathway between a user process and an Oracle Database instance.


Select one:
a. session
b. Communication
c. User process
d. Connection

Also known as Oracle Database backup and restore operations


Select one:
a. Large Pool

It is a type of privilege that gain access to the database


Select one:
a. System

It is also known as specific connection of a user to an instance through a user process


Select one:
a. Session
It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Oracle Storage
b. Database Server
c. Databank
d. Oracle Database

Which of the following is the correct example revoking a priviledge to INSERT, UPDATE
and DELETE to USER ANNA?
Select one:
a. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO USER ANNA;
b. REVOKE INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA;

It is a type of privilege that is used to manipulating the content of the database objects.
Select one:
a. System
b. Table / View
c. Schema
d. Object

Which of the following system privileges is not part of the task by the database admin.?
Select one:
a. Managing user environment

Which of the following is not included in the memory requirements of oracle database.
Select one:
a. 3GB for the ASM instance

It is the key in solving the problems of information management.


Select one:
a. Database
b. Oracle Storage
c. Oracle Database
d. Database Server

Which of the following is the correct example of passing a privilege (INSERT and
UPDATE) to user HR coming from a user scott?
Select one:
a. GRANT INSERT, UPDATE
ON SYSTEM.EMPLOYEES
TO HR;

It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Database Writer Process (DBWn)

Which of the following is not included in the disk requirements of oracle database?
Select one:
a. 1 GB of disk space in the /tmp directory
b. 4.5 GB for the Grid Infrastructure software
c. 3.8 GB for the Oracle Database software
d. 3 GB for the preconfigured database (required)

Which of the following is the correct example revoking a priviledge to INSERT, UPDATE
and DELETE to USER ANNA?
Select one:
a. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
ON USER ANNA;
b. REVOKE INSERT, UPDATE, DELETE
FROM EMPLOYEES
TO USER ANNA;
c. REVOKE INSERT, UPDATE, DELETE
ON EMPLOYEES
TO ANNA;
It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Oracle Database

Which of the following is not part or Oracle Installation System Requirement.


Select one:
a. Memory
b. File Manager
Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files.
Select one:
a. Java Pool
b. Redo Log Buffer
c. Data Buffer Cache

It is a type of process structure that writes the redo log buffer to a redo log file on disk
Select one:
a. Process Monitor Process (PMON)
b. Database Writer Process (DBWn)
c. Checkpoint Process (CKPT)
d. Log Writer Process (LGWR)

Which of the following is not included in the oracle environment?


Select one:
a. oracle_sid
b. NSL_LANG
c. oracle_base
d. Oracle_instance

Which of the following is the correct Disk space requirement when installing Oracle?
Select one:
a. 1GB
b. 3.8 GB

It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Oracle Storage
b. Oracle Database

It is a named group of related privileges that can be granted to the user. This method
makes it easier to revoke and maintain privileges.
Select one:
a. Character
b. Operator
c. Role

Which of the following is not included in the optional requirement for operating system of
oracle database?
Select one:
a. asmadmin
b. Asmdba
c. Asmoper
d. Dba

Which of the following is the correct example of changing a password to user ANNA from
ANNA01 to AN01?
Select one:
a. ALTER USER ANNA
IDENTIFIED BY AN01;

It is a type process structure that cleans up the database buffer cache


Select one:
a. Checkpoint Process (CKPT)
b. Database Writer Process (DBWn)
c. Log Writer Process (LGWR)
d. Process Monitor Process (PMON)

This is also known collection of objects such as tables, views, and sequences.
Select one:
a. Object
b. System
c. Schema

It is a type of process structure that cleans up the database buffer cache


Select one:
a. Process Monitor Process (PMON)
Also known as the application or tool that connects to the Oracle Database Processes
Select one:
a. Connection
b. User process
c. Communication
d. session

Which of the following is not included in the required operating system users and groups?
Select one:
a. Groups
b. Oinstall
c. sysdba
Which of the following system privileges is not part of the task by the database admin.?
Select one:
a. Managing user environment

It is a type process structure that records checkpoint information in Control file on each
data file header.
Select one:
a. Process Monitor Process (PMON)
b. Log Writer Process (LGWR)
c. Checkpoint Process (CKPT)

It is a type process structure that cleans up the database buffer cache


Select one:
a. Checkpoint Process (CKPT)
b. Database Writer Process (DBWn)
c. Process Monitor Process (PMON)

This is use to connect to the Oracle instance and is started when a user establishes a
session
Select one:
a. Connection
b. Server process

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Redo Log Buffer
b. Java Pool
c. Large Pool
d. Data Buffer Cache

It is a type process structure that cleans up the database buffer cache


Select one:
a. Log Writer Process (LGWR)
b. Checkpoint Process (CKPT)
c. Database Writer Process (DBWn)
d. Process Monitor Process (PMON)

Also known as Oracle Database backup and restore operations


Select one:
a. Redo Log Buffer
b. Java Pool
c. Large Pool
d. Data Buffer Cache

Which of the following follows the correct order of designing, implementing and mainting
and Oracle Database.
Select one:
a. Recovering from database failure
Evaluating the database server hardware
Installing the Oracle software
Creating, migrating, and opening the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Monitoring database performance
Planning the database and security strategy
Backing up the database
b. Evaluating the database server hardware
Installing the Oracle software
Planning the database and security strategy
Creating, migrating, and opening the database
Backing up the database
Enrolling system users and planning for their Oracle Network access.
Implementing the database design
Recovering from database failure
Monitoring database performance

It is a type of process structure that automatically connects to other databases involved in


in- doubt distributed transactions
Select one:
a. Recoverer Process

It is a type of privilege that gain access to the database


Select one:
a. Object
b. Schema
c. Table / View
d. System

Which of the following is not included in the oracle environment?


Select one:
a. Oracle_instance

Which of the following is not included in the memory requirements of oracle database.
Select one:
a. 1.5 GB for the ASM instance and Oracle Restart
b. Manager Database Control
c. 3GB for the ASM instance

Which of the following is the correct Disk space requirement when installing Oracle?
Select one:
a. 3 GB
b. 1GB
c. 3.4 GB
d. 3.8 GB

Which of the following is the correct example of granting SELECT and INSERT on table
EMPLOYEES to roleSTUDENT?
Select one:
a. GRANT SELECT, INSERT
TO EMPLOYEES
ON STUDENT;
b. GRANT SELECT, INSERT
ON EMPLOYEES
TO USER STUDENT;
c. GRANT SELECT, INSERT
ON EMPLOYEES
TO ROLE STUDENT;
d. GRANT SELECT, INSERT
ON EMPLOYEES
TO STUDENT;
Which of the following is the correct example of granting create session and create table
to user ANNA?
Select one:
a. GRANT CREATE SESSION, CREATE TABLE
TO USER ANNA;
b. GRANT SESSION,TABLE
TO ANNA;
c. GRANT CREATE SESSION, TABLE
TO ANNA;
d. GRANT CREATE SESSION, CREATE TABLE
TO ANNA;

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files.
Select one:
a. Java Pool
b. Large Pool
c. Redo Log Buffer
d. Data Buffer Cache

A transaction start when the first ____________ is issued.


Select one:
a. DML

A type of transaction that is ends the current transactions by making all pending data
changes permanent.
Select one:
a. COMMIT

This is acquired automatically as needed to support a transaction based on isolation


levels.
Select one:
a. Lock
Which one (1) Data Definition Language is considered as part of Database Transaction.
Select one:
a. CREATE TABLE

Which of the following is not possible causes of lock.


Select one:
a. Lost Update

This is also known as unit of work.


Select one:
a. Transaction

An automatic rollback is issued by the oracle under the following circumstances.


Select one or more:
a. Closes the sqlplus normally by typing exit
b. Closes the sqlplus normally by closing he isqlplus using x button

A type of lock that is acquired when an application wants to read and prevent others from
updating the same row.
Select one:
a. Exclusive Lock (X Lock)
b. Special Lock (Sp lock)
c. Sharelock (S locks)

Which one (1) DCL (Data Control Langauge) is considered as part of Database
Transaction
Select one:
a. SAVEPOINT
b. ROLLBACK
c. ROLLBACK TO SAVEPOINT
d. COMMIT

An automatic commit is issued by the Oracle Server under the following circumstances.
Select one or more:
a. The user encounter system failure
b. Closes the sqlplus normally by closing he isqlplus using x button
c. CREATE TABLE is issued
d. Closes the sqlplus normally by typing exit

Which one (1) Data Definition Language is considered as part of Database Transaction.
Select one:
a. CREATE VIEW
b. CREATE TABLE/ALTER STATEMENT
c. CREATE TABLE
A type of transaction that rolls back the current transaction to the specified savepoint,
thereby discarding any changes or savepoint created after the savepoint to which you are
rolling back.
Select one:
a. ROLLBACK TO SAVEPOINT

Which of the following transaction rules is not included in the group?


Select one:
a. Durability
b. Atomicity
c. Redundancy

Which one (1) DCL (Data Control Langauge) is considered as part of Database
Transaction
Select one:
a. COMMIT

It occurs when two or more applications wait indefinitely for a resources.


Select one:
a. Lock
b. Lock wait
c. Podlock
d. Deadlock

A transaction start when the first ____________ is issued.


Select one:
a. DDL
b. SELECT
c. DCL
d. DML

A type of lock that is acquired when an application updates, inserts, or deletes a row.
Select one:
a. Sharelock (S locks)
b. Exclusive Lock (X Lock)

This is used to delete a primary key constraint in a parent table and will automatically drop
the foreign key constraint in the child table.
Select one:
a. DROP CASCADE

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

This is used to deactivate an integrity constraint.


Select one:
a. ENABLE CONSTRAINT
b. DISABLE CONSTRAINT

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));

A type of constraint uniquely identifies each record in a database table.


Select one:
a. Unique
b. Foreign key
c. Check
d. Primary key

Which of the following is the correct example of disabling an integrity constraint?


Select one:
a. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;

Which two of the following forms key itergrity constraint.


Select one:
a. Foreign Key and Unique
b. Check and Not Null
c. Foreign key and Primary Key

It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Domain Intergrity

This is used to deactivate an integrity constraint.


Select one:
a. ON DELETE CASCADE
b. ENABLE CONSTRAINT
c. DISABLE CONSTRAINT

This is used to delete a primary key constraint in a parent table and will automatically drop
the foreign key constraint in the child table.
Select one:
a. DROP CASCADE

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));

It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Log Writer Process (LGWR)
b. Process Monitor Process (PMON)
c. Checkpoint Process (CKPT)
d. Database Writer Process (DBWn)

It is part of the System Global Area (SGA) that hold copies of data blocks that are read
from data files
Select one:
a. Data Buffer Cache

It is a type of process structure that records checkpoint information in Control file on each
data file header
Select one:
a. Process Monitor Process (PMON)
b. Log Writer Process (LGWR)
c. Database Writer Process (DBWn)
d. Checkpoint Process (CKPT)

It is part of the System Global Area which is used to provide memory for Oracle Streams
processes
Select one:
a. Large Pool
b. Data Buffer Cache
c. Redo Log Buffer
d. Java Pool

It is part of the System Global Area which is used to provide memory for Oracle Streams
processes
Select one:
a. Large Pool
b. Java Pool

Which of the following are mandatory tablespaces that are created at the time of database
creation
Select one:
a. System and Syshaux

It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Oracle Storage
b. Oracle Database

It is a type of process structure that automatically connects to other databases involved in


in- doubt distributed transactions
Select one:
a. Recoverer Process

Which of the following are mandatory tablespaces that are created at the time of database
creation
Select one:
a. Sysman and Sysdba
b. System and Syshaux

It is a type of process structure that writes modified (dirty) buffers in the database buffer
cache asynchronously while performing other processing to advance the checkpoint
Select one:
a. Log Writer Process (LGWR)
b. Process Monitor Process (PMON)
c. Checkpoint Process (CKPT)
d. Database Writer Process (DBWn)

It is a collection of data treated as a unit with the main purpose of storing and retrieving
related information in the database.
Select one:
a. Database Server
b. Databank
c. Oracle Storage
d. Oracle Database

It is also known as specific connection of a user to an instance through a user process


Select one:
a. Session

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));

It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Not Null
b. Domain Intergrity
A type of constraint uniquely identifies each record in a database table.
Select one:
a. Unique
b. Check
c. Foreign key
d. Primary key

This is used to enable a currentlt disable constraint in the table definition.


Select one:
a. ENABLE CONSTRAINT

A type of constraint uniquely identifies each record in a database table.


Select one:
a. Primary key

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Foreign key

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE = ‘BS’));
c. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
d. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Default
b. Not Null
c. Check

Which of the following is the correct example of create a default constraint.


Select one:
a. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20) CONSTRAINT CODE_df DEFAULT(CODE 'BSIT');
b. CREATE TABLE COURSE
(CODE CHAR(4) PRIMARY KEY,
TITLE VARCHAR(20),
CONSTRAINT CODE_df DEFAULT(CODE 'BSIT'));

A type of constraint uniquely identifies each record in a database table.


Select one:
a. Primary key

Which of the following is the correct example of disabling an integrity constraint?


Select one:
a. ALTER TABLE STUDENTS
DISABLE CONSTRAINT usn_pk;

A type of constraint that is used to limit the value range that can be placed in a column.
Select one:
a. Check

A state of the data where a transaction must be fully complete, saved (committed) or
completely undone (rolled back).
Select one:
a. Atomicity

Which of the following is the correct example of an attributes?


Select one:
a. USN_ID

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

Which of the following is the correct example of derived attribute?


Select one:

a.

b.

c.

Which of the following is the correct example of saving changes made on the table?
Select one:
a. Save;
b. Commit;
c. CTRL + S
d. Type exit

This is used to deactivate an integrity constraint.


Select one:
a. ENABLE CONSTRAINT
b. ON DELETE CASCADE
c. DROP CASCADE
d. DISABLE CONSTRAINT

Which of the following is the correct example of referencing the BOOKS table to
AUTHORS?
Select one:
a. CREATE TABLE BOOKS(
BOOK_ID NUMBER PRIMARY KEY NOT NULL,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID FOREIGN KEY(BOOK_ID)
REFERENCES AUTHORS (BOOK_ID));
Which of the following is the correct example of multivalued attributes?
Select one:

a.

It is the skeleton structure that represents the logical view of the entire database.
Select one:
a. Database Schema

An automatic commit is issued by the Oracle Server under the following circumstances.
Select one or more:
a. Closes the sqlplus normally by closing he isqlplus using x button
b. The user encounter system failure
c. Closes the sqlplus normally by typing exit
d. CREATE TABLE is issued

Which one (1) DCL (Data Control Langauge) is considered as part of Database
Transaction
Select one:
a. COMMIT
b. ROLLBACK

Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_IT;

ROLLBACK TO UPDATE_IT;
Select one:
a. Savepoints are discarded.
b. The manager_id that is equal to null has been updated to IT.
c. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater that 500 have been updated to secretary.

A transaction ends when either of the following occurs EXCEPT:


Select one:
a. The user type in Rollback
b. CREATE VIEW is issued

Which of the following is the correct example of dropping on delete cascade?


Select one:
a. ALTER TABLE AUTHORS
DROP PRIMARY KEY;
b. ALTER TABLE AUTHORS
DROP PRIMARY KEY CASCADE;

A state of the data where a transaction must be fully compliant with the state of the
database as it was prior to the transaction.
Select one:
a. Consistency

A state of the data where a transaction data must not be available to other transactions
until the original transaction is committed or rolled back.
Select one:
a. Atomicity
b. Isolation

This is acquired automatically as needed to support a transaction based on isolation


levels.
Select one:
a. Lock

This is used to delete child row when a parent key is deleted.


Select one:
a. ENABLE CONSTRAINT
b. DISABLE CONSTRAINT
c. ON DELETE CASCADE

Select one:
a. Referential Itegrity
b. Entity Itegrity
c. Not Null
d. Domain Intergrity

It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Domain Intergrity

A transaction start when the first ____________ is issued.


Select one:
a. DML

This is used to delete a primary key constraint in a parent table and will automatically drop
the foreign key constraint in the child table.
Select one:
a. DROP CASCADE

This is the fundamental entity which introduces abstraction in a Database Management


System (DBMS).
Select one:
a. Data Model
b. Entity Relationship Model
c. Entity Relationship Diagram

Which of the following is the correct representation of one-to-many relation?


Select one:

a.

b.

A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Check
b. Primary key
c. Foreign key
d. Unique

Which one (1) Data Definition Language is considered as part of Database Transaction.
Select one:
a. CREATE VIEW
b. CREATE TABLE

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

Which of the following is the correct example of adding primary key constraint?
Select one:
a. ALTER TABLE AUTHORS
ADD CONSTRAINT AUTHOR_ID PRIMARY KEY(NUMBER);

A type of transaction that is ends the current transactions by making all pending data
changes permanent.
Select one:
a. SAVEPOINT
b. ROLLBACK
c. COMMIT

A type of transaction that rolls back the current transaction to the specified savepoint,
thereby discarding any changes or savepoint created after the savepoint to which you are
rolling back.
Select one:
a. ROLLBACK TO SAVEPOINT

It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Not Null
b. Entity Itegrity
c. Referential Itegrity
d. Domain Intergrity

It is used to ensures that data values inside a database follow defines rules for values,
range and format
Select one:
a. Not Null
b. Domain Intergrity

This is acquired automatically as needed to support a transaction based on isolation


levels.
Select one:
a. Podlock
b. Lockwait
c. Deadlock
d. Lock

Which of the following statement is not true about Foreign Key constraint.
Select one:
a. The foreign key constraint is used to prevent actions that would destroy links between
tables.
b. The foreign key constraint also prevents invalid data from being inserted into the
foreign key column, because it has to be one of the values contained in the table it points
to.
c. Ensures that the relationship between tables remain preserved as data is inserted,
deleted and modified
d. A foreign key in one table points to a foreign key in another table.

A state of the data where a transaction must be fully complete, saved (committed) or
completely undone (rolled back).
Select one:
a. Atomicity
A state where a transaction data changes must be available, even in the event of
database failure.
Select one:
a. Atomicity
b. Consistency
c. Isolation
d. durability

This is used to deactivate an integrity constraint.


Select one:
a. DISABLE CONSTRAINT

Which of the following is not possible causes of lock.


Select one:
a. Uncommitted changes
b. Unnecessarily high locking levels
c. Lost Update

A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique and Primary Key
b. Foreign key

Which of the following is the correct example of adding a CHECK constraint where CODE
should start with the character ‘BS’.
Select one:
a. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE
VARCHAR(20),CONSTRAINT CODE_ck CHECK (CODE LIKE ‘%BS%’));
b. CREATE TABLE COURSE(CODE CHAR(4) PRIMARY KEY,TITLE VARCHAR(20),
CONSTRAINT CODE_ck CHECK (CODE LIKE ‘BS%’));

It is the skeleton structure that represents the logical view of the entire database.
Select one:
a. Entity Relationship Diagram
b. Entity Relationship Model
c. Database Schema

A type of constraint that is used to insert a default value into a column.


Select one:
a. Unqiue
b. Not Null
c. Default

This is a kind of mechanism, which liberalizes itself from actual data stored on the disk.
Select one:
a. Physical Data Independence
b. Physical Database Schema
c. Logical Data Independence

Supposed that a user performs the query as shown below, what will happen to the data?
UPDATE EMPLOYEES SET JOB_ID = ‘IT’, SALARY =10000
WHERE MANAGER_ID IS NULL;

SAVEPOINT UPDATE_IT;

UPDATE EMPLOYEES SET JOB_ID = ‘SECRETARY’


WHERE DEPARTMENT IN (50,90) OR SALARY > 500;

SAVEPOINT UPDATE_SECRETARY;

ROLLBACK TO UPDATE_IT;
Select one:
a. No changes made on employees table.
b. The manager_id that is equal to null is now change to IT and the job_id of employees
under department_id 50,90 or salary greater than 5000 have been updated to secretary
c. The manager_id that is equal to null has been updated to IT.

Which two of the following forms key itergrity constraint.


Select one:
a. Foreign Key and Unique
b. Check and Not Null
c. Foreign key and Primary Key

Which of the following is the correct example of an attributes?


Select one:
a. USN_ID

A type constraint that uniquely identifies each record in a database table and can be
applied on one or more column.
Select one:
a. Check
b. Unique

It is the skeleton structure that represents the logical view of the entire database.
Select one:
a. Data Model
b. Entity Relationship Diagram
c. Database Schema

A type of lock that is acquired when an application wants to read and prevent others from
updating the same row.
Select one:
a. Sharelock (S locks)

This is used to deactivate an integrity constraint.


Select one:
a. ENABLE CONSTRAINT
b. DISABLE CONSTRAINT

This is used to deactivate an integrity constraint.


Select one:
a. DROP CASCADE
b. ON DELETE CASCADE
c. DISABLE CONSTRAINT

Which of the following is the correct example of adding a check constraint on column
BOOK_ID to accept value greater that 10?
Select one:
a. CREATE TABLE BOOKS(
BOOK_ID NUMBER,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID CHECK KEY (BOOK_ID > 10));
b. CREATE TABLE BOOKS(
BOOK_ID NUMBER,
TITLE VARCHAR(10),
YEAR NUMBER(4),
CONSTRAINT BK_ID CHECK (BOOK_ID > 10));

A type of constraint that ensures the relationship between tables remain preserved as
data is inserted, deleted and modified.
Select one:
a. Unique and Primary Key
b. Primary key
c. Unique
d. Foreign key

This is a jpin clause that produces a cross-product of two or more tables.


Select one:
a. Cartesian Product

It is formed when a join condition is omitted.


Select one:
a. Cartesian Product

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees JOIN departments
USING (department_id);
Select one:
a. The given statement is not a valid join condition or is incorrect

SELECT e.employee_id, e.lastname,e.department_id, d.department_id,d.location_id


FROM employees e, departments d
WHERE e.department_id between 20 AND 50;
Select one:
a. The given statement would cause Cartesian or Cross Join

SELECT e.employee_id, e.lastname,e.department_id, d.department_id,d.location_id


FROM employees e, departments d
WHERE e.department_id between 20 AND 50;
Select one:
a. The given statement would cause Cartesian or Cross Join

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees LEFT JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement is Outer Join
b. The given statement is an Equijoin

It is the skeleton structure that represents the logical view of the entire database.
Select one:
a. Database Schema

This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Historical Database Schema
b. Physical Database Schema

It is an attribute or collection of attributes that uniquely identifies an entity among entity


set.
Select one:
a. Super Key
b. Key

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id FROM employees JOIN
departments WHERE employees.department_id = departments.department_id;
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is an Equijoin

Which of the following joins are mutually exclusive.


Select one:
a. Inner join and Outer Join
b. Left and Right Outer join
c. IN and Using clause
d. Natural Join and Using clause

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees LEFT JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement is Outer Join
b. The given statement would cause Cartesian or Cross Join
c. The given statement is not a valid join condition or is incorrect
d. The given statement is an Equijoin

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id IN (50, 60, 90);
Select one:
a. The given statement is Outer Join
b. The given statement is not a valid join condition or is incorrect
c. The given statement would cause Cartesian or Cross Join
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees FULL OUTER JOIN departments
ON (WHERE employees.department_id = departments.department_id);
Select one:
a. The given statement is Outer Join
b. The given statement is not a valid join condition or is incorrect

It is formed when a join condition is omitted.


Select one:
a. Cross Join
b. Self-Join
c. Cartesian Product

This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Scientific Database Schema
b. Physical Database Schema

Which of the following joins are mutually exclusive.


Select one:
a. IN and Using clause
b. Inner join and Outer Join
c. Natural Join and Using clause

A type of model that is based on the notion of real-world entities and relationships among
them.
Select one:
a. Entity Relationship Model

This is a jpin clause that produces a cross-product of two or more tables.


Select one:
a. Self-Join
b. Cartesian Product

This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Physical Database Schema
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id (+)= departments.department_id;
Select one:
a. The given statement would cause Cartesian or Cross Join
b. The given statement is Outer Join

This is a jpin clause that produces a cross-product of two or more tables.


Select one:
a. Cross Join
b. Self-Join
c. Natural Join
d. Cartesian Product

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id IN (50, 60, 90);
Select one:
a. The given statement is Outer Join
b. The given statement is not a valid join condition or is incorrect
c. The given statement would cause Cartesian or Cross Join

A single row of a table, which contains a single record for that relation.
Select one:
a. Tuple

A join condition used when a table has columns with match values.
Select one:
a. Cartesian Product
b. Natural Join
c. Cross Join
d. Self-Join

Which of the following joins are mutually exclusive.


Select one:
a. Natural Join and Using clause

This is a type of schema that has the power to change the physical data without impacting
the schema or logical data.
Select one:
a. Physical Database Schema
b. Logical Data Independence
c. Physical Data Independence

Which of the following is the correct example of an entity.


Select one:
a. Workers

It is a join of two or more table that returns only matched rows.


Select one:
a. Outer Join
b. Inner Join

It is join between two tables that return the result of an Inner Join as well as the results of
Left and Right joins.
Select one:
a. ON
b. Using
c. Outer Join

Which of the following is the correct example of an entity.


Select one:
a. Workers

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees RIGHT OUTER JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement would cause Cartesian or Cross Join

This is a kind of mechanism, which liberalizes itself from actual data stored on the disk.
Select one:
a. Logical Data Independence

It is formed when a join condition is omitted.


Select one:
a. Natural Join
b. Self-Join
c. Cross Join
d. Cartesian Product
ELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees JOIN departments
ON( employees.department_id (+)= departments.department_id);
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is an Equijoin
c. The given statement is Outer Join
SELECT employees.employee_id, employees.lastname,employees.department_id,
departments.department_id,departments.location_id
FROM employees LEFT JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement is an Equijoin

It is a state of operational database with data at any given time.


Select one:
a. Database Instance

This is a type of schema defines all the logical constraints that need to be applied on the
data stored. It defines tables, views, and integrity constraints.
Select one:
a. Logical Data Independence
b. Physical Database Schema
c. Logical Database Schema

This is a type of attribute that is made of more than one simple attribute.
Select one:
a. Derived Attribute
b. Composite Attribute

It is formed when a join condition is omitted.


Select one:
a. Self-Join
b. Natural Join
c. Cross Join
d. Cartesian Product

This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Table Prefixes
It is a state of operational database with data at any given time.
Select one:
a. Database Instance

A join condition used when a table has columns with match values.
Select one:
a. Self-Join

Which of the following joins are mutually exclusive.


Select one:
a. Left and Right Outer join
b. IN and Using clause
c. Natural Join and Using clause

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id FROM employees JOIN
departments WHERE employees.department_id = departments.department_id;
Select one:
a. The given statement is an Equijoin

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id FROM employees JOIN
departments WHERE employees.department_id = departments.department_id;
Select one:
a. The given statement is an Equijoin

It is join between two tables that return the result of an Inner Join as well as the results of
Left and Right joins.
Select one:
a. Using
b. Outer Join

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id IN (50, 60, 90);
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is an Equijoin
c. The given statement would cause Cartesian or Cross Join
This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Historical Database Schema
b. Scientific Database Schema
c. Physical Database Schema

This is a jpin clause that produces a cross-product of two or more tables.


Select one:
a. Natural Join
b. Self-Join
c. Cartesian Product

It is a join of two or more table that returns only matched rows.


Select one:
a. Inner Join

This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Column Alias
b. Table Alias
c. Column Prefixes
d. Table Prefixes

It is a state of operational database with data at any given time.


Select one:
a. Database Instance

This is a type of attribute that is made of more than one simple attribute.
Select one:
a. Composite Attribute

Which of the following joins are mutually exclusive.


Select one:
a. Left and Right Outer join
b. Natural Join and Using clause

A type of model that is based on the notion of real-world entities and relationships among
them.
Select one:
a. Database Schema
b. Data Model
c. Entity Relationship Diagram
d. Entity Relationship Model

This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Scientific Database Schema
b. Physical Database Schema

Which of the following joins are mutually exclusive.


Select one:
a. Left and Right Outer join
b. Natural Join and Using clause

A join condition that is based on all the columns in two or more table that have the same
name.
Select one:
a. Cartesian Product
b. Cross Join
c. Natural Join

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees, departments
WHERE employees.department_id (+)= departments.department_id;
Select one:
a. The given statement is Outer Join

This is a schema that pertains to the actual storage of data and its form of storage like files,
indices.
Select one:
a. Logical Database Schema
b. Scientific Database Schema
c. Historical Database Schema
d. Physical Database Schema

It is a state of operational database with data at any given time.


Select one:
a. Physical Data Instance
b. Data Instance
c. Logical Data Instance
d. Database Instance

This is a type of attribute that is made of more than one simple attribute.
Select one:
a. Composite Attribute

A single row of a table, which contains a single record for that relation.
Select one:
a. Cell
b. Values
c. Column
d. Tuple

SELECT e.employee_id, e.lastname,e.department_id, d.department_id,d.location_id


FROM employees e, departments d
WHERE e.department_id between 20 AND 50;
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is an Equijoin
c. The given statement would cause Cartesian or Cross Join

It is a state of operational database with data at any given time.


Select one:
a. Physical Data Instance
b. Data Instance
c. Database Instance

This is a type of schema that has the power to change the physical data without impacting
the schema or logical data.
Select one:
a. Logical Data Independence
b. Logical Database Schema
c. Physical Data Independence

This is a type of attribute that is made of more than one simple attribute.
Select one:
a. Derived Attribute
b. Simple Attribute
c. Composite Attribute
d. Natural Attribute

This is a join clause used when the columns in two or more tables have the same but of
different data type.
Select one:
a. Inner Join
b. Outer Join
c. ON
d. Using

A join condition that is based on all the columns in two or more table that have the same
name.
Select one:
a. Cartesian Product
b. Self-Join
c. Natural Join

This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Column Prefixes
b. Column Alias
c. Table Prefixes

This is a kind of mechanism, which liberalizes itself from actual data stored on the disk.
Select one:
a. Physical Database Schema
b. Physical Data Independence
c. Logical Data Independence

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees JOIN departments
ON( employees.department_id (+)= departments.department_id);
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement is Outer Join
If WITH READ ONLY is added on the view (see sample code below) what is/are the
restriction?
CREATE OR REPLACE VIEW STUD_VIEW (USN_ID, LASTNAME, FIRSTNAME,
COURSE)
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE
FROM STUDENTS
WHERE COURSE = ‘BSCS’)
WITH READ ONLY;
Select one:
a. NO DML operations allowed on this view.

Supposed that table: Workers and Employees is consists of the following values.
What will be the output if the user uses this PL/SQL.
UPDATE WORKERS
SET DEPARTMENT = (SELECT DEPARTMENT FROM EMPLOYEES WHERE
DEPARTMENT =’HR’);

a. All Workers department will be set to NULL

Which of the following is not true about complex view when using DELETE statement?
Select one:
a. All of the choices

What will be the output if the user uses this PL/SQL.


DELETE FROM WORKERS
WHERE LASTNAME = (SELECT LASTNAME FROM EMPLOYEES WHERE
LASTNAME=Cruz’)

Select one:
a. 0 rows are deleted in Employees table
b. Employee in Workers table with lastname equal to Cruz will be deleted.
c. 0 rows are deleted in Workers table

Based on the table EMPLOYEES, DEPARTMENTS and LOCATIONS.


From the given select statement below: What is the address of employee under the
department_name IT?
SELECT STREET_ADDRESS, CITY, DEPARTMENT_NAME, LOCATION_ID
FROM DEPARTMENTS
JOIN LOCATIONS
USING (LOCATION_ID);

Select one:
a. 460 RDBLOOR SY
b. 2004 CHARADE RD
c. MAGDALENCENTER
d. 2014 JABBERWACKY

Which of the following is the correct example of modifying a view where salary
manager_id is null?
Select one:
a. CREATE OR REPLACE VIEW WORKERS (EMPLOYEE_ID, SURNAME,
FIRSTNAME, MANAGER_ID)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME, MANAGER_ID)
FROM EMPLOYEES
WHERE MANAGER_ID IS NULL);

SELECT EMPLOYEES.EMPLOYEE_ID,
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS.DEPART
MENT_ID,DEPARTMENTS.LOCATION_ID
FROM EMPLOYEES JOIN DEPARTMENTS
USING (DEPARTMENT_ID);
Select one:
a. The given statement is an Equijoin
b. The given statement would case Cartesian or Cross Join
c. The given statement is Outer Join
d. The given statement is not a valid join condition or is incorrect

Which of the following is the correct example of creating a view where LASTNAME ends
with letter S rename LASTNAME to SURNAME?
Select one:
a. CREATE VIEW WORKERS (EMPLOYEE_ID, LASTNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME
FROM EMPLOYEES
WHERE SALARY LASTNAME LIKE '%S');
b. CREATE VIEW WORKERS (EMPLOYEE_ID, SURNAME, FIRSTNAME)
AS (EMPLOYEE_ID, LASTNAME, FIRSTNAME
FROM EMPLOYEES

What will be the output if the user uses this PL/SQL.


SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE ID > (SELECT ID FROM EMPLOYEES WHERE STATUS = ‘Probi’);
d. This will retrieve the record of Mortos and Santiago

If WITH READ ONLY is added on the view (see sample code below) what is/are the
restriction?
CREATE OR REPLACE VIEW STUD_VIEW (USN_ID, LASTNAME, FIRSTNAME,
COURSE)
AS (SELECT USN_ID, LASTNAME, FIRSTNAME, COURSE
FROM STUDENTS
WHERE COURSE = ‘BSCS’)
WITH READ ONLY;
Select one:
a. It restricts the users to add a value where course is equal to BSCS only
b. It restricts the users to add a value where course is not equal to BSCS
c. NO DML operations allowed on this view.

SELECT EMPLOYEES.EMPLOYEE_ID,
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS.DEPART
MENT_ID,DEPARTMENTS.LOCATION_ID
FROM EMPLOYEES JOIN DEPARTMENTS
USING (DEPARTMENT_ID);
Select one:
a. The given statement is not a valid join condition or is incorrect

Which of the following is the correct example of creating a subquery that copy the values
from employees table to workers table?
Select one:
a. INSERT INTO WORKERS(ID, NAME, POSITION)
FROM EMPLOYEES;
b. INSERT INTO WORKERS(ID, NAME, POSITION)
SELECT (ID, NAME, JOB_TITLE
FROM EMPLOYEES);
c. INSERT INTO WORKERS(ID, NAME, POSITION)
SELECT (ID, NAME, POSITION
FROM EMPLOYEES);

Which of the following is not true application of subquery in DML statements?


Select one:
a. Copy data from one table to another
b. Retrieve data from an inline view
c. Delete rows from one table based on rows in a another table
d. Merge one table to another table.
In the given complex view example what will be the possible output if this code is run?
CREATE OR REPLACE VIEW DEPT_EMP
AS (SELECT EMPLOYEE_ID, LASTNAME, DEPARTMENT_NAME
FROM EMPLOYEES JOIN DEPARTMENT)
Select one:
a. Cause an error because the JOIN condition is omitted.

SELECT EMPLOYEES.EMPLOYEE_ID,
EMPLOYEES.LASTNAME,EMPLOYEES.DEPARTMENT_ID,DEPARTMENTS.DEPART
MENT_ID,DEPARTMENTS.LOCATION_ID
FROM EMPLOYEES JOIN DEPARTMENTS
USING (DEPARTMENT_ID);
Select one:
a. The given statement is not a valid join condition or is incorrect

In the given complex view example what will be the possible output if this code is run?
CREATE OR REPLACE VIEW DEPT_EMP
AS (SELECT EMPLOYEE_ID, LASTNAME, DEPARTMENT_NAME
FROM EMPLOYEES JOIN DEPARTMENT)
Select one:
a. Cause an error because the JOIN condition is omitted.

Which of the following joins are mutually exclusive.


Select one:
a. Inner join and Outer Join
b. Left and Right Outer join
c. Natural Join and Using clause

Which of the following is not part of multiple row subqueries?


Select one:
a. IN
b. MAX

Which of the following is not part of comparison condition used in multiple row subquery.
Select one:
a. ALL
b. ANY
c. IN
d. =

This of the following is not part of comparison condition used in single row subquery.
Select one:
a. <
b. >
c. IN
Which of the following is the correct example of creating a subquery that will copy all
values from employees table to workers where job_id is equal to ST_CLERK;
Select one:
a. INSERT INTO WORKERS
SELECT * FROM EMPLOYEES
WHERE JOB_ID = ‘ST_CLERK’;
b. INSERT INTO WORKERS
(SELECT * FROM EMPLOYEES
WHERE JOB_ID = ‘ST_CLERK’);

Supposed that table: Workers and Employees is consists of the following values.
Which of the following is the correct example of copying data from WORKERS table to
EMPLOYEES table where the status is equal to ‘Regular’?

d. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)


SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;

Which of the following is not true rule to follow in writing PL/SQL that contains subquery?
Select one:
a. Enclose subqueries in double bracket symbol.

Supposed that table: Workers and Employees is consists of the following values.
Which of the following is the correct example of copying data from WORKERS table to
EMPLOYEES table where the status is equal to ‘Regular’?

a. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)


SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;

This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Table Alias
b. Column Alias
c. Column Prefixes
d. Table Prefixes

Which of the following is the correct query that will create a report that will display the
following: FIRTSNAME, SALARY with additional 1000 in employees salary, rename this
column as BONUS, then get the DEPARTMENT_NAME and DEPARTMENT_ID. Join the
table using ON condition.
Select one:
a. SELECT FIRSTNAME, SALARY + 1000 AS BONUS, DEPARTMENT_NAME,
D.DEPARTMENT_ID
FROM EMPLOYEES E JOIN DEPARTMENTS D
ON E.DEPARTMENT_ID = D.DEPARTMENT_ID;

Supposed that table: Workers and Employees is consists of the following va

What will be the output if the user uses this PL/SQL.


SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE ID > (SELECT ID FROM EMPLOYEES WHERE STATUS = ‘Probi’);
Select one:
a. This will retrieve the record of Mortos and Santiago

This is used to quality ambiguous column when joining two or more tables.
Select one:
a. Table Prefixes

This of the following is not part of comparison condition used in single row subquery.
Select one:
a. >
b. IN

This is a type of schema that has the power to change the physical data without impacting
the schema or logical data.
Select one:
a. Logical Data Independence
b. Physical Data Independence

Which of the following is the correct example of creating a subquery that copy the values
from employees table to workers table?
Select one:
a. INSERT INTO WORKERS(ID, NAME, POSITION)
SELECT (ID, NAME, POSITION
FROM EMPLOYEES);

SELECT employees.employee_id, employees.lastname,employees.department_id,


departments.department_id,departments.location_id
FROM employees RIGHT OUTER JOIN departments
ON( employees.department_id = departments.department_id);
Select one:
a. The given statement is not a valid join condition or is incorrect
b. The given statement would cause Cartesian or Cross Join

Supposed that table: Workers and Employees is consists of the following values.
Which of the following is the correct example of copying data from WORKERS table to
EMPLOYEES table where the status is equal to ‘Regular’?

Select one:
a. INSERT INTO EMPLOYEES(ID, LASTNAME, DEPARTMENT)
SELECT ID, LASTNAME, DEPARTMENT
FROM WORKERS
WHERE STATUS = ‘Regular’;
Supposed that table: Workers and Employees is consists of the following

values.

What will be the output if the user uses this PL/SQL.


UPDATE EMPLOYEES
SET LASTNAME = (SELECT LASTNAME FROM WORKERS WHERE
LASTNAME=’Soriano’)
WHERE ID=105;

Select one:
a. The lastname of Cruz from Employees table will be set to Soriano
b. The values of Employee with ID number 105 will be deleted
c. All Workers lastname will be set to NULL
d. The lastname of Cruz from Employees table will be set to NULL

A type of model that is based on the notion of real-world entities and relationships among
them.
Select one:
a. Data Model
b. Database Schema
c. Entity Relationship Model

In the given complex view example what will be the possible output if this code is run?
CREATE OR REPLACE VIEW DEPT_EMP
AS (SELECT EMPLOYEE_ID, LASTNAME, DEPARTMENT_NAME
FROM EMPLOYEES JOIN DEPARTMENT)

Select one:
a. The OR REPLACE on the code should be omitted.
b. It will successfully create the view that join 1 table to another table.
c. Missing with CHECK OPTION
d. Cause an error because the JOIN condition is omitted.

S-ar putea să vă placă și