You are on page 1of 13

Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012

E.C

1. Which one of the following command allows you to add rows in database in SQL?
A. ADD B. INSERT C. CREATE D MAKE
2. Assume you have customer table then which command is used to remove rows from customer
table?
A. REMOVE from customer C. DELETE from customer
B. DROP from customer D. UPDATE from customer
3. The SQL where clause
A. Limits the column data that are returned C. Both A and B
B. Limits the row data are returned D. none
4. Which one of the following is the original purpose of SQL
A. To specify the syntax and semantics of sql data definition language
B. To specify the syntax and semantics of sql data manipulation language
C. To define the data structure
D. All of the above
5. The wildcard in WHERE clause is useful when ?
A. An exact match is necessary in SQL select statement
B. An exact match is not possible in SQL select statement
C. An exact match is necessary in SQL CREATE statement
D. An exact match is not possible in SQL CREATE statement
6. Aview is Which one of the following
A. A virtual table that can be accessed via SQL command
B. A virtual table that cannot be accessed via SQL command
C. A base table that can be accessed via SQL command
D. A virtual table that cannot be accessed via SQL command
7. A command to eliminate a table from a database is
A. REMOVE table table name C. DROP table table name
B. DELETE table table name D. UPDATE table name
8. ON UPDATE CASCADE ensures which one of the following
A. Normalization C. Materialized views
B. Data integrity D. All of the above
9. SQL Data Definition command make up an_________
A. DML B. DDL C. DCL D. HTML
10. Which SQL key word is used with wildcards?
A. LIKE B. IN C. NOT IN D. IN and NOT IN
11. WHICH one is the correct order of key words for SQL SELECT statement
A. SELECT,FROM WHERE C. WHERE,SELECT,FROM
B. FROM,WHERE,SELECT D. SELECT, WHERE, FROM
12. A sub query in An SQL select statement is enclosed in
A. Braces {} B. capital letters C. parenthesis () D. angle brackets []
13. The result of sql SELECT statement is
A. File B. report C. table D. Form

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

14. Which one of the following are the five built-in functions provided by SQL?
A. COUNT,SUM,AVG,MAX,MIN C. COUNT,SUM,MULT,DIV,MIN
B. COUNT,SUM,MULT,DIV,MAX D. SUM AVG,MAX,DIV,MIN
15. In sql SELECT statement querying a single table according to SQL standard asterisk(*) means
A. All columns of the table are to be returned
B. All rows of the table that meet the full criteria are to be returned
C. All records meeting even partial criteria are to be returned
D. None of the above
16. The SQL HAVING clause does which one of the following
A. Acts as a where clause but used in groups rather than rows
B. Acts as a where clause but used in ROWS rather than groups
C. Acts as a where clause but used in columns rather than groups
D. Acts exactly like a where clause
17. SQL wildcards are _______and __________
A. Asterisk(*), percent sign (%) C. underscore(____), question mark(?)
B. percent sign (%), underscore(__) D. question mark(?), asterisk(*)
18. to remove duplicate rows from the result of sql select statement the ______qualifier is used
A. ONLY B. DISTINCT C. UNIQUE D. SINGLE
19. The benefit of standard relational language includes which one of the following
A. Reduce training cost.
B. Increase dependency on single vendor
C. Application are not needed
D. All of the above
20. Which one of the following do you need consider when you make a table in SQL?
A. Data type B. Primary keys C. Default values D. All of the above
21. SQL query and modification commands make up________?
A. DDL B. DML C. DCL D. HTML
22. WHEN THREE OR MORE AND and OR conditions are combined, then it is easier to use sql key
word(s)
A. LIKE ONLY B. IN ONLY C. NOT IN ONLY D. both IN and NOT IN
23. The Microsoft access wildcards are __________and _________
A. Asterisk(*), percent sign (%) C. underscore(____), question mark(?)
B. percent sign (%), underscore(__) D. question mark(?), asterisk(*)
24. Find the sql statement that is equals to the following:- SELECT NAME FROM CUSTOMER WHERE
NAME=’VA’?
A. SELECT NAME IN CUSTOMERE WHERE STATE IN(‘VA’)
B. SELECT NAME IN CUSTOMERE WHERE STATE =’VA’
C. SELECT NAME IN CUSTOMERE WHERE STATE =’V’
D. SELECT NAME FROM CUSTOMERE WHERE STATE IN(‘VA’)

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

25. Wich one of the following sorts rows in SQL?


A. SORT BY B. ALIGN BY C. ORDER BY D. GROUP BY
26. To define what column should be displayed in sql select statement :-
A. Use FROM to name the source table and list the columns to be shown after select
B. Use USING to name the source table and list the columns to be shown after select
C. Use SELECT to name the source table and list the columns to be shown after USING
D. Use USING to name the source table and list the columns to be shown after WHERE
27. SQL can be used to:-
A. Create a database structure only C. modify database data only
B. Query database data only D. all of the above tasks can be done using SQL
28. The SQL statement that queries or reads data from a table is:-
A. SELECT B. READ C. DELETE D. UPDATE
29. THE SQL key word Between is used
A. For ranges B. to limit the column displayed C. as a wildcard D. none
30. _________ was adopted as a national standard by ANSI in 1992
A. ORACLE B. SQL C. MS ACCESS D. DBASE
31. SQL is
A. A programming language C. A data base management system language
B. An operating system D.none
32. Which one of the following is not Entity
A. Book B. customer C. age D. project
33. Which one is the correct SQL syntax to modify a table
A. Alter table ADD Table name column name data type size constraint
B. Alter table table name ADD column name size constraint
C. Alter table name ADD data type size constraint
D. Alter table table name ADD Data type column name size constraint
34. To make decision in flow chart we use
A. Diamond B. Diagnose C. Arrow D. Rectangle
35. Which one is true about Removing partial dependency from tables
A. 1st NF B. 2ND NF 3RD NF D. BCNF
36. Which one inserts to the column fname , lname to employee table
A. Insert into employee(fname,lname) values (‘hiwot’,’alemu’)
B. Insert into values((‘hiwot’,’alemu’)
C. Insert into employee (‘hiwot’,’alemu’)
D. Insert into employee ‘hiwot’,’alemu’
37. Which one is multivalued attribute
A. Color B. name C. id D. Birth date
38. Used To find the number of all records from employee table
A. SELECT COUNT * FROM EMPLOYEE C. SELECT COUNT FROM EMPLOYEE
B. SELECT COUNT(*) FROM EMPLOYEE D. SELECT COUNT() FROM EMPLOYEE

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

39. Which one is not true about data definition language


A. Update B. Drop C. Alter D. Create
40. Functional dependency between non-primary-key is called?
A. Transitivity dependency C . Functional Dependency
B. full functional dependency D. Partial dependency
41. Which one of the following is not befits of using modular programming?
A. The code is stored across multiple files
B. Less code has to be written.
C. Code is short, simple and easy to understand.
D. The scoping of variables cannot be easily being controlled
42. Diamond shapes in flow chart represents?
A. Decision that must be made C. End of process
B. Instruction or action D. Start of process

43. Smart draw is unique in three ways which one is not include in that?
A. automated B. Complete C. Integrated D. Not complete
44. CASE tool means?
A. Computer Aided Software Engineering tool
B. Computer Aided System Engineering tool
C. Computer Aim Software Engineering tool
D. Computer Aim System Engineering tool
45. The structure of the database itself and is used in control and maintenance of a database?
A. Template B. Documentation C. Data structure D. Data dictionary
46. Which one is the process that involves dividing large tables into smaller that does not
accept redundant values and defining relationships between them?
A. Normalization B. Generalization C. Denormalization D. Data structure
47. Client feedback can be implementing in line with the organization policies through the
following except one?
A. Prototyping B. Verbal Feedback C. Group discussion D. Questionarie
48. The relationship between the instances of only one entity type (or participant) is known
as unary relationship and it has degree?
A. 1 B. 2 C. 3 D. 4

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

49. In E-R Diagram derived attribute are represented by 


A. Ellipse B. Dashed ellipse C. Rectangle D. Triangle
50. Select* from employee what type of statement is this?
A. DML B. DDL C. VIEW D. DCL
51. A set of one or more keys which is used to speed up access to data in a table. It is a separate
physical data structure that enables queries to access one or more data rows fast.
A. View B. database file C. Index D. Schema
52. The process of dumping data (from a database, a transaction log, or a file).
A. Database Back up B. Database Restore
B. Database Recovery D. Database Transaction
53. A type of diagram that represents an algorithm or process, showing the steps as boxes of various
kinds, and their order by connecting those with arrows.
A. Pseudo code B. Algorithm C. Flow chart D. E-R Diagram
54. Defines the relationship between the entities in terms of numbers
A. Degree B. Cardinality C. Dependency D. CO-relations
55. A set of objects that share the same attributes, operations, and relationships
A. Object B. Class C. Interface D. Coding
56.Designed to test and trial a new design to enhance precision by system analysts
and users.
A. Audit Trial B. Feed Back C. Prototype D. Association
57.Entity types that do not have key attributes (strong key) are called?
A. Weak entity types B. Strong entity type
B. Weak attribute types D. Strong attribute type
58. The database design that consists of multiple tables that are linked together through
matching data stored in each table is known as?
A. hierarchical database B. network database
C. relational database D. object oriented database
59. With sql, how can you populate training table with rows from student table?

A. select First Name, Last Name into training from student

B. insert into first name, last name student from training

C. select first name, last name into student from training

D .insert into first name, last name training from student

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

60. An entity set that does not have sufficient attributes to from a primary key can be
considered as:

A. primary entity set B. simple entity set

C. weak entity set D. strong entity set

61. Where does DBMS store the definition data elements and their relationship?

A. index B. data map C. data file D. data dictionary

62. In the relational modes, cardinality is termed as?

A. number of tuples B. number of attributes C. number of table’s D. number of constraints

63. Among the following which activity helps you to determine the entities, attributes, and
relationship of data?

A. database implementation B. physical database modeling

B. logical database modeling D. conceptual database modeling

64. With sql how do you select all the records from a table name ‘Employee ‘where the
values of the column ‘first name starts with’ A’

A. select all from student where first name =’A’

B. select * from department where first name like %A

C. select * from employee where first name like %

D. select * from employee where first name like’ A%’

65. Here is the given table shown below which normalization step is missing?

Toshiba laptop

Serial number owner Model Manufacturer RAM size


A. Third normal form B. first normal form C. second normal form D. all are missed
66. from the above given table how to remove the field named MODEL?

A. modify table Tlaptop delete column MODEL B. alter table Tlaptop drop MODEL

C. alter table Tlaptop drop column MODEL D. all are the correct answer

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

67. There are certain packages that allow people to define data items, place these items in
particular records, combine the records into designated files and then manipulate and
retrieve the stored data .what are they called

A. data communication package B. batch processing system

C. data management system D. data storage system

68. When the values in one or more attributes being used as a foreign key that must exist in
another set of one or more attributes in another table, you have created:

A. Domain integrity constraints B .Entity integrity constraint

C. user defined integrity constraint D. Referential integrity constraint

78. How can you change “Gera “into “Geradd”in the last column name in the employee table?

A. Update employee set last name =”Gera “where last name =”Geradd”

B. Modify employee set last name =”Geradd “where last name =”Gera”

C. Update employee set last name =”Geradd “where last name =”Gera”

D.none

69. If you have two entities that have a many to many (M:N)relationship between
them ,how do you show their relationship in database environment

A. you create two tables by defining the column as foreign key to the M side of the entity on
relationship.

B. you can create individual relation as separate tables and introduce a third(new)table by
taking the primary key of the two tales combined together as primary keys and used as foreign
keys.

C. you create three separate tables without defining a foreign key to the table on the M side of
the relationship

D. you create two tables by defining the column as foreign key to N side of the entity on
relationship

70. Among the following which one can be considered as composite attribute for Employee
table?

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

A .address B. salary C.id D.sex

71. dropping the table will remove?

A. only the table definition, but not the stored values B. only the permission specified

C. only the stored values, but not the table definition D. the table definition and all stored
values

72. deleting the table will remove?

A. only the table definition, but not the stored values

B. only the permission specified

C. only the stored values, but not the table definition

D. the table definition and all stored values

73. With the sql which type of join should you use if you want to return only matched
rows?

A. inner B .left outer join C. right outer join D. full outer join

74. A method of data collection in which the situation of interest is watched and the
relevant facts actions and behaviors are recorded?

A. interview B. observation C. survey D. questioner

75. In database modeling a set of objects with the same properties or characteristics is
termed as?

A. entity instance B. relationship type

C. entity type D. relationship instance

76. Assume that there is a table named R with attributes A, B, C, and D, and A is the
primary key (determinant) of R, then which of the following is true about fully
functional dependency?

A. {A} ----> {B, C, D} B. {A, C} ----> {B, D}

C. {B, C} ----> {A, D} D. {B, C, D} ----> {A}

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

77. You run SELECT statement and multiple duplicates of values are retrieved .what key
word can you use to retrieve only the non-duplication value?

A. duplicate B. individual C. distinct D. separate

78. Which of the following data constraints would be used to specify that the value of cells in
a column must be one of a specific set of possible values?

A
A domain constraint
.
B.A range constraint
C.An intrarelation constraint
D
An interrelation constraint
.
79. In 1:N Relationship the foreign key placed
A. Either table without specifying parent or child table
B. The parent table
C. The child table
D. Either the parent table or the child table
80. Which one of the following column properties specifies weather or not cells in a column
must a data value
A. Null status B. Default value C. Data type D. Data constraint
81. A primary key should defined as
A. NULL B. NOT NULL C. Either of the above can be used D. none
82. A foreign key is
A. A column containing the primary key of another table
B. Used to define data types
C. Used to define null status
D. All of the above are correct answers
83. Which one of the following column is required in a table
A. A foreign key B. Primary key C. Alternate key D. Surrogate key

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

84. Which of the following column properties would be used to specify that cells in a column
must be immediately filled with a monetary value of $10,000?
A. Null status B. Data type C. Default value D. Data constraint
85. The identifier of an entity become the _____- of the new table
A. Foreign key B. Main attribute C. primary key D. identity attribute
86. Each Entity is represented as
A. Tuple B. attribute C. table D. file
87. If a relationship has a cascade updates constraint,then if ________ in the parent table is
changed, then the same change will automatically be made to any corresponding foreign key
value.
A. Primary key B. Surrogate key C. foreign key D. Alternate key
88. You run a SELECT statement and multiple duplicates of values are retrieved. What
keyword can you use to retrieve only the non-duplicate value?
A. DUPILCATE B. INDIVIDUAL C. DSITINCT D. SEPARET
89. In database modeling, a set of objects with the same properties or characteristics is
termed as:
A. Entity instance B. Entity type C. Relationship type D. Relationship instance
90. In the following, one of them can be considered as composite attribute for EMPLOEE
table.
A. Address B. Salary C. ID D. SEX
100. How can you change "Bertukan" into "Birtukan" in the "LastName" column in the
Student table?
A. UPDATE Student SET LastName='Bertukan' INTO LastName='Birtukan'
B. MODIFY Student SET LastName='Birtukan' WHERE LastName='Bertukan'
C. UPDATE Student SET LastName='Birtukan' WHERE LastName='Bertukan'
D. MODIFY Student SET LastName='Bertukan' INTO LastName='Birtukan'
101. When the values in one or more attributes being used as a foreign key that must
exist in another set of one or more attributes in another table, you have created:
A. Domain integrity constraint
B. Entity integrity constraint
C. User defined integrity constraint
D. Referential integrity constraint

102. In SQL, how do you select all the records from a table named "Student" where the
value of the column "FirstName" starts with an "B"?
A. Select * From STUDENT where FirstName Like '%B%'
B. Select * From STUDENT where FirstName=Like 'B%'

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

C. Select * From STUDENT where FirstName Like '%B'


D. Select * From STUDENT where FirstName='B'

103. Among the following, which activity helps you to determine the entities,
attributes, and relationships of data?

B. Conceptual database modeling C. Logical database modeling


B. Physical database modeling D. Database implementation
104. An instance of relational schema R (A, B, C) has distinct values for A including
NULL values. Which one of the following is true?
A. A is a candidate key B. A is a primary key attribute
B. A is non-key attribute C. A is a foreign key
105. These are stapes in gathering data to identify business requirement except
A. Insure stockholders involvements at all level of involvements
B. Give training on how to operate user and technicians
C. Understand the need of your Clint
D. Identify the key people who will be affected by the project
106. Using database management system is preferable than file system when
A. The number of record is small
B. The data we need to keep is very secure
C. The speed of accessing data is our first priority
D. The company have no capacity to add new hardware and software
107. You create a table called department that store company departments’ detail.the table contain
departmentid data type int and department name data type varchar(50).the primary key of this
table is foreign key for other table. you selected departmentid as priary key of the table the
reason to do this is
A. It identifies uniquely
B. It is easy to remember
C. It is sequential
D. It needs lesser storage space
108. Which of the following is an advantage of view?
A. Assigning index to tables
B. Store records
C. Hiding complex queries
D. Storing definition of database objects
109. In order for two queries to be UNION-compatible, they must:
A. Both have compatible data type for each column
B. Both have the same number of lines in their SQL statements
C. Both return a least one row
D. both has the same number of records

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

110. An illegal expression used in SQL


A. Select null from employee;
B. Select name from employee;
C. Select name from where salary=null;
D. Select *from employee
111. You are a database developer for an insurance company. Every insurance policy is managed by
one and only one product manager. one product manager can manage many policies. how can
you represent that information in the database
A. Include the manager id in the police entity
B. Include the policy id in the manager entity
C. Create a relationship entity formed by the policy id and the manager id
D. Include the manager id in the policy entity and the policy id in the managers entity

112. Incorrect statement about data dictionary


A. The data dictionary is normally managed by the database administrator
B. The data dictionary is a tool used exclusively by the database administrator
C. The data dictionary contains the name and description of each data element
D. Data element in the database can be modified by changing the data dictionary
113. Indexes are created in most RDBMSs to
A. Provides a quicker way to store data
B. Increase the cost of implementation
C. Provide rapid random and sequential access to base table data
D. Decrease the amount of disk space utilize
114. What do you do if an important table in your database is removed accidentally
A. Undo the operation to bring it back to its prior state
B. Get the delete data from recycle been and restore it
C. Create the table and add all the data from documents
D. Restore the table from backup file
115. While gathering data to determine the organization business requirement you might take
records of the organization like, annual report and organizational policies. these kinds of
information resources are considered as
A. Tertiary source C. Primary source
B. Secondary source D. Information source
116. A database technical documentation should contain all except
A. Description of what the table means and how I is functionally used
B. Description of what each attribute means
C. Explanation of the relationship
D. Description of clients
117. Not possible tasks to do using the alter table command
A. Change the name of the table C. Delete a column
B. Change the name of the column D. A DD a column

Information is a good source of knowledge prepared by Yordanos.G(Trainer)


Database Level III Theoretical preparation ABAY MINCH COLLEGE 2012
E.C

118. A database administrator is not forced to participate in


A. Conceptual database design
B. Determine how to implement conceptual schema
C. Implement security and integrity
D. Maintain a computer system
119. You create a foreign key constraint and need to update the value in the referencing column. If
the value in the referenced columns are updated which referential integrity command should
used.
A. ON UPDATE RESTRICT
B. ON UPDATE NO ACTION
C. ON UPDATE CASCADE
D. ON UPDATE SET DEFAULT
120. you are assign to lead a small team in your company that manage database. Identify the wrong
statement in leading the team
A. Assigning responsibility to team members
B. Perform all duties of the team by your own
C. Processes necessary leadership skill
D. Understand the team role

Information is a good source of knowledge prepared by Yordanos.G(Trainer)

You might also like