New Microsoft Word Document
New Microsoft Word Document
a) Hierarchical
b) Relational
c) Sequential
d) NoSQL
Answer: c) Sequential
a) MySQL
b) MongoDB
c) Oracle
d) SQL Server
Answer: b) MongoDB
b) SELECT
c) RETRIEVE
d) QUERY
Answer: b) SELECT
a) CREATE
b) ALTER
c) DELETE
d) JOIN
Answer: c) DELETE
8. Which type of join returns only the rows that have matching values in both tables?
a) Inner join
b) Left join
c) Right join
d) Outer join
9. Which normal form ensures that there are no repeating groups of data within a table?
a) INSERT
b) ADD
c) CREATE
d) UPDATE
Answer: a) INSERT
a) TEXT
b) FLOAT
c) BOOLEAN
d) DECIMALS
Answer: d) DECIMALS
13. Which command is used to remove a table from the database in SQL?
a) DROP
b) REMOVE
c) DELETE
d) ERASE
Answer: a) DROP
14. Which SQL clause is used to filter the results of a query based on a specified condition?
a) WHERE
b) HAVING
c) FILTER
d) LIMIT
Answer: a) WHERE
15. Which of the following is an example of a DDL (Data Definition Language) command?
a) SELECT
b) UPDATE
c) CREATE
d) DELETE
Answer: c) CREATE
a) Primary index
b) Secondary index
c) Clustered index
d) Cartesian index
b) To group rows that have the same values into summary rows
c) To filter the results of a query based on a specified condition
Answer: b) To group rows that have the same values into summary rows
a) SQLite
b) Microsoft Access
c) Cassandra
d) PostgreSQL
Answer: c) Cassandra
20. Which SQL function is used to find the maximum value in a column?
a) MAX()
b) MIN()
c) AVG()
d) SUM()
Answer: a) MAX()
1. Which of the following is not a type of database model?
a) Hierarchical
b) Relational
c) Sequential
d) NoSQL
3. Which type of join returns only the rows that have matching values in both tables?
a) Inner join
b) Left join
c) Right join
d) Outer join
5. Differentiate between composite and simple (atomic) attributes in a database schema, providing
an example for each. Explain how these attributes are represented in an Entity-Relationship (ER)
Diagram.