1.
In which of the following events can a transaction event occur?
Correct Answer
C. Connecting to Oracle
Explanation
A transaction event can occur when connecting to Oracle because Oracle is a database management system that allows for the storage and retrieval of data. When connecting to Oracle, users can perform various operations such as inserting, updating, or deleting data, which are considered transactional activities. Therefore, a transaction event can occur in this scenario.
2.
What statement marks and save the current transaction points?
Correct Answer
B. Savepoint
Explanation
A savepoint is a statement that marks and saves the current transaction points. It allows for partial rollback of a transaction, meaning that if there are multiple changes made within a transaction, a savepoint can be set at a certain point and if needed, the transaction can be rolled back to that savepoint, undoing any changes made after it. This is useful in situations where certain parts of a transaction need to be preserved while others are rolled back.
3.
A transaction can be closed either by a commit or ____ statement?
Correct Answer
C. Rollback
Explanation
A transaction can be closed either by a commit or rollback statement. A commit statement is used to permanently save the changes made in a transaction, while a rollback statement is used to undo or cancel the changes made in a transaction and restore the previous state. Therefore, both commit and rollback statements are used to close a transaction, depending on whether the changes should be saved or discarded.
4.
Which of these transactions control statement makes all changes permanent?
Correct Answer
B. COMMIT
Explanation
The COMMIT transaction control statement makes all changes permanent. When a COMMIT statement is executed, it saves all the changes made within the transaction to the database, making them permanent and visible to other users. It marks the successful completion of the transaction and ensures that the changes are durable and not rolled back. SAVEPOINT allows for creating a point within a transaction to which it can be rolled back, and ROLLBACK undoes all changes made within a transaction, but COMMIT is the only statement that guarantees permanent changes.
5.
The use of certain forms of the COMMIT and ___ commands are restricted in PL/SQL.
Correct Answer
A. ROLLBACK
Explanation
In PL/SQL, the use of certain forms of the COMMIT and ROLLBACK commands are restricted. The COMMIT command is used to permanently save the changes made in a transaction, while the ROLLBACK command is used to undo the changes made in a transaction. Since the question states that the use of certain forms of the COMMIT command is restricted, it implies that the correct answer is ROLLBACK, as it is one of the restricted commands in PL/SQL.
6.
Transaction control language is a/an ___ command.
Correct Answer
D. SQL
Explanation
Transaction control language is a command used in SQL. SQL, or Structured Query Language, is a programming language specifically designed for managing and manipulating relational databases. Transaction control language commands, such as COMMIT and ROLLBACK, are used to control the transactions within a database. These commands ensure that changes made to the database are either permanently saved or rolled back if necessary. Therefore, the correct answer is SQL.
7.
Which of these TCL commands save the work done?
Correct Answer
B. Commit
Explanation
The TCL command "commit" saves the work done. This command is used to permanently save any changes made in a transaction. By using the "commit" command, the changes are written to the database, ensuring that they are not lost and are available for future use.
8.
Transaction control language manages changes made by...
Correct Answer
C. DML
Explanation
DML stands for Data Manipulation Language and it is used to manage changes made by modifying or manipulating data within a database. DML commands such as INSERT, UPDATE, and DELETE are used to add, modify, and delete data in database tables. DCL (Data Control Language) is used to control access and permissions on the database, while DDL (Data Definition Language) is used to define the structure and schema of the database objects. HTML (Hypertext Markup Language) is a markup language used for creating web pages and has no direct relation to managing changes in a database.
9.
Once we commit, we cannot rollback.
Correct Answer
A. True
Explanation
This statement is true because once we commit to something, it means we have made a decision or taken an action that cannot be easily undone or reversed. Commitment implies a level of dedication and responsibility, and it often involves a certain level of permanence. Therefore, it is generally not possible to rollback or go back on a commitment without consequences or difficulties.
10.
All of these are transaction control language statements except one.
Correct Answer
A. Save
Explanation
The given options consist of transaction control language statements, which are used to manage transactions in a database. The statements "commit," "rollback," and "savepoint" are all valid transaction control language statements. However, "save" is not a transaction control language statement. It is not used to control or manage transactions but rather to store data or objects in a database.