0% found this document useful (0 votes)
10 views

Model Exam - Database Systems

The document contains a series of objective type questions related to database systems, covering fundamental and advanced concepts. Topics include data models, SQL commands, database normalization, and transaction control. Each question provides multiple-choice answers for the reader to select from.

Uploaded by

meyohannes2016
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Model Exam - Database Systems

The document contains a series of objective type questions related to database systems, covering fundamental and advanced concepts. Topics include data models, SQL commands, database normalization, and transaction control. Each question provides multiple-choice answers for the reader to select from.

Uploaded by

meyohannes2016
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Database Systems (Fund. + Adv.

) Objective Type Questions


1. Which of the following plays the most important role in representing information about
the real world in a database?
A. The data definition language. C. The buffer manager.
B. The data manipulation language. D. The data model.
2. One of the following database objects is used to project data in a desired format from
one or more tables?
A. Sequence C. View
B. Index D. Trigger
3. Identify the wrong statement about CLOB data type?
A. Cannot store unstructured data including text, image, video, and spatial data.
B. Can store up to eight terabytes of character data
C. Used to store binary large objects
D. Can store up to eight terabytes of binary data.
4. A column that has both unique and not null constraint is a?
A. Primary Key C. Composite Key
B. Foreign Key D. Check Constraint

5. If you want to drop a table called “Employee” and flush it out from the recyclebin also,
what could be the appropriate SQL statement to do so?

A. Drop Employee Purge C. Drop Table Employee Push


B. Drop table Employee D. Drop Table Employee Purge

6. The major difference between simple view and complex view is?
A. Simple view can be created on multiple tables using joins
B. Simple view is created on top of one table only
C. Complex View is just selection of columns from the table without any transformation
D. Simple view does not allow DML operation on it.
7. Identify the wrong statement about indexes?
A. Indexes cannot be modified but can be altered for analysis, rebuilding or stats
computation purposes.
B. Indexes are automatically dropped once the table has been dropped.
C. Indexes can be created automatically or manually
D. Manually created indexes are always unique
8. Null value (a column that doesn't has a definite value) denotes:

A. Unknown or unavailable C. Blank space for character values


B. Zero for numeric values D. All

9. Suppose that your manager is working on the quarterly budget for your organization.
As part of this activity, it is necessary to produce a listing of each employee's essential
details, but only for employees that are paid at least $25,000 annually. Identify the
appropriate SQL query to accomplish this task?
A. SELECT Employee_ID, Last_Name, First_Name, Salary FROM employees WHERE
Salary greater than or equal to 25000;
B. SELECT Employee_ID and Last_Name and First_Name and Salary FROM
employees WHERE Salary greater than or equal to 25000;
C. SELECT Employee_ID, Last_Name, First_Name, Salary FROM employees WHERE
Salary >= 25000;
D. SELECT Employee_ID & Last_Name & First_Name & Salary FROM employees
WHERE Salary >= 25000;
10. Consider the following SQL code:

SELECT department_id, AVG(Salary) FROM employees HAVING AVG(Salary) > 33000;


If you execute this SQL code, what will be the result?

A. Department_i
d
SE_5 3500
B. ERROR at line 1: not a single-group group function
0
C. Department_i
d

Department_i
D.
d
SE_5 Null
11. _______ creates a join between tables by displaying every possible record combination?

A. Left outer join C. Non-equality joins


B. Cross join D. Theta join

12. Which DDL command is used to flush out all records from a table but retaining the
table structure?

A. Drop C. Truncate
B. Alter D. Purge

13. One of the following is not a Transaction Control Language (TCL)?

A. Rollback C. SavePoint
B. Commit D. Abort

14. Consider the EMPLOYEES table which gets populated with newly hired employee
details during first quarter of every year. The clerical staff appends each employee
detail with a savepoint, so as to rollback any faulty data at any moment during the data
feeding activity. Note that he keeps the savepoint names same as the employee names.

INSERT INTO employees (employee_id, first_name, hire_date, job_id, salary, department_id) VALUES (105,
'Samuel',TO_DATE ('15-JAN-2013','SALES',10000,10);
SAVEPOINT Samuel;
INSERT INTO employees VALUES (106, 'Yohannes',TO_DATE ('15-JAN-2013','PROD',10000,20);
SAVEPOINT Yohannes;

Suppose, the data feeding operator realizes that he has wrongly entered the salary of
'Yohannes'. What should be the appropriate SQL statement in order to roll back the active
transaction and re-enter the employee details for Yohannes.

A. ROLLBACK TO SAVEPOINT Yohannes;


B. ROLLBACK TO SAVEPOINT Samuel;
C. ROLLBACK TO SAVEPOINT Yohannes, Samuel;
D. ROLLBACK TO SAVEPOINT Samuel, Yohannes;
15. The database schema is written in?
A. Transact Control Language B. Data Manipulation Language
C. Data Definition Language D. Data Control Language
16. _______is a method to remove different anomalies and bring a database to consistent
state?

A. Query Optimization C. Data Fragmentation


B. Database Normalization D. Data Sharding

17. Which phase of database normalization considers the concept of join dependence?

A. 2NF C. 5NF
B. 4NF D. Boyce-Codd NF

18. Grant and Revoke are an example of?


A. Data Definition Language (DDL)
B. Data Manipulation Language (DML)
C. Data Control Language (DCL)
D. Transaction Control Language (TCL)
19. In a homogeneous distributed database:
A. All sites should have identical database software
B. Sites may not be aware of each other
C. All sites should have identical operating system
D. Sites may use dynamic schema
20. Consider a simple database transaction of moving an amount of 500 Birrs from account
A to account B. The overall result of this transaction is: A-500+B+500 = A+B. This is
the “money doesn’t leave the system” concept. Which property of a transaction best
describes this concept?

A. Isolation C. Atomicity
B. Durability D. Consistency Preservation

21. The view of total database content is?


A. Conceptual view C. External view
B. Internal view D. Physical View
22. In the relational modes, cardinality is termed as?
A. Number of tuples C. Number of tables
B. Number of attributes D. Number of constraints

You might also like