
DBMS Lab Quiz 2 B3
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Nikhil govil
Used 4+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Entorno Financiero Digital 2do test
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Google Apps
Quiz
•
10th Grade - Professi...
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
