Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1701 Which TCL statement undoes all changes made in the current transaction?
Explanation
ROLLBACK discards the changes made since the transaction began or since the last savepoint.
Last verified on 27-11-2026
1702 What is a transaction in a database?
Explanation
A transaction groups several operations so they all succeed together or all fail together.
Last verified on 27-11-2026
1703 What does SAVEPOINT do in a transaction?
Explanation
SAVEPOINT marks a position inside a transaction, allowing ROLLBACK TO SAVEPOINT to undo only later work.
Last verified on 27-11-2026
1704 Which statement rolls back a transaction to a named savepoint?
Explanation
ROLLBACK TO SAVEPOINT returns the transaction to that point, keeping earlier changes in the transaction.
Last verified on 27-11-2026
1705 Which DCL statement gives a user the right to read a table?
Explanation
GRANT SELECT ON table TO user gives that user read permission on the named table.
Last verified on 27-11-2026
1706 Which DCL statement takes away INSERT permission from a user?
Explanation
REVOKE removes a specified privilege from a user on a specified object.
Last verified on 27-11-2026
1707 What does GRANT ALL PRIVILEGES ON Students TO Ali do?
Explanation
ALL PRIVILEGES grants the full set of permissions, such as SELECT, INSERT, UPDATE and DELETE, on that table.
Last verified on 27-11-2026
1708 Which property of a transaction means all its operations succeed or none do?
Explanation
Atomicity requires a transaction to be all-or-nothing, so a failure rolls back every operation in it.
Last verified on 27-11-2026
1709 Which property means a transaction moves the database from one valid state to another?
Explanation
Consistency ensures a completed transaction leaves the database obeying all rules and constraints.
Last verified on 27-11-2026
1710 Which aggregate function returns the smallest value in a column?
Explanation
MIN returns the smallest value in the column.
Last verified on 27-11-2026