
DBMS Lab Quiz 2 B3

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
15 questions
PHP MySQL

Quiz
•
University
10 questions
Oracle SQL Basico

Quiz
•
University
10 questions
ACTUALIZAR - ELIMINAR - BD

Quiz
•
12th Grade - University
15 questions
Database and Security BTQuiz

Quiz
•
University
10 questions
DataBase 2

Quiz
•
University
11 questions
UAS Pemrograman Web

Quiz
•
University
10 questions
Base de Datos S12

Quiz
•
12th Grade - University
15 questions
7.7 Software Security Review

Quiz
•
8th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade