DBMS Lab Quiz 2 B3

DBMS Lab Quiz 2 B3

University

10 Qs

quiz-placeholder

Similar activities

DBMS LAB QUIZ

DBMS LAB QUIZ

University

15 Qs

10-mavzu. Python va PostgreSQL

10-mavzu. Python va PostgreSQL

University

15 Qs

CertyIQ - Google - Prof Data Eng - pt 10

CertyIQ - Google - Prof Data Eng - pt 10

University

13 Qs

MongoDB

MongoDB

University

15 Qs

DDL

DDL

University

15 Qs

DBMS Lab quizII

DBMS Lab quizII

University

10 Qs

SQL Quiz

SQL Quiz

10th Grade - University

10 Qs

Pretest 2

Pretest 2

University

10 Qs

DBMS Lab Quiz 2 B3

DBMS Lab Quiz 2 B3

Assessment

Quiz

Computers

University

Hard

Created by

Nikhil govil

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A database application is designed to handle concurrent transactions. A user initiates a transaction to read a set of records without being affected by changes made by other transactions. Which isolation level should be set for this transaction?

READ UNCOMMITTED

READ COMMITTED

REPEATABLE READ

SERIALIZABLE

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A database contains a table named students with columns student_id, student_name, and enrollment_date. A user initiates a transaction to retrieve the count of students enrolled after a specific date. Which SQL statement should be used to perform this retrieval within the transaction?

SELECT COUNT(student_id) FROM students WHERE enrollment_date > '2023-01-01';

COUNT students WHERE enrollment_date > '2023-01-01';

GET COUNT(student_id) FROM students WHERE enrollment_date > '2023-01-01';

RETRIEVE COUNT(student_id) FROM students WHERE enrollment_date > '2023-01-01';

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A user initiates a transaction to retrieve the highest salary from a table named employees. Which SQL statement should be used to perform this retrieval within the transaction?

GET MAX(salary) FROM employees;

SELECT MAX(salary) FROM employees;

FIND MAX(salary) IN employees;

SEARCH MAX(salary) WITHIN employees;

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A database contains a table named products with columns product_id, product_name, and quantity_in_stock. A user initiates a transaction to update the quantity in stock for a specific product with product_id = 201 to 50. Which SQL statement should be used to perform this update within the transaction?

CHANGE products SET quantity_in_stock = 50 WHERE product_id = 201;

UPDATE products SET quantity_in_stock = 50 WHERE product_id = 201;

MODIFY products SET quantity_in_stock = 50 WHERE product_id = 201;

ALTER products SET quantity_in_stock = 50 WHERE product_id = 201;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A user initiates a transaction to retrieve the distinct categories of products from a table named products. Which SQL statement should be used to perform this retrieval within the transaction?

SELECT DISTINCT category FROM products;

GET DISTINCT category FROM products;

SEARCH DISTINCT category IN products;

FIND DISTINCT category IN products;

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

An inventory management system records the quantity of products in a table. A user initiates a transaction to update the quantity of a specific product. If any part of the transaction fails, the system should revert to the state at the beginning of the transaction. Which SQL statement is used to roll back to a savepoint ?

ROLLBACK 

ROLLBACK TO SAVEPOINT 

ROLLBACK TRANSACTION 

UNDO TO SAVEPOINT

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A user initiates a transaction to update multiple records in a table, and the changes should be isolated from other transactions until the entire transaction is committed. Which isolation level should be set for this transaction?

READ UNCOMMITTED 

READ COMMITTED 

REPEATABLE READ

SERIALIZABLE

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?