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 manage the storage, retrieval, and modification of data
B. To hide data from users to ensure security
C. To replace the operating system of a computer
D. To exclusively process mathematical calculations

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

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

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

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

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

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

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

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

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

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

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

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

8 What is a Primary Key?

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

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

A. Primary Key
B. Super Key
C. Alternate Key
D. Foreign 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. MODIFY
C. UPDATE
D. CHANGE

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

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

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

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

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

A. Partial Key
B. Secondary 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 set of one or more attributes that uniquely identifies a tuple
D. A key containing only one attribute

16 Which SQL clause is used to filter records?

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

17 What is Normalization in DBMS?

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

18 First Normal Form (1NF) requires that:

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

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

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

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

A. The table is in 3NF
B. The table has no primary key
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. For every non-trivial functional dependency , is a super key
B. It contains no null values
C. It is in 1NF
D. There are no foreign keys

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

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

23 What is a Transaction in DBMS?

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

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. Deadlocks never occur
B. System failures do not lose data
C. The database moves from one valid state to another valid state
D. Transactions are executed in isolation

26 What does Isolation imply in transaction management?

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

27 The Durability property ensures that:

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

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

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

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

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

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

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

31 What is a Deadlock in DBMS?

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

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

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

33 What is the degree of a relation with schema ?

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

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

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

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. Dependent
B. Tuple
C. Determinant
D. Relation

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. SUM()
B. AVG()
C. COUNT()
D. MAX()

39 Which of the following indicates a Transitive Dependency?

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

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

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

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

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

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

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

43 What is a Foreign Key constraint violation?

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

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

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

45 Lossless Join Decomposition ensures that:

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

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

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

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

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

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

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

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

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

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

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