Database Management Systems
This test contains conceptual questions on database management systems covering SQL commands, normalization, database design, and transaction control.
Questions
Which among the following SQL commands is used to delete a table from a database?
- DROP
- DELETE
- TRUNCATE
- REMOVE
- ERASE TABLE
Which of the following SQL queries is not a DDL command?
- Alter
- Revoke
- Grant
- Update
- Drop
Which of the following statements is a function of CREATE TABLE command?
- It is used to add an integrity constraint to a table.
- It is used to redefine a column of the table.
- It is used to change a table's storage characterstics.
- It is used to create tables and definine columns.
- It enables or disables integrity constraints.
Which of the following SQL queries is not a DML statement?
- Delete
- Select
- Create
- Insert
- Update
Which SQL command is used to remove privileges given to a user?
- TRIGGER
- CREATE VIEW
- UPDATE
- GRANT
- REVOKE
Which of the following methods is used for protecting data in the data communication system?
- Data encryption
- Data integrity
- Data encapsulation
- Data redundancy
- Polymorphism
Which of the following commands is used to give access of database objects to other users?
- REVOKE
- DROP
- INSERT
- GRANT
- ALTER
Which of the following commands is used to create a trigger?
- CREATE TRIGGER
- CREATE VIEW
- CREATE TABLESPACE
- GRANT
- CREATE SYNONYM
Which of the following SQL functions is used to find the average of a given record?
- AVG
- MIN
- MAX
- SUM
- SQRT
Which of the following statements is false?
- A table in 1st normal form contains no repeating groups.
- A table in 2nd normal form contains no partial functional dependency.
- 3 NF removes transitive functional dependency.
- 3 NF is equivalent to BCNF.
- BCNF is a special case of 3 NF.
Which of the following commands is a transaction control language?
- ALTER
- ROLLBACK
- GRANT
- DROP
- REVOKE
Which of the following keywords is used to display only the unique entries of the column?
- WHERE
- DISTINCT
- SELECT
- LIKE
- GROUP BY
Which of the following is a key constraint that is used to uniquely identify each row?
- PRIMARY KEY
- FOREIGN KEY
- COMPOSITE KEY
- ALTERNATE KEY
- DEFAULT
Which of the following can be used to retrieve data from a database?
- Stack
- Queue
- Linked list
- Query
- Data structure
What is the meaning of an oval shape in an E-R diagram?
- Entity set
- Attributes
- Straight line
- Diamond
- Dotted oval