dbms mcq1
dbms mcq1
6. Which command displays the SQL command in the SQL buffer, and then executes it?
A) CMD
B) OPEN
C) EXECUTE
D) RUN
7. What is a DATABLOCK?
A) Set of Extents
B) Set of Segments
C) Smallest Database storage unit
D) Set of blocks
8. If two groups are not linked in the data model editor, what is the hierarchy between them?
A) There is no hierarchy between unlinked groups.
B) The group that is right ranks higher than the group that is to right or below it.
C) The group that is above or leftmost ranks higher than the group that is to right or below it.
D) The group that is left ranks higher than the group that is to the right.
9. Which of the following types of triggers can be fired on DDL operations?
A) Instead of Trigger
B) DML Trigger
C) System Trigger
D) DDL Trigger
10. What operator performs pattern matching?
A) IS NULL operator
B) ASSIGNMENT operator
C) LIKE operator
D) NOT operator
Answers:
1. In SQL, which command is used to remove a stored function from the database?
C) DROP FUNCTION
2. In SQL, which command is used to select only one copy of each set of duplicate rows
A) SELECT DISTINCT
3. Count function in SQL returns the number of
A) Values
4. Composite key is made up of …………….
D) Two or more columns
5. What command is used to get back the privileges offered by the GRANT command?
B) Revoke
6. Which command displays the SQL command in the SQL buffer, and then executes it?
D) RUN
7. What is a DATABLOCK?
C) Smallest Database storage unit
8. If two groups are not linked in the data model editor, what is the hierarchy between them?
C) The group that is above or leftmost ranks higher than the group that is to right or below it.
9. Which of the following types of triggers can be fired on DDL operations?
C) System Trigger
10. What operator performs pattern matching?
C) LIKE operator
1) DROP is a ……………. statement in SQL.A. Query
B. Embedded SQL
C. DDL
D. DCL
2) The keyword to eliminate duplicate rows from the query result in SQL is.
A. DISTINCT
B. NO DUPLICATE
C. UNIQUE
D. None of the above
3) Which of the following aggregate function does not ignore nulls in its results?
A. COUNT
B. COUNT(*)
C. MAX
D. MIN
4) In SQL, testing whether a subquery is empty is done using
A. DISTINCT
B. UNIQUE
C. NULL
D. EXISTS
5) ……………. operator is used to compare a value to a list of literals values that have been
specified.
A. Like
B. Compare
C. Between
D. In
6) The language used in application programs to request data from the DBMS is referred to as
the
A. DML
B. DDL
C. VDL
D. SDL
7) 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
8) A DBMS query language is designed to
A. Support end users who use English-like commands.
B. Support in the development of complex applications software.
C. Specify the structure of a database.
D. All of the above
9) It is possible to define a schema completely using.
A. VDL and DDL
B. DDL and DML
C. SDL and DDL
D. VDL and DML
10) Which of the following is correct.
A. a SQL query automatically eliminates duplicates.
B. SQL permits attribute names to be repeated in the same relation.
C. a SQL query will not work if there are no indexes on the relations.
D. None of these.
11) ……… property will check whether all the operation of a transaction completed or none.
A. Atomicity
B. Consistency
C. Isolation
D. Durability
12) The total ordering of operations across groups ensures ………..of transactions.
A. serializability
B. synchronizability
C. atomicity
D. durability
13) In which state, the transaction will wait for the final statement has been executed?
A. Active
B. Failed
C. Aborted
D. partially committed
14) The ORDER concurrency control technique is based on the property.
A. ordering mechanism
B. inherent ordering
C. total ordering
D. partial ordering
15) Transactions per rollback segment is derived from …..
A. Db_Block_Buffers
B. Processes
C. shared_Pool_size
D. buffers
16) The …………is responsible for ensuring correct execution in the presence of failures.
A. Database Manager
B. Transaction Manager
C. Recovery Manager
D. Executive Manager
17) A distributed transaction can be …………. if queries are issued at one or more nodes.
A. fully read-only
B. partially read-only
C. fully read-write
D. partially read-write
18) The distributed transaction can be completely read-only and the transaction is started with
a ………. READ ONLY statement.
A. DISTRIBUTED_TRANSACTIONS
B. TRANSACTION
C. SET TRANSACTION
D. READ TRANSACTION
19) The initialization parameter …………….. controls the number of possible distributed
transactions in which a given instance can concurrently participate, both as a client and a
server.
A. DISTRIBUTED_TRANSACTIONS
B. TRANSACTION
C. SET TRANSACTION
D. CONTROL TRANSACTION
20) A database administrator can manually force the COMMIT or ROLLBACK of a local
………… distributed transaction.
A. in-force
B. in-doubt
C. in-local
D. in-manual
Answers:
1) B. data consistency
2) A. Exclusive Mode
3) B. before image
4) A. Shrinking Phase
5) C. when it is Committed or Rolled-back
6) D. Growing Phase
7) C. TP monitor
8) A. well formed
9) B. Transaction servers
10) A. two phase locking
11) A. Atomicity
12) A. serializability
13) D. partially committed
14) C. total ordering
15) B. Processes
16) A. Database Manager
17) B. partially read-only
18) C. SET TRANSACTION
19) A. DISTRIBUTED_TRANSACTIONS
20) B. in-doubt