86% found this document useful (7 votes)
9K views3 pages

Coc Exam Level4

This document contains 35 multiple choice questions about databases, SQL, transactions, and related topics. The questions cover concepts like database schemas, data modeling best practices, SQL queries, transactions properties, locking mechanisms, database authentication and users.

Uploaded by

Amanuel Kassa
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
86% found this document useful (7 votes)
9K views3 pages

Coc Exam Level4

This document contains 35 multiple choice questions about databases, SQL, transactions, and related topics. The questions cover concepts like database schemas, data modeling best practices, SQL queries, transactions properties, locking mechanisms, database authentication and users.

Uploaded by

Amanuel Kassa
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/ 3

database questions

1. A logical description of database that is required by a user to perform task is called as


a. Logical view b. user view c. system view d. data view
2. The ability to create a new class from the existing class is
a. Polymorphism b. Abstraction c. encapsulation d. inheritance
3. If the attribute phone number is included in the relation all the values need not be entered into
the phone number column. This type of entry is given as
a. Empty space b. null c. 0 d. –
4. Which of the following can be mapped to a database user?
a. Windows account b. windows group c. domain account d. login
5. Which one true about the guideline to create a data model
a. Identify a different data component - consider raw and processed data
b. Test the model with similar scenario
c. Identify the relationship between the similar data component
d. No repeat the step to optimize the model
6. Which of the following statement allow the user to enter the data to the keyboard
a. cin<< current pay
b. cin>>current pay
c. cout<< current pay
d. cout>> current pay
7. which one of the following declaration in super class is accessible in sub class
a. public int a b. private int a c. int a d. show int a
8. which transaction property ensure changes are still present following crash or system failure
a. Isolation b. consistence c. durability d. atomicity
9. which mechanism used to detect deadlock
a. commit b. wait-for graphs structure c. ghant chart d. rollback
10. which one of the following queries is correct about the following out put

PubId Number of book


1 4
2 2
3 3
a. select PubID,COUNT(*) as [Number of books] from Books group by PubID
having count(*) >=2
b. select PubID,COUNT(*) from Books group by PubID having count(*) =2
c. select PubID,COUNT(*) as [Number of books] from Books group by PubID
having count(*) >2
d. select PubID,COUNT(*) as [Number of books] from Books order by PubID
having count(*) >=2

11. how to change the price of Book where Id=B001 to values of 600
a. update book set price =600 where ID=B001
b. update to change book set price =600 where ID=B001
c. GRANT book set price =600 where ID=B001
d. Change book set price =600 where ID=B001
12. Two tables can be connected with the union operator if they are compatible with other this
means?
a. Have the different number of column but the same data type
b.Have the same number of columns and data type
c. Have the same number of column but different data type
d. Have the different number of columns and data type
13. A lock that allows concurrent transaction to access different rows of the same table is known as
a. Row level lock b. table level lock c. database level lock d. field level lock
14. the issue that applies only a multi user system is
a. concurrency b. system recovery c. durability d. media recovery
15. which one of the following is not true about SQL
a. MODIFY a database structure
b. add user permission on the database or tables
c. query a database for information
d.un able to change system security settings
16. when the compiler cannot differentiate between two overloaded constructors they are called
A. dubious B. ambiguous C. overloaded D. destructed
17. Which of the following is a scalability feature in SQL server Enterprise Edition?
A. Data Mining Queries B. partitioning C. Binary and compressed XML transport D. Publishing
18. Which one of the following is not Skill to manage small business?
A. Strategic Management B. Autocratic Management C. Communication Management D. Time
Management
19. A program is an Exception with an Exception handler at the place in a program where you want
to handle the problem
A. Throw B. Catch C. try D. body
20. Which one of the following is true about strategic plans?
A. Implemented within two years
B. Seek to position the organization in terms of its environment
C. establish the organizations overall goals
D. Apply to the entire organization
21. How do you prevent system privileges and updating authority on price and year column of the
catalogue table from user Mohammed
A. ALLOW DELET,UPDATE(price,year) ON catalogue From Mohhamed
B. REVOKE DELET,UPDATE(price,year) ON catalogue From Mohhamed
C. GRANT DELET,UPDATE(price,year) ON catalogue From Mohhamed
D. DENY DELET,UPDATE(price,year) ON catalogue From Mohhamed
22. 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. You obtain the results retrieved from HR database directly
C. You get an error message because you command that supplied was wrong
D. You obtain some of record retrieved from the employee table that belongs to your schema
23. In _____of Oracle, the database Administrator creates a user account in the database for each
user who needs access
A. Internal Authentication
B. Database Authentication
C. operating System Authentication
D. External Authentication
24. The SQL command that you use to define the primary key for a existing table called ‘Employee’
with the primary column to be ‘empid’?
A. ATTACH TABLE Employee ADD PRIMARY KEY(empid)
B. ADD TABLE Employee ATTACH PRIMARY KEY(empid)
C. ADD TABLE Employee ADD PRIMARY KEY(empid)
D. ALTER TABLE Employee ADD PRIMARY KEY(empid)
25. One of the following is NOT a database testing mechanism?
A. Application Testing B. Stress testing C. code testing D. observation testing
26. Which one of the following defines mixed mode authentication?
A. Connection can be made using only windows account
B. Connection to SQL server can be made with either Windows accounts or with server logins
C. Connection can be made using only database uses
D. Connection can be made using only SQL server logins
27. Which one of the following is first step in designing and developing a new System?
A. Requirement Analysis B. System Implementation C. System Design D System Testing
28. The Database language that allows you to access or maintain data in A database
A. DDL B.DCL C. DMM D. DML
29. Which one of the following plan developed by top level managers of an organization?
A. Work plan B. Strategic plan C. Implementation plan D. Tactical Plan
30. Which one is true about problem solving basic step in a sequence way?
A. Evaluate the result Implement the plan Define the problem Develop a plan
B. Implement the result Develop the plan Define the problem Evaluate a plan
C. Develop a plan Define the problem Evaluate the result Implement the plan
D. Define the problem Develop a plan Evaluate the result Implement the plan
31. A transaction completes its execution is said to be
A. Rolled B. Committed C. Saved D. Loaded
32. A type of query that is placed with in a WHERE or HAVING clause of another query is called
A. Master query B. Super Query C. Multi Query D. Sub query
33. The complete picture of database stored in database is known as
A. DBMS B. Column C. Schema D System flowchart
34. Which one of the following a kind of data will store in variables and also defines memory
storage of data
A. Data type B. Object C. Size of array D. Variable
35.

You might also like