Database Management Systems · Database Management Systems Which SQL command is used to modify the structural definition of an existing table (e.g., adding a new column)? A UPDATE B ALTER Correct answer C MODIFY D CHANGE MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which type of join returns only the rows that have matching values in both tables? A Full Outer Join B Inner Join Correct answer C Left Join D Right Join MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which type of JOIN returns all records from the left table and matching records from the right table, filling with NULL where no match exists? A INNER JOIN B RIGHT JOIN C LEFT OUTER JOIN Correct answer D FULL OUTER JOIN MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems How many rows would be returned from a cross join of tables A and B if A contains 10 rows and B contains 20 rows? A 10 B 20 C 30 D 200 Correct answer MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems What is the result of a subquery that returns more than one row when used with a single-row comparison operator like '='? A Returns first row B Returns all rows C Runtime error Correct answer D Returns NULL MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which SQL clause is used to define a temporary result set that can be referenced within a query? A HAVING B WITH Correct answer C ORDER BY D GROUP BY MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems In a join, what is the purpose of the ON clause? A Filter groups B Specify join condition Correct answer C Sort results D Limit rows MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Concurrency control manages simultaneous access to data to prevent: A Backups B Conflicts and inconsistency Correct answer C Indexes D Normalization MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which of the following is true about Multiversion Concurrency Control (MVCC)? A It uses strict locking B It maintains multiple versions Correct answer C It prevents all concurrency D It requires no validation MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems A lock that allows concurrent transactions to access different rows of the same table is known as a: A Field-level lock B Row-level lock Correct answer C Table-level lock D Database-level lock MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which of the following makes the transaction permanent in the database? A View B Commit Correct answer C Rollback D Savepoint MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems A ______ consists of a sequence of query and/or update statements. A Transaction Correct answer B View C Trigger D Index MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems In the context of transaction states, what is the state immediately after the final statement has been executed? A Active B Partially committed Correct answer C Committed D Failed MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems What is the 'Lost Update' problem in concurrent transactions? A Reading uncommitted data B New rows appearing in a query C Overwriting another transaction's update Correct answer D Reading the same row twice MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which component of a DBMS is responsible for ensuring Atomicity and Durability? A Recovery Manager Correct answer B Buffer Manager C Query Optimizer D Transaction Manager MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems What is a 'Phantom Read' in database transactions? A Reading uncommitted data B Reading the same row twice with different values C Overwriting another transaction's update D New rows appearing in a re-executed query Correct answer MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which isolation level allows a transaction to read data that has been modified by another transaction but not yet committed? A Read Committed B Repeatable Read C Serializable D Read Uncommitted Correct answer MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems What is the primary goal of Optimistic Concurrency Control (OCC)? A Avoid locks and validate before commit Correct answer B Use strict locking C Prevent all reads D Serialize all transactions MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems In Two-Phase Locking (2PL), what is the primary purpose of the shrinking phase? A Acquire locks B Release locks without acquiring new ones Correct answer C Abort transaction D Commit transaction MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which concurrency control mechanism uses a timestamp to order transactions based on their start time? A Timestamp ordering Correct answer B Two-Phase Locking C Optimistic concurrency D Multiversion concurrency MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems What phenomenon occurs when a transaction reads data that has been modified by another transaction but not yet committed? A Phantom read B Dirty read Correct answer C Non-repeatable read D Lost update MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which ACID property ensures that once a transaction is committed, its changes persist even in the event of a system crash? A Durability Correct answer B Atomicity C Consistency D Isolation MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which isolation level is the most restrictive and prevents all concurrency phenomena including phantom reads? A Read Uncommitted B Read Committed C Repeatable Read D Serializable Correct answer MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems In the context of ACID properties, what does the Consistency property guarantee? A All-or-nothing execution B Valid state transitions Correct answer C Concurrent isolation D Permanent changes MCQSEXAM Show answer Read explanation
Database Management Systems · Database Management Systems Which ACID property ensures that a transaction is treated as a single unit of work, where either all operations succeed or none are applied? A Atomicity Correct answer B Consistency C Isolation D Durability MCQSEXAM Show answer Read explanation