DBMS Imp MCQs
DBMS Imp MCQs
CrackIT
DBMS imp MCQs
Which of the following products was an early implementation of the relational model developed by E.F. Codd of IBM?
A. IDMS
B. DB2
C. dBase-II
D. R:base
Every time attribute A appears, it is matched with the same value of attribute B, but not the same value of attribute C.
Therefore, it is true that:
A. A → B.
B. A → C.
C. A → (B,C).
D. (B,C) → A.
A. record.
B. relation.
C. column.
D. field.
Which of the following is a group of one or more attributes that uniquely identifies a row?
A. Key
B. Determinant
C. Tuple
D. Relation
When the values in one or more attributes being used as a foreign key must exist in another set of one or more attributes in
another table, we have created a(n):
A. transitive dependency.
B. insertion anomaly.
C. referential integrity constraint.
D. normal form.
Which type of entity cannot exist in the database unless another type of entity also exists in the database, but does not require
that the identifier of that other entity be included as part of its own identifier?
A. Weak entity
B. Strong entity
C. ID-dependent entity
D. ID- independent entity
In a one-to-many relationship, the entity that is on the one side of the relationship is called a(n) ________ entity.
A. parent
B. child
C. instance
D. subtype
In a one-to-many relationship, the entity that is on the many side of the relationship is called a(n) ________ entity.
A. parent
B. child
C. instance
D. subtype
A. MAKE TABLE.
B. ALTER TABLE.
C. DEFINE TABLE.
D. CREATE TABLE.
The DROP TABLE statement:
A. GROUP BY.
B. WHERE.
C. ORDER BY.
D. FROM.
A. implicit locks
B. explicit locks
C. exclusive locks
D. shared locks
Which of the following occurs when a transaction rereads data and finds new rows that were inserted by a command
transaction since the prior read?
A. Nonrepeatable read
B. Phantom read
C. Dirty read
D. Consistent read
In this instance, dirty reads are disallowed, while nonrepeatable reads and phantom reads are allowed.
A. Read committed
B. Read uncommitted
C. Repeatable read
D. Serializable
Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions
caused by a committed transaction?
A. Nonrepeatable read
B. Phantom read
C. Dirty read
D. Consistent read
Which of the following disallows both dirty reads and nonrepeatable reads, but allows phantom reads?
A. Read committed
B. Read uncommitted
C. Repeatable read
D. Serializable
Dirty read, nonrepeatable, and phantom reads are not possible in this instance.
A. Read committed
B. Read uncommitted
C. Repeatable read
D. Serializable
A transaction in which either all of the database actions occur or none of them do is called:
A. atomic.
B. consistent.
C. isolated.
D. durable.
Which of the following occurs when one transaction reads a changed record that has not been committed to the database?
A. Nonrepeatable read
B. Phantom read
C. Dirty read
D. Consistent read
Which of the following allows dirty reads, nonrepeatable reads and phantom reads to occur?
A. Read committed
B. Read uncommitted
C. Repeatable read
D. Serializable
A. implicit lock.
B. lock granularity.
C. exclusive lock.
D. shared lock.
Which of the following database activities determines the entities, attributes, and relationships of data?
A. Internal
B. Conceptual
C. External
D. None of the above.
A. Attribute
B. Entity
C. Optional One
D. Relationship
The fastest read/write time and most efficient data storage of any disk array type is:
A. RAID-0.
B. RAID-1.
C. RAID-2.
D. RAID-3.
A snowflake schema is which of the following types of tables?
A. Fact
B. Dimension
C. Helper
D. All of the above
A. Completely denoralized
B. Partially denoralized
C. Completely normalized
D. Partially normalized
A. Many-to-many
B. One-to-one
C. One-to-many
D. All of the above.
Storing a separate copy of the database at multiple locations is which of the following?
A. Data Replication
B. Horizontal Partitioning
C. Vertical Partitioning
D. Horizontal and Vertical Partitioning
You can add a row using SQL in a database with which of the following?
A. ADD
B. CREATE
C. INSERT
D. MAKE
Where clause is used to limit the row. If I want to display only those student name who achieve greater than 80
then we limit the row.
A. LIKE only
B. IN only
C. NOT IN only
D. IN and NOT IN
Which of the following is the correct order of keywords for SQL SELECT statements?
A. braces -- {...}.
B. CAPITAL LETTERS.
C. parenthesis -- (...) .
D. brackets -- [...].
A. Acts like a WHERE clause but is used for groups rather than rows.
B. Acts like a WHERE clause but is used for rows rather than columns.
C. Acts like a WHERE clause but is used for columns rather than groups.
D. Acts EXACTLY like a WHERE clause.
Which one of the following sorts rows in SQL?
A. SORT BY
B. ALIGN BY
C. ORDER BY
D. GROUP BY
A. use FROM to name the source table(s) and list the columns to be shown after SELECT.
B. use USING to name the source table(s) and list the columns to be shown after SELECT.
C. use SELECT to name the source table(s) and list the columns to be shown after USING.
D. use USING to name the source table(s) and list the columns to be shown after WHERE.
The SQL keyword BETWEEN is used:
A. for ranges.
B. to limit the columns displayed.
C. as a wildcard.
D. None of the above is correct.
Using the SQL GROUP BY phrase with a SELECT statement can help detect which of the following problems?
Most of the time, modification anomalies are serious enough that tables should be normalized into:
A. 1NF.
B. 2NF.
C. 3NF.
D. BCNF.
If a table has been normalized so that all determinants are candidate keys, then that table is in:
A. 1NF.
B. 2NF.
C. 3NF.
D. BCNF.
In a 1:N relationship, the foreign key is placed in:
A unique, DBMS-supplied identifier used as the primary key of a relation is called a(n):
A. primary key.
B. foreign key.
C. composite key.
D. surrogate key.
After a table has been created, its structure can be modified using the SQL command:
A. Data source
B. Driver
C. Driver manager
D. DBMS
[A]. One
[B]. Two
[C]. Three
[D]. Four
Which JDBC driver Type(s) can be used in either applet or servlet code?
A. UNIQUE
B. SEQUENCE
C. AUTO_INCREMENT
D. None of the above -- Surrogate keys are not implemented in MySQL.
Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are
running on the same machine?
A. Type 1 only
B. Type 2 only
C. Both Type 3 and Type 4
D. All of Type 1, Type 2, Type 3 and Type 4
What is invoked via HTTP on the Web server computer when it responds to requests from a user's Web
browser?
A. A Java application
B. A Java applet
C. A Java servlet
D. None of the above is correct.
The entity integrity rule states that:
If no multivalued attributes exist and no partial dependencies exist in a relation, then the relation is in what
normal form?
A. Equi-join
B. Natural join
C. Outer join
D. All of the above.
What type of join is needed when you wish to return rows that do have matching values?
A. Equi-join
B. Natural join
C. Outer join
D. All of the above.
A. Relationship
B. Attribute
C. Entity
D. Cardinality
A. Aggregation
B. Encapsulation
C. Inheritance
D. All of the above.