Top 1000+ Solved DataBase Management System (DBMS) MCQ Questions Answer

From 1036 to 1050 of 1187

Q. PL/SQL has two types of subprograms, procedures and functions. Which subprogram isused to compute a value?

a. Procedure

b. Function

c. Both A & B

d. None of the above

  • b. Function

Q. Which datatype is not allowed in the definition of PL/SQL record?

a. A Collection

b. A Scalar

c. Both A & B

d. None of the above

  • a. A Collection

Q. Which collection types is also known as index-by tables, lets you look up elements Using arbitrary numbers and strings for subscript values?

a. Associative arrays

b. Nested tables

c. Varrays

d. None of the above

  • a. Associative arrays

Q. Assigning a value to a collection element can cause exceptions, such as

a. If the subscript is NULL or is not convertible to the right datatype, PL/SQL raises the predefined exception VALUE_ERROR. Usually, the subscript must be an integer. Associative arrays can also be declared to have VARCHAR2 subscripts.

b. If the subscript refers to an uninitialized element, PL/SQL raises SUBSCRIPT_BEYOND_COUNT.

c. If the collection is atomically null, PL/SQL raises COLLECTION_IS_NULL.

d. All mentioned above

  • d. All mentioned above

Q. Which of the following is an aggregate function in SQL?

a. Union

b. Like

c. Group By

d. Max

  • d. Max

Q. Which command is used to add a column to an existing table?

a. Create

b. Update

c. Alter

d. None of these

  • c. Alter

Q. A deadlock exists in the system if and only if the wait for graph:

a. has a cycle in it

b. has a path from first node to last node

c. is a tree

d. none of the above

  • a. has a cycle in it

Q. Rollback of transactions is normally used to:

a. recover from transaction failure

b. update the transaction

c. retrieve old records

d. repeat a transaction

  • a. recover from transaction failure

Q. The DBMS language component which can be embedded in a program is

a. The data definition language (DDL).

b. The data manipulation language (DML).

c. The database administrator (DBA).

d. A query language

  • b. The data manipulation language (DML).

Q. The statement in SQL which allows to change the definition of a table is

a. Alter.

b. Update.

c. Create.

d. select.

  • a. Alter.
Subscribe Now

Get All Updates & News