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

Shashemene Poly Technique College Coc

This document contains a knowledge test for a database administration certification. It includes 20 multiple choice questions testing concepts like ACID properties, database locking, UML, DML, transaction conflicts, deadlocks, database modeling concepts like relations and attributes, database objects like routines and triggers, and SQL statements. It also includes a matching section pairing database concepts with their definitions.

Uploaded by

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

Shashemene Poly Technique College Coc

This document contains a knowledge test for a database administration certification. It includes 20 multiple choice questions testing concepts like ACID properties, database locking, UML, DML, transaction conflicts, deadlocks, database modeling concepts like relations and attributes, database objects like routines and triggers, and SQL statements. It also includes a matching section pairing database concepts with their definitions.

Uploaded by

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

Shashemene Poly technique College

Database administration COC simulated knowledge Test

1. What are ACID properties of transaction?


a. Atomicity, Consistency, Isolation, Database
b. Atomicity, Consistency, Isolation, Durability
c. Atomicity, Consistency, Inconsistency, Durability
d. Automatically, Concurrency, Isolation, Durability
2. Database locking concept is used to solve the problem of
a. Lost update
b. Functional dependency
c. Transitive dependency
d. Data integrity
3. UML stands for
a. Universal modeling language
b. Unifies Modeling Language
c. United Modeling Language
d. Uni Modeling Language
4. Data Manipulation Language (DML) is not to
a. Insertion of new information in to the database
b. Deletion of information in the database
c. Create information table in the database
d. Modification of information in the database
5. A database problem occurs when one transaction wants to read more than one object at the same
time
a. Deadlock
b. Recover
c. Dirty read
d. Transaction conflict
6. What is the roll of rollback command?
a. To cancel any changes to a database made during the current transaction
b. Update the transaction
c. Saving changes made in database
d. Save with delete made in database
7. Which of the following is used to detect deadlock?
a. Commit
b. Ghant chart
c. Rollback
d. Waits for graph structure
8. A relation is
a. Subset of a Cartesian product of a list of attributes
b. Subset of a Cartesian product of a list of domains
c. Subset of a Cartesian product of a list of tuple
d. Subset of a Cartesian product of a list of relations
9. Which of the following statements is true concerning routines and triggers?
a. Both consists of procedural codes
b. Both have to be called to operate
c. Both run automatically
d. Both are stored in the database
10. Which of the following option is used to retrieval of data?
a. Stack
b. Data structure
c. Linked list
d. Query
11. ODBC stands for __________
a. Offline database connection
b. Oriented database connection
c. Open database connection
d. None of the above
12. Which of the following is an unary operation?
a. Selection operation
b. Generalized selection
c. Primitive operation
d. Projection operation
13. A logical description some portion of database that is required by a user to perform task is called as
a. A system view
b. User view
c. Logical view
d. Data view
14. A lock that allows concurrent transactions to access different rows of the same table is known as a
a. Field-level lock
b. Ro- level lock
c. Table-level lock
d. Database-level lock
15. A type of query that is placed within a WHERE or HAVING clause of another query is called
a. Super query
b. Sub query
c. Master query
d. Multi-query
16. A transaction completes its execution is said to be
a. Saved
b. Loaded
c. Rolled
d. Committed
17. Which one is incorrect about concurrency problems?
a. The lost update problem
b. The uncommitted dependency problem
c. Eliminates redundant data
d. The inconsistent analysis problem
18. A database language concerned with the definition of the whole database structure and schema is
____
a. DCL
b. DDL
c. DML
d. DMF
19. Which of the field has width 8 bytes
a. Memo
b. Number
c. Date/time
d. Hyperlink
20. Microsoft Access is A
a. RDBMS
b. OODBMS
c. ORDBMS
d. Network Data Model
21. The database language that allows you to access or maintain data in A database
a. DML
b. DDL
c. DMM
d. DCL

PART II MATCHING

Column A Column B

1. All or none rule for database modification 7. Virtual table


2. Guarantees that the transaction never leaves 8. Physical structure containing pointer to the
your database in half-finished state data
3. Keeps transaction separated from each other 9. Occurs when one transaction wants to read
until they are finished more than one object same time
4. Guarantees that the database will keep track 10. Used for variable length
of pending changes in case of abnormal 11. A way of storing the same data in different
termination and committed transactions places on multiple hard disks
5. Allow database for fewer joins with tables 12. Consistency and accuracy of the data which
and foreign key requirements stored in database
6. Sql procedure that initiates an action when
an event occurs on an object
Knowledge test
1. Information pertaining to the structure and usage of data content in the database, the metadata is
maintained by
a. Data manipulation
b. Data manager
c. Data dictionary
d. Data vocabulary
2. If the product can be manufactured in many plants, and a plant can manufacture many products, this is
an example of which type of relationship?
a. One-to-one
b. One-to-many
c. Recursive
d. Many-to-many
3. Which of the following is an example of a recursive relationship?
a. An organizational unit made up of other organizational unit
b. An organizational unit made up of departments
c. An employee who manages a department
d. An employee who has many dependent
4. In a query, the search criteria REGION NOT=”CA” OR REGION NOT= “NV” will display
a. An error message
b. All the towns in the table
c. Only the rows where Region is equal to “CA” or “NV”
d. All the rows in the table except those where the region is “CA” or “NV”
5. During the conceptual design phase what will happen?
a. The internal component of the application are designed
b. Normalization takes place
c. New entities may be designed
d. Program specifications are written
6. The third normal form resolves anomalies caused by:
a. Transitive dependencies
b. Multi valued attributes
c. Partial dependency on the primary key175
d. Join dependencies
7. The type of constraints which support NOT NULL
a. Table constraint
b. Column constraint
c. Domain constraint
d. Assertion
8. You are creating a FOREIGN KEY constraint and want the values in the referencing column to be
updated. If values in the referenced column is updated which < referential triggered action >the clause
should you use?
a. ON UPDATE RESTRICT
b. ON UPDATE NO ACTION
c. ON UPDATE CASCADE
d. ON UPDATE SET DEFAULT
9. The key word that you should add to the SELECT clause to ensure that each rows of the query result is
unique:
a. All
b. ROLL UP
c. DISTNICT
d. CUBE
10. The comparison operator symbol that you should use to express a nor equal condition
a. <=
b. >=
c. <>
d. =<
11. The set of function that you should use to add together the value in a column:
a. MAX
b. COUNT
c. SUM
d. AVG
12. The key word that should be used to begin a conditional statement is:
a. IF
b. BEGIN
c. THEN
d. ELSE
13. The statement that you should use to add a schema to an SQL environment is:
a. ADD SCHEMA
b. INSERT SCHEMA
c. CREATE SCHEMA
d. DELETE SCHEMA
14. You are creating a table name students, the table includes the students ID column which has INT data
type, the student name column which has a char (60) data type. What SQL statement should you use?
a. CREATE TABLE student id (student id INT, student name CHAR(60));
b. CREATE TABLE student names (student id INT, student name CHAR(60));
c. CREAATE TABLE student (student id INT, student name CHAR(60));
d. CREATE TABLE student (student id TEXT, student name CHAR(60));
15. You are creating a distinct user-defined type name city. The user type is based on the CHAR(40) data
type. Which SQL statement should you use?
a. CREATE TYPE city AS CHAR(40)
FINAL
b. CHAR(40) TYPE city AS CREATE
FINAL
c. CREATE CAHR(40) AS TYPE city
FIANL
d. CREATE TYPE city AS FINAL CHAR(40)
16. The SQL statement that should be used to delete a column from an existing table is
a. DELETE TABLE
b. CREATE TABLE
c. ALTER TABLE
d. DROP TABLE
17. The statement that you should use to modify existing data in one or more rows in a table
a. SELECT
b. INSERT
c. UPDATE
d. DELETE
18. You are creating a SELECT statement that queries the artist CD’s table. The table includes the artist
name and CD name columns. If you want your statement to return the total number of rows in the
table which COUNT function should you include in your SELECT clause:
a. COUNT (Artist name)
b. COUNT (CD name)
c. COUNT (*)
d. COUNT (Artist name, CD name)
19. You are creating a SELECT statement that a case value expression you want one of the conditions to
specify that any one order values greater than 10 should be increased by 5. How you should set up the
WHEN/THEN clause?
a. WHEN on order >10 THEN on order +5
b. WHEN on order > 5 THEN on order +10
c. WHEN on order > 5 THEN on order +5
d. WHEN on order +5 THEN on order > 10
20. Which function returns a value that represents the current date and time?
a. LOCAL TIMESTAMP
b. CURRENT _DATE
c. LOCAL TIME
d. CURRENT_TIMESTAMP

Matching
Column A column B

1. A complete set of information about one thing in a table E A. password


2. A possible type of data store salary field H B. ER diagram
3. Record in one of the tables can have more than one matching
Records in the second table but a record in the second table can have
Only one record in the first table matching it. L C. Encryption
4. The lowest unit of meaningful information in a file or document
May consist of numbers, letters or combination of both. P D. Field
5. A term used in information retrieval pertaining to particular
request for the database. R E. Record
6. A secret series of characters that enables a user to access a file or
Program. A F. Data model
7. The translation of data in to a secret code C G. Database schema
8. A model that describes in an abstract way that data is represented
In an information system or database management system. F H. Currency
9. A conceptual model of actual database B I. Number
10. Which is used to represent the data model graphically with entities,
Attributes and relationship B J. DBMS
11. One piece of information about an object or entity D K. DDL
12. A collection of function of a control program which provide access
To data set, enforce data storage conventions and regulated the
use of input/output devices. J L. One_to_many
13. The arrangement of data items according to identification criteria
Like identification number, alphabetical or numerical order. N M. many_to_one
14. A schema object that revoked automatically when a specified data
Modification is made. Q N. Sort
15. Unit of work that is made up of one or more SQL statements that
Perform a related set of actions. O O. A transaction
P. Data element
Q. A trigger
R. Query

Project title : designing a database of human resource record system for sunshine
company Time allotted 4:30
General information about the project

Assume that the candidate is working for sunshine company as database administrator. He/She are expected
to design and implement database for required section.

The required database must keep track of a company’s employees and departments. Suppose that, after the
requirements collection and analysis phase, the following are the part of the company to be represented in
the database:
 The company is organized as departments and each department has unique name, a unique number, and
a particular employee who manages the department.
 We store each employee’s name, social security number, salary, sex and birth date.

Task I: install application software


Prepare your machine for your project by installing MS-SQL server 2005 and approve by your assessor.

Task II: prepare conceptual/logical database design


Design and draw and E-R diagram for the above application. Specify each entity type, structural constraint
on each relational type, and document your work on papers.

Note: any unspecified requirements and make appropriate assumptions to make the specification
complete.

Task III:- Prepare physical database design

First you need to create a database called “DB_Personnel” and create all tables that you have got on
task II in ”DB_Personnel” database using MS-SQLv 2005 Query analyzer. Save each query statement

Task IV Perform Data Manipulation Processes


A. Write SQL statements to accomplish the following on the database schema
(I) Insert the following data in Employees tables

Fn L S B Sex Sal S DN
a n S D ar U O
m a N AT y P
e m E E
e R
S
S
N
M Y 1 19 F 25 1 5
el i 2 89 00 2
at b 3 - 3
e r 4 02 4
a 4 - 5
6 07 6
7 7
8 9
0 8
Fe M 1 19 M 30 1 6
lk o 2 89 00 2
e l 3 - 0 3
a 4 04 4
5 - 5
6 08 6
6 7
8 8
0 9
H Y 1 19 F 30 1 6
a i 2 65 00 2
n r 3 - 0 3
n d 4 02 4
a a 5 - 5
c 6 08 6
h 7 7
e 8 8
w 0 9
A H 1 19 M 28 1 6
b a 2 65 00 2
d s 3 - 0 3
u s 4 01 4
e 5 - 5
n 6 09 6
7 7
8 8
9 9
Gi B 1 19 M 40 1 6
r e 2 68 00 2
m k 3 - 3
a e 4 02 4
l 4 - 5
e 6 08 6
7 7
9 8
8 9
(II) Insert the following two data In departments

Dname DNumbe MGSSN


r

5 123456798
Researc
h

SALES 6 123456789

(III) Retrieve the salary and birthdate of the employee(s) whose name is Abdu
(IV) Retrieve the name of all employees who work for the Research department.
(V) Update the SALARY of the EMPLOYEE tuple with SSN=’1234456789’ to28000.
(VI) For each employee, Retrieve the employee’s first and last name and the first and last name of
her immediate supervisor (Note.4)
(VII) For each department retrieve the department number, the number of employees, in the
department and their average salary.
(VIII) Retrieve all employees in department 5 whose salary is between $1,000 and $4,000
(IX) Retrieve the total number of employees in the ‘research’ department
(X) Delete the EMPLOYEE tuple with SSN = ‘123456780’.
(XI) Delete all records from employee table.

TASK V. PERFORM DATA RECOVERY AND SECURITY

a. Create a folder on local d:\ drives and rename it DB_backup.


b. Take complete backup of the database to folder DB backup
c. Drop the DB personnel database completely
d. Restore the database from your backup place.

You might also like