adplus-dvertising

Welcome to the Concurrency Control MCQs Page

Dive deep into the fascinating world of Concurrency Control with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Concurrency Control, a crucial aspect of DBMS. In this section, you will encounter a diverse range of MCQs that cover various aspects of Concurrency Control, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within DBMS.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Concurrency Control. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of DBMS.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Concurrency Control. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Concurrency Control MCQs | Page 15 of 15

Explore more Topics under DBMS

Q141.
Which of the following causes system to crash
Discuss
Answer: (d).All of the mentioned
Discuss
Answer: (d).All of the mentioned
Q143.
You executed the following SQL statements in the given order. The DELETE statement results in the following error:

ERROR at line 1: table or view does not exist

What would be the outcome?
CREATE TABLE orders
(order_id NUMBER(3) PRIMARY KEY,
order_date DATE,
customer_idnumber(3));
 
INSERT INTO orders VALUES (100,'10-mar-2007,,222);
 
ALTER TABLE orders MODIFY order_date NOT NULL;
 
UPDATE orders SET customer_id=333;
 
DELETE FROM order;
Discuss
Answer: (d).All the statements up to the ALTER TABLE statement would be committed and the outcome of the UPDATE statement is retained uncommitted within the session
Q144.
What would be the outcome of the below query?
CREATE TABLE digits
(id NUMBER(2),
description VARCHAR2(15));
INSERT INTO digits VALUES (1,'ONE);
UPDATE digits SET description ='TWO'WHERE id=1;
INSERT INTO digits VALUES (2 ,'TWO');
COMMIT;
DELETE FROM digits;
SELECT description FROM digits
VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE;
Discuss
Answer: (c).It would display the value TWO twice
Discuss
Answer: (d).A set of one or more sequential queries in which generally the result of the inner query is used as the search value in the outer query
Discuss
Answer: (c).A public synonym and a private synonym can exist with the same name for the same table
Q147.
SCOTT is a user in the database. Which statement is true regarding the execution of the below commands?
Evaluate the commands issued BY the DBA:
1 - CREATE ROLE mgr;
2 - GRANT CREATE TABLE, SELECT
ON oe. orders TO mgr;
3 - GRANT mgr, CREATE TABLE TO SCOTT;
Discuss
Answer: (d).Statement 2 would not execute because system privileges and object privileges cannot be granted together in a single GRANT command
Q148.
OE and SCOTT are the users in the database. The ORDERS table is owned by OE. Evaluate the statements issued by the DBA in the following sequence. What would be the outcome after executing the statements?
CREATE ROLE r1;
GRANT SELECT, INSERT ON oe. orders TO r1;
GRANT r1 TO scott;
GRANT SELECT ON oe. orders TO scott;
REVOKE SELECT ON oe.orders FROM scott;
Discuss
Answer: (a).SCOTT would be able to query the OE.ORDERS table
Q149.
Given below are the SQL statements executed in a user session. Which statement describes the consequences?
CREATE TABLE product
(pcode NUMBER(2),
pnameVARCHAR2(10));
INSERT INTO product VALUES(1, 'pen');
INSERT INTO product VALUES (2,'penci');
SAVEPOINT a;
UPDATE product SET pcode = 10 WHERE pcode = 1;
SAVEPOINT b;
DELETE FROM product WHERE pcode = 2;
COMMIT;
DELETE FROM product WHERE pcode=10;
ROLLBACK TO SAVEPOINT a;
Discuss
Answer: (d).Both the DELETE statements and the UPDATE statement would be rolled back
Q150.
Evaluate the following command. Which statements are true regarding the below view?
CREATE TABLE employees (employee_id NUMBER(2) PRIMARY KEY, last_name VARCHAR2(25) NOT
NULL, department_id NUMBER(2), job_id VARCHAR2(8), salary NUMBER(10,2));
You issue the following command TO CREATE a VIEW that displays the IDs AND LAST names OF the sales staff IN the organization:
CREATE OR REPLACE VIEW sales_staff_vu AS SELECT employee_id, last_name job_id FROM employees
WHERE job_id LIKE 'SA_%' WITH CHECK OPTION;
Discuss
Answer: (d).It allows you to insert the IDs, last

Suggested Topics

Are you eager to expand your knowledge beyond DBMS? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!