Practice MCQ
Practice MCQ
Practice MCQ
A. DBA.
B. system engineer.
C. application programmer.
D. software engineer
2. An instance is ___________
a) a set of relationships
b) set of attributes
c) set of entites
d) schema
3. The language used application programs to request data from the DBMS is referred to as the
a) DML
b) DDL
c) query language
d) none
4. Which of the following levels of abstraction involves the views of data?
a) external level
b) conceptual level
c) physical level
d) none
5. The _________ provides commands to select and retrieve data from the database.
A. DDL.
B. DML.
C. schema.
D. DSDL.
6. The _______ is an integrated collection of related files.
A. dataset.
B. data model.
C. data.
D. database system.
7. A field that can identify a record uniquely is called as _________ of the record.
A. foreign key.
B. super key.
C. primary key.
D. candidate key.
8. __________ statement is used to count the total number of records in a table.
A. select (*) from tablename;
B. select count(*) from tablename;
C. select distinct (*) from tablename;
D. select count(distinct(*)) from tablename;
9. The ________ is used for creating and destroying tables, indexes and other forms of structures.
A. data manipulation language.
B. data control language.
C. transaction control language.
D. data definition language.
10. The ___________ frees the users and programmers from the responsibility of knowing the physical
details of data.
A. logical view.
B. physical view.
C. data independency.
D. data dependency.
11. __________ introduced the relational databases.
A. Dennies Rithchie.
B. James Gossling.
C. EF Codd.
D. Bill Gates
12. __________ is data about data.
A. Data type.
B. Data item.
C. Meta data.
D. Information.
13. A _________ is a mechanism that provides the abstraction for database application.
A. data model.
B. data associations.
C. traditional data model.
D. semantic data model.
14. Which SQL keyword must be used to remove duplicate rows from the result relation ?
a) DELETE
b) DISTINCT
c) NOT EXISTS
d) UNIQUE
15. Three DDL commands:
a) CREATE, ALTER, DELETE
b) INSERT, UPDATE, DELETE
c) CREATE, UPDATE, DROP
d) CREATE, ALTER, DROP
16. Four DML commands
a) CREATE, UPDATE, DELETE, SELECT
b) INSERT, UPDATE, DROP, SELECT
c) CREATE, ALTER, DELETE, SELECT
d) INSERT, MODIFY, DELETE, SELECT
17. Use the ___________ clause to restrict groups returned by a grouped query.
A: WHERE
B: DISTINCT
C: HAVING
D: UNIQUEROWS
18. The 'NULL' represents
A: 0
B: blank space
C: absence of any value
D: none of the above
19. Which SQL keyword is used to sort the result?
A: ORDER
B: SORT-ORDER
C: SORT
D: ORDER BY
20. ________ exists between different attributes of an entity.
A. Generalization.
B. Association.
C. Comparison.
D. Specialization.
21. The ____________ is a TCL command.
A. update.
B. view.
C. roll back.
D. select.
22.
Tuple and domain calculus are collectively known as ______.
A. algebraic calculus.
B. combined calculus.
C. joint calculus.
D. relational calculus.
23. New fields can be added to the created table by using ________ command.
A. ALTER.
B. SELECT.
C. CREATE.
D. UPDATE.
24. The FROM clause is used in __________.
A. UPDATE.
B. SELECT.
C. CREATE.
D. INSERT.
25. The aggregate function is involved by including the ____________clause.
A. from.
B. where.
C. by.
D. of.