Unit 3: Database Management Systems (DBMS) - Practice Quiz

CSE357 — Combinatorial Studies 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary function of a Database Management System (DBMS)?

A. To replace the operating system of a computer
B. To hide data from users to ensure security
C. To exclusively process mathematical calculations
D. To manage the storage, retrieval, and modification of data

2 In the context of the Relational Model, what is a relation equivalent to?

A. A Table
B. A Key
C. A Column
D. A Row

3 Which of the following refers to a single row in a relational table?

A. Domain
B. Tuple
C. Schema
D. Attribute

4 What does the term Attribute represent in a database table?

A. The connection between two tables
B. A specific column defining a property of the entity
C. The total number of records
D. A row of data

5 Which SQL command is used to retrieve data from a database?

A. FETCH
B. OPEN
C. GET
D. SELECT

6 Which of the following is considered a Data Definition Language (DDL) command?

A. UPDATE
B. SELECT
C. INSERT
D. CREATE

7 In a relational table, what does the cardinality refer to?

A. The number of columns
B. The distinct values in a column
C. The number of rows (tuples)
D. The number of keys

8 What is a Primary Key?

A. A minimal set of attributes that uniquely identifies a tuple
B. A key used only for sorting
C. Any column with numeric data
D. A key that accepts null values

9 Which concept allows a relation to reference another relation, establishing a link between them?

A. Primary Key
B. Alternate Key
C. Foreign Key
D. Super Key

10 If a table contains the data: , which integrity constraint is violated if column 1 is the Primary Key?

A. Key Integrity
B. Entity Integrity
C. Domain Integrity
D. Referential Integrity

11 Which of the following commands is used to modify existing records in a table?

A. ALTER
B. UPDATE
C. CHANGE
D. MODIFY

12 What is the result of a DELETE command without a WHERE clause?

A. It deletes all rows in the table
B. It deletes the table structure
C. It deletes the first row only
D. It throws a syntax error

13 The set of all possible values that an attribute can take is called its:

A. Tuple
B. Domain
C. Set
D. Range

14 Which of the following keys can act as a Primary Key?

A. Secondary Key
B. Partial Key
C. Candidate Key
D. Foreign Key

15 What is a Super Key?

A. A key defined in multiple tables
B. A key that is always an integer
C. A key containing only one attribute
D. A set of one or more attributes that uniquely identifies a tuple

16 Which SQL clause is used to filter records?

A. ORDER BY
B. FROM
C. WHERE
D. GROUP BY

17 What is Normalization in DBMS?

A. The process of creating backup copies of data
B. The process of organizing data to reduce redundancy and improve data integrity
C. The process of increasing data duplication for faster access
D. The process of encrypting data

18 First Normal Form (1NF) requires that:

A. Every determinant is a candidate key
B. There are no partial dependencies
C. All attributes contain atomic values
D. There are no transitive dependencies

19 Given a relation with Primary Key , if depends on (), and depends on (), which normal form is violated?

A. 2NF
B. BCNF
C. 1NF
D. 3NF

20 Second Normal Form (2NF) is relevant only when:

A. The table has no primary key
B. The table is in 3NF
C. The table has a composite primary key
D. The table has a single-attribute primary key

21 A table is in BCNF (Boyce-Codd Normal Form) if:

A. It contains no null values
B. It is in 1NF
C. There are no foreign keys
D. For every non-trivial functional dependency , is a super key

22 Which of the following is an example of an Update Anomaly?

A. Deleting a record unintentionally removes other data
B. Updating a value in one record leaves inconsistent data in duplicates
C. Unable to insert data because a primary key is missing
D. Data is encrypted and cannot be read

23 What is a Transaction in DBMS?

A. A single SQL command
B. The connection between the client and server
C. A type of database key
D. A logical unit of work that must be processed reliably

24 Which property ensures that a transaction is an 'all-or-nothing' operation?

A. Durability
B. Isolation
C. Atomicity
D. Consistency

25 The Consistency property in ACID ensures that:

A. The database moves from one valid state to another valid state
B. Deadlocks never occur
C. Transactions are executed in isolation
D. System failures do not lose data

26 What does Isolation imply in transaction management?

A. Transactions occurring concurrently do not interfere with each other
B. Transactions are processed sequentially only
C. Transactions are atomic
D. Transactions are saved permanently

27 The Durability property ensures that:

A. Data is never deleted
B. Once a transaction commits, its changes survive system failures
C. Users cannot access the database during maintenance
D. Transactions are fast

28 Which SQL command saves the changes made by a transaction permanently?

A. GRANT
B. ROLLBACK
C. COMMIT
D. SAVEPOINT

29 Which SQL command reverts the database to the state before the transaction began?

A. BACKUP
B. ROLLBACK
C. RETURN
D. UNDO

30 Which state does a transaction enter after the final statement has been executed but before the commit?

A. Failed
B. Aborted
C. Active
D. Partially Committed

31 What is a Deadlock in DBMS?

A. When the database runs out of storage
B. A situation where two or more transactions act effectively as a single unit
C. A situation where two or more transactions are waiting for each other to release locks
D. When a transaction fails due to a syntax error

32 In the context of database keys, what is a Composite Key?

A. A key that references multiple tables
B. A key composed of two or more attributes
C. A foreign key that is also a primary key
D. A key containing letters and numbers

33 What is the degree of a relation with schema ?

A. 3
B. Variable
C. Infinite
D. 4

34 Which of the following creates a Virtual Table based on the result-set of an SQL statement?

A. VIEW
B. TRIGGER
C. TABLE
D. INDEX

35 Which operator is used to search for a specified pattern in a column?

A. EXISTS
B. LIKE
C. IN
D. BETWEEN

36 In functional dependency notation , what is called?

A. Relation
B. Determinant
C. Tuple
D. Dependent

37 Data Independence in DBMS refers to:

A. The ability to modify the schema at one level without affecting the schema at the next higher level
B. The ability of data to correct itself
C. Independence of data from the database administrator
D. The data being stored on a separate server

38 Which aggregate function returns the total number of rows that match a specified criterion?

A. AVG()
B. MAX()
C. COUNT()
D. SUM()

39 Which of the following indicates a Transitive Dependency?

A.
B. and (where is not a candidate key)
C.
D. where is the Primary Key

40 The Two-Phase Locking (2PL) protocol is used for:

A. Creating backups
B. Concurrency Control
C. Authenticating users
D. Normalizing tables

41 Which SQL constraint ensures that all values in a column are different?

A. UNIQUE
B. CHECK
C. DEFAULT
D. NOT NULL

42 In SQL, what is the default sorting order of the ORDER BY clause?

A. Random
B. Descending (DESC)
C. Input Order
D. Ascending (ASC)

43 What is a Foreign Key constraint violation?

A. Inserting a value in a foreign key column that does not match a primary key in the referenced table
B. Leaving a primary key field null
C. Inserting a row with a primary key that already exists
D. Creating a table with the same name as an existing table

44 Which of the following is NOT a type of database key?

A. Alternate Key
B. Candidate Key
C. Primary Key
D. Major Key

45 Lossless Join Decomposition ensures that:

A. The join operation is faster
B. Redundancy is increased
C. The tables cannot be joined
D. No data is lost when tables are joined back together

46 In the context of DBMS, what is an Instance?

A. The software used to run the database
B. The collection of information stored in the database at a particular moment
C. The overall design of the database
D. The data type of a column

47 Which SQL keyword is used to remove duplicate rows from a result set?

A. DISTINCT
B. UNIQUE
C. SEPARATE
D. DIFFERENT

48 What is the purpose of the GROUP BY statement in SQL?

A. To sort the result set
B. To group rows that have the same values in specified columns
C. To join two tables
D. To filter rows based on a condition

49 Which concurrency problem occurs when a transaction reads a value that is being updated by another uncommitted transaction?

A. Unrepeatable Read
B. Lost Update
C. Dirty Read
D. Phantom Read

50 What is the relation between Candidate Keys and Primary Keys?

A. Candidate Keys are a subset of Primary Keys
B. They are always identical
C. They are mutually exclusive
D. Primary Keys are a subset of Candidate Keys