DBMS Edit
DBMS Edit
24. For designing a normal RDBMS which of the following normal form is considered
adequate?
a) 4NF
b) 3NF
c) 2NF
d) 5NF
View Answer
Answer: b
25>. Which is a unary operation:
a) Selection operation
b) Primitive operation
c) Projection operation
d) Generalized selection
View Answer
Answer: d
26>. Which is a join condition contains an equality operator:
a) Equijoins
b) Cartesian
c) Natural
d) Left
View Answer
Answer: a
27>. Which is a join condition contains an equality operator:
a) Equijoins
b) Cartesian
c) Natural
d) Left
View Answer
Answer: a
28>. In precedence of set operators, the expression is evaluated from
a) Left to left
b) Left to right
c) Right to left
d) From user specification
View Answer
Answer: b
29>. The assignment operator is denoted by
a) ->
b) <-
c) =
d) ==
View Answer
Answer: b
30> In the normal form, a composite attribute is converted to individual
attributes.
a) First
b) Second
c) Third
d) Fourth
View Answer
Answer: a
31>. A table on the many side of a one to many or many to many relationship must:
a) Be in Second Normal Form (2NF)
b) Be in Third Normal Form (3NF)
c) Have a single attribute key
d) Have a composite key
View Answer
Answer: d
32>. Tables in second normal form (2NF):
a) Eliminate all hidden dependencies
b) Eliminate the possibility of a insertion anomalies
c) Have a composite key
d) Have all non key fields depend on the whole primary key
View Answer
Answer: a
33>. Functional Dependencies are the types of constraints that are based on
a) Key
b) Key revisited
c) Superset key
d) None of the mentioned
View Answer
Answer: a
34>. Which forms simplifies and ensures that there are minimal data aggregates and
repetitive groups:
a) 1NF
b) 2NF
c) 3NF
d) All of the mentioned
View Answer
Answer: c
Explanation: The first normal form is used to eliminate the duplicate information.
35>. Which forms has a relation that possesses data about an individual entity:
a) 2NF
b) 3NF
c) 4NF
d) 5NF
View Answer
Answer: c
36>. Which forms are based on the concept of functional dependency:
a) 1NF
b) 2NF
c) 3NF
d) 4NF
View Answer
Answer: c
SHORT QUESTION
1>What is the difference between single valued attribute and multi valued attribute?
Data independence is the ability to change the data storage and organization without
affecting the application programs that use the data to enhance the security of data.
There are two types of data independence – Logical Data Independence and Physical
Data Independence. It provides a different view and helps in achieving data independence
which is used to enhance the security of data. The database systems consist of complicated data
structures and relations
Ans>The design of ER is very logical and hence they are easy to design and
understand. They show database capabilities like how tables, keys and columns are
used to find a solution to the given question. INTEGRATED : The ER Model can be
easily integrated with relational model
5>What is the difference between data definition language DDL and data
manipulation language DML?
Ans>The Data Definition Language, or DDL, is used to specify the architecture and
structure of the database, including the creation of tables and changes to their
characteristics. Data Manipulation Language, or DML, is used to insert, update, and
delete records among other database-related operations
6>What are the integrity constraints used in relational model?
Domain Constraint
Domain integrity constraint contains a certain set of rules or conditions to restrict the kind of
attributes or values a column can hold in the database table.
Entity Integrity Constraint is used to ensure that the primary key cannot be null
Referential Integrity Constraint ensures that there must always exist a valid relationship between
two relational database tables.
Key constraint
Keys are the set of entities that are used to identify an entity within its entity set uniquely.
Ans>Entity Integrity Constraint is used to ensure that the primary key cannot be null.
A primary key is used to identify individual records in a table and if the primary key
has a null value, then we can't identify those records. There can be null values
anywhere in the table except the primary key column.
7>What is ORDER BY and GROUP BY in SQL example?
Ans>A GROUP BY statement sorts data by grouping it based on column(s) you
specify in the query and is used with aggregate functions. An ORDER BY allows you
to organize result sets alphabetically or numerically and in ascending or descending
order
GROUP BY is always placed after the WHERE clause but before the ORDER BY
statement. On the other hand, ORDER BY is always used after the GROUP BY
statement.