Database Level-III: February 2017

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Database Level-III

1. If a product can be manufactured in many plants,and a plant can manufacture many product, this
is an example of which type of relationship?

A. one-to-one B. one-to-many C. recursive D. many-to-many

2. Among the ff term, which one can be considered as derived attributes?


A. Age
B. Birth date
C. Color of the car
D. ID
3. The database administrator of your company created a database called hr for the employee table of
the general schema, because many users frequently use this table. As a user of the database. you
created a table called employee in your schema. what happens when you execute this query?

SELECT*FROM employee;

A. You obtain the all records of the employee retrieved from the database called hr.
B. Yu obtain some of record retrieved from the employee table that belongs to your schema
C. You get an error message because you command that supplied was wrong.
D. You obtain the results retrieved from hr database directly.
4. During the conceptual design phase what will happen
A. The internal components of the application are designed.
B. Normalization takes place.
C. New entities may be are written
D. Program specification are written
5. In DBMS, which of the following is an advantage?
A. Requires expertise and resources to administer
B. Initial training required for all users
C. Fascinated development of new application program
D. Cost of hardware and software
6. In SQL server, which one of the ff is a wrong statement?
A. Each entity name should be unique in the same database
B. Two attributes of an entity type can have the same
C. Count function does not return a null if no rows satisfy the WHERE clause.
D. In operator allows you to specify multiple values in WHERE clause
7. With SQL HOW CAN YOU INSERT NEW RECORD INTO Firstame and Lastname columns in
the ”EMPLOYEE” table?
A. Insert into employee (first name, last name) values (‘haimanot’, 'aster’)
B. Insert into employee(‘haimanot’, 'aster’)
C. Insert values into employee (‘haimanot’, ’aster’)
D. Insert into (firstname, lastname)values (haimanot’, ’aster')
8. The presence of partial dependencies will be removed during:

February 2017 Page 1


Database Level-III
A. insertion of data
B. first normal form
C. ER to relational mapping
D. Second normal form
9. With SQL how can you return all the records from a table named “EMPLOYEE” sorted
descending by “Firstname”?
A. select count * from DEPARTMENT
B. select * from EMPLOYEE ORDER BY Firstname desc
C. select * from EMPLOYEE ORDER BY Firstname asc
D. select * from EMPLOYEE ORDER BY FirstName asend
10. With SQL how can you return the number of all records in the “DEPARTMENT" Table?
A. select count * from DEPARTMENT
B. select count (*) from DEPARTMENT
C. Select count () from DEPARTMEN
D. select count from DEPARTMENT
11. which one of the ff could NOT be considered as an entity type?
A. name
B. book
C. customer
D. product
12. in flow chart, one of the ff shows entity represent by?
A. diamond
B. elongated circle
C. rectangle
D. arrow
13. All of the ff are SQL servers database components except
A. tempdb database
B. conventional database
C. model database
D. master database
14. Which type of relationship, if a product can be manufactured in many plant and plant can
manufacture many product
A. one-to-one
B. one-to-many
C. recursive
D. many-to-many
15. which one of the ff is NOT a data type in SQL server?
A. sex
B. date/time
C. double
D. text
February 2017 Page 2
Database Level-III
16. in defining primary key, which of following is wrong statement?
A. it cannot be NULL
B. only unique values can be assigned to it
C. it cannot be character data types
D. it can be used as reference for other columns in a related table
17. The appropriate keyword to fix the database after a failure such as a hard disk malfunction
A. backup
B. security
C. recovery
D. access control
18. Which of the ff is NOT the DDL command in DBMS?
A. update
B. alter
C. create
D. drop
19. which of the ff is correct syntax to modify a table inSQL
A. Alter table <tablename><columenname><datatype><fiesize><constraints>
B. Alter table ADD<columenname><datatype><fieldesize> <constraints>
C. Alter table<tablename>ADD<columenname><datatype><fieldesize>< constraints>
D. Alter table <tablename>DROP<columenname><datatype><fieldesize>
20. Which of the ff referential integrity constraints should be enforce to specify automatic deletion of a
foreign key record when a record in the database table is deleted
A. on drop cascade
B. on delete cascade
C. on update cascade
D. on drop set null
21. one of the ff is an example of an attribute
A. an amployee
B. an employee’s name
C. an employee's paycheck
D. an alphabetical listing of employee

MATCHING

February 2017 Page 3


Database Level-III
A B

1. Metadata A. File viruses


2. Describes the table, columns, indexes, constraints, And other B. Query
items that make up the database C. System sector viruses
3. Used to remove database and its objects D. data type
4. Provides an overall organization to the tables E. union
5. Request for information from a database F. drop
6. Remove transitive dependency G. attribute
7. Combine the results set H. create table
8. Collection of all relationships of the same type I. select
9. A named column of a relation J. database’s schema
10. You need to use when you create a conventional database K. master
11. Specify search condition L. domain
12. The set of allowable/possible values for an attribute M. describes the data’s
13. Constraint that specify the possible values for each field in structure
the table within a database N. entities
14. Infect program (Command EXE) Files O. data dictionary
15. Infect control information on the disk itself P. physical data model
Q. where
R. third normal form
S. relationship set
T. inheritance

February 2017 Page 4

You might also like