Skip to main content

10 multiple-choice questions related to synchronization in DBMS:

Here are 10 multiple-choice questions related to synchronization in DBMS with their answers:


Question 1: Synchronization Definition

Q1: Synchronization in DBMS is primarily concerned with:

  • A) Improving the speed of transactions
  • B) Ensuring data consistency and integrity when multiple transactions are executed concurrently
  • C) Optimizing storage space
  • D) Enhancing the user interface

Answer: B) Ensuring data consistency and integrity when multiple transactions are executed concurrently


Question 2: Race Condition

Q2: A race condition in DBMS occurs when:

  • A) Multiple transactions compete for CPU time
  • B) The outcome of transactions depends on the non-deterministic timing of events
  • C) Transactions are executed in a sequential manner
  • D) The system runs out of memory

Answer: B) The outcome of transactions depends on the non-deterministic timing of events


Question 3: Lock-Based Protocols

Q3: Which of the following is a lock-based protocol used for synchronization?

  • A) Two-Phase Locking (2PL)
  • B) Timestamp Ordering
  • C) Snapshot Isolation
  • D) Multiversion Concurrency Control (MVCC)

Answer: A) Two-Phase Locking (2PL)


Question 4: Two-Phase Locking (2PL)

Q4: In Two-Phase Locking (2PL), the two phases are:

  • A) Lock Acquisition and Lock Release
  • B) Read and Write
  • C) Commit and Rollback
  • D) Shared and Exclusive

Answer: A) Lock Acquisition and Lock Release


Question 5: Deadlock Avoidance

Q5: Which of the following is a method to avoid deadlocks in a DBMS?

  • A) Timeout Mechanism
  • B) Data Replication
  • C) Write-Ahead Logging
  • D) Normalization

Answer: A) Timeout Mechanism


Question 6: Shared Lock

Q6: A shared lock (S-lock) in DBMS allows:

  • A) Only one transaction to read the data item
  • B) Multiple transactions to read the data item
  • C) Multiple transactions to write to the data item
  • D) No transactions to access the data item

Answer: B) Multiple transactions to read the data item


Question 7: Exclusive Lock

Q7: An exclusive lock (X-lock) in DBMS allows:

  • A) Only one transaction to write to the data item
  • B) Multiple transactions to write to the data item
  • C) Only one transaction to read the data item
  • D) Multiple transactions to read the data item

Answer: A) Only one transaction to write to the data item


Question 8: Timestamp Ordering

Q8: In the Timestamp Ordering protocol, the system assigns timestamps to:

  • A) Data items
  • B) Transactions
  • C) Users
  • D) Tables

Answer: B) Transactions


Question 9: Serializable Schedule

Q9: A schedule is considered serializable if:

  • A) It can be completed without any locks
  • B) It results in the same state as some serial schedule
  • C) It includes only read operations
  • D) It avoids deadlocks

Answer: B) It results in the same state as some serial schedule


Question 10: Multiversion Concurrency Control (MVCC)

Q10: Multiversion Concurrency Control (MVCC) improves concurrency by:

  • A) Using multiple versions of data items
  • B) Locking data items more frequently
  • C) Reducing the number of transactions
  • D) Avoiding the use of timestamps

Answer: A) Using multiple versions of data items

Comments

Popular posts from this blog

Top 5 Safe Chat Apps for Kids with Parental Controls

Now a days kids are growing up with technology at their fingertips. While communication apps help children stay connected with family and friends, safety remains a top concern for parents. Unregulated platforms can expose children to inappropriate content, online predators, and cyberbullying. That’s why choosing a kid-friendly chat app with parental controls is essential. To help parents find the best options, we’ve compiled a list of the top five safest chat apps for kids that offer safe and controlled environment. 1. Messenger Kids (By Meta) Best for: Safe video calls and text messaging with parental supervision Features: Parents approve all contacts No ads or in-app purchases Fun filters, stickers, and games Monitored messaging and activity reports Why It’s Safe: Messenger Kids is designed for children under 13 and requires parental approval for every contact. Parents can monitor chats and control screen time through the Parent Dashboard. Download Messenger Kids 2...

10 Routing Protocol MCQ

10 multiple-choice questions on Routing protocol s  with explanations, useful for UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Purpose of Routing Protocols Q1: What is the primary purpose of a routing protocol? A) To assign IP addresses to devices B) To determine the best path for data packets to reach their destination C) To encrypt data during transmission D) To physically connect different networks Answer: B) To determine the best path for data packets to reach their destination Explanation: Routing protocols help routers determine the most efficient path for data transmission across a network, ensuring fast and reliable communication. Question 2: Classification of Routing Protocols Q2: Routing protocols can be broadly classified into which two main categories? A) TCP and UDP B) Distance Vector and Link-State C) IPv4 and IPv6 D) Static and Dynamic Answer: B) Distance Vector and Link-State Explanation: Routing prot...

10 Distance Vector and Link-State Routing MCQ

  10 multiple-choice questions  on  Distance Vector and Link-State Routing with explanations, useful for  UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Basic Concept of Distance Vector Routing Q1: In a distance vector routing protocol, how do routers share routing information? A) By flooding the entire network with routing updates B) By periodically exchanging routing tables with their immediate neighbors C) By using a link-state database to determine the shortest path D) By dynamically updating paths based on link failure reports Answer: B) By periodically exchanging routing tables with their immediate neighbors Explanation: In Distance Vector Routing, routers share their routing tables with neighbors at regular intervals, leading to a simple but slow convergence mechanism. Question 2: Example of Distance Vector Routing Protocol Q2: Which of the following is an example of a Distance Vector routing protocol? A) OSPF ...