Dbms Int 306
Dbms Int 306
Unit 2:-
1. What is the Relational Query Language (RQL)?
b) A query language used to retrieve and manipulate data in a relational database
8. What is SQL?
b) A query language used to retrieve and manipulate data in a relational database
Unit 3: -
1. d
2. b
3. a
4. d
5. c
6. d
7. d
8. c
9. d
10. c
11. d
12. d
13. d
14. d
15. d
16. d
17. a
18. d
19. c
20. a
21. d
22. b
23. d
24. d
25. d
26. a
27. a
28. d
29. d
30. d
31. a
32. b
33. b
34. a
35. d
36. a
37. d
38. a
39. d
40. d
Unit 4:-
1. c) A set of instructions that are executed as a single unit of work.
2. a) Atomicity, consistency, isolation, durability.
3. a) Atomicity.
4. c) T1: read(A), write(B); T2: read(B), write(A).
5. a) A sequence of instructions that can be executed concurrently.
6. b) A schedule in which transactions are executed sequentially.
7. c) T1: read(A), write(B); T2: read(B), write(A).
8. a) The property that a schedule can be transformed into a serial schedule.
9. a) T1: read(A), write(B); T2: read(B), write(C); T3: read(C), write(A).
10. c) The process of ensuring that transactions are executed concurrently.
11. b) To prevent conflicts between concurrent transactions.
12. a) T1: read(A), write(B); T2: read(A), write(C).
13. c) To prevent conflicts between concurrent transactions.
14. a) T1: read(A); T2: read(B); T3: read(C).
15. d) T1: read(A); T2: write(A); T3: write(A).
16. a) A situation in which two transactions are waiting for each other to release locks.
17. c) To provide a record of all transactions that have been executed.
18. b) T1: read(A), write(B); T2: read(B), write(C); T3: read(D), write(C).
19. d) To reduce the amount of work required during database recovery.
20. a) T1: read(A), write(B); T2: read(B), write(C); T3: read(C), write(D).
21. c) To ensure that transactions are either all committed or all aborted.
22. b) T1: read(A), read(B); T2: read(C), read(D); T3: read(E), read(F).
23. c) To provide a record of all changes made to the database.
24. c) T1: read(A), write(B); T2: read(B), write(C); T3: read(D), write(E).
25. a) T1: read(A), write(B); T2: read(B), write(C); T3: read(C), write(A).
26. c) To identify and resolve deadlocks between transactions.
27. c) T1: read(A), write(B); T2: read(B); T3: read(A), read(B).
28. c) To restore the database to a consistent state after a failure.
29. b) T1: read(A), write(B); T2: read(B), write(C); T3: read(A), write(C).
30. b) T1: read(A), write(B); T2: read(B), write(A); T3: read(C), write(D).
31. b) To prevent conflicts between concurrent transactions.
32. c) T1: read(A), write(B); T2: read(B), write(C); T3: read(A), read(C).
33. b) To prevent conflicts between concurrent transactions.
34. b) T1: read(A), write(B); T2: read(B), write(C); T3: read(A), read(B).
35. d) To aid in database recovery after a failure.
36. a) T1: read(A), write(B); T2: read(B), write(C); T3: read(C), write(D).
Unit 5:-
1. d) stored procedure
2. a) To perform a specific task and return a value
3. a) They are used to execute a set of SQL statements in a specific order
4. a) A control structure used to iterate through a set of data in a database
5. a) To perform an action in response to a change in a database table
6. c) Database exception
7. c) for loop
8. a) They can be reused in different parts of a program
9. a) To execute a set of SQL statements in a specific order
10. a) To iterate over a set of data in a database
11. a) To perform an action in response to a change in a database table
12. c) if-else statement
13. a) They can improve performance by reducing network traffic
14. d) Stored cursor
15. a) To handle errors and unexpected events in a program
16. c) for loop
17. a) To perform a specific task and return a value
18. a) They can decrease performance by increasing database overhead
19. d) Inefficiency
20. c) if-else statement
21. a) They are used to execute a set of SQL statements in a specific order
22. a) A control structure used to iterate through a set of data in a database
23. a) To perform an action in response to a change in a database table
24. c) Database exception
25. c) break statement
26. a) To perform a specific task and return a value
27. d) for loop
28. a) To execute a set of SQL statements in a specific order
29. b) They can be difficult to debug and maintain
30. d) Scalability
31. a) A set of SQL statements that are executed in response to a database event
32. a) They are used to iterate through a set of data in a database
33. b) switch-case statement
34. d) Complexity
35. d) DDL statements
36. a) Flexibility
37. a) To handle errors and unexpected events in a program
38. d) continue statement
39. c) CREATE statement
40. d) Concurrency control mechanisms
Unit 6:-
1. b) It refers to the structure used to store data in a database file.
2. d) Sequential, indexed, clustered.
3. a) A database object used to organize data for faster retrieval.
4. a) B-tree, hash, binary.
5. c) A technique used to index data in a database.
6. a) Linear, quadratic, chained.
7. a) A term used to describe large amounts of data that cannot be processed by traditional
methods.
8. a) Databases that do not use SQL for querying data.
9. b) Data is stored in a sequence that is determined by a key field.
10. a) Data is stored in a sequence that is determined by a key field.
11. c) Data is stored in a sequence that is determined by a key field.
12. a) An indexing technique used for faster retrieval of data.
13. c) A hashing technique used for indexing data.
14. a) An index that is based on the physical order of data in a table.
15. b) An index that is based on the logical order of data in a table.
16. a) A programming construct used to manipulate data in a database.
17. c) A type of programming construct used to perform a specific task.
18. d) A mechanism for traversing through data in a database.
19. a) Database objects that execute a set of actions in response to an event.
20. a) A mechanism for handling errors in a database.
21. a) Atomicity, consistency, isolation, durability.
22. a) It ensures that a transaction is either completed in its entirety or not at all.
23. a) It ensures that a transaction leaves the database in a valid state.
24. a) It ensures that a transaction is isolated from other transactions until it is completed.
25. a) It ensures that the effects of a transaction persist even in the event of a failure.
26. a) A sequence of instructions that represent a series of transactions.
27. a) A property that guarantees that a set of concurrent transactions will produce the
same results as if they were executed serially.
28. a) The process of managing the simultaneous execution of multiple transactions in a
database.
29. a) The ability to restore the database to a consistent state after a failure.
30. a) A method used to store data in a database.
31. a) Sequential, indexed sequential, random.
32. a) A mechanism used to speed up data retrieval from a database.
33. b) Clustered, non-clustered, binary.
34. a) A technique used to quickly locate data in a database.
35. a) Linear hashing, quadratic hashing, double hashing.
36. a) A term used to describe large and complex datasets.
37. a) A type of database management system that is designed to handle unstructured and
semi-structured data.
38. d) All of the above.
39. d) All of the above.
40. a) A mechanism used to handle errors and exceptions that occur during program
execution.