Untitled
Untitled
Untitled
Answer C
2 In the relational modes, cardinality is termed as:
(A) Number of tuples. (B) Number of attributes.
(C) Number of tables. (D) Number of constraints.
Ans: A
8.
In which of the following is a single-entity instance of one type related to many entity
instances of another type?
A. One-to-One Relationship B. One-to-Many Relationship C. Many-to-
Many Relationship
D. Composite Relationship
Answer: B
9.
In Entiry Relationship Diagram rectangles represents
A. Entity Set B. Attributes C. Database D. Tables
Answer: A
10. An entity set that does not have sufficient attributes to form a primary key is a
(A) strong entity set. (B) weak entity set. (C) simple entity set. (D) primary entity set.
Ans: B
11. E-R model uses this symbol to represent weak entity set ?
(A) Dotted rectangle. (B) Diamond (C) Doubly outlined rectangle (D) None of these
Ans: C
12.The users who use easy-to-use menu are called
(A) Sophisticated end users. (B) Naïve users. (C) Stand-alone users. (D) Casual end
users.
Ans: B
13.Which database level is closest to the users?
(A) External (B) Internal (C) Physical (D) Conceptual
Ans: A
14. Data independence means
D. both B and C
Ans D
15.
The collection of information stored in a database at a particular moment is called
as ......
Ans A
18 In an ER model, ……………. is described in the database by storing its data.
Ans A
19
In a relational schema, each tuple is divided into fields called
Ans B
21 ………………… is preferred method for enforcing data integrity
1.
SQL stands for ________ .
(A) Structured Query Language (B) Sequential Query Language (C) Structured
Question Language (D) Sequential Question Language
Answer A
2. A relational database developer refers to a record as
(A) a criteria. (B) a relation (C) a tuple (D) an attribute.
Ans: C
3. Count function in SQL returns the number of
(A) values. (B) distinct values. (C) groups. (D) columns.
Ans: A
4.The statement in SQL which allows to change the definition of a table is
(A) Alter. (B) Update. (C) Create. (D) select.
Ans: A
5. Relational Algebra is
(A) Data Definition Language . (B) Meta Language (C) Procedural query Language (D)
None of the above
Ans: C
6.Key to represent relationship between two tables is called
(A) Primary key (B) Secondary Key (C) Foreign Key (D) None of these
Ans: C
7.Which of the following operation is used if we are interested in only certain columns of
a
table?
(A) PROJECTION (B) SELECTION (C) UNION (D) JOIN
Ans: A
8. The full form of DDL is
(A) Dynamic Data Language (B) Detailed Data Language (C) Data Definition Language
(D) Data Derivation Language
Ans: C
9.Which of the following is a legal expression in SQL?
(A) SELECT NULL FROM EMPLOYEE; (B) SELECT NAME FROM EMPLOYEE; (C)
SELECT NAME FROM EMPLOYEE WHERE SALARY = NULL; (D) None of the above
Ans: B
10.A set of possible data values for any attribute is called
(A) attribute. (B) degree. (C) tuple. (D) domain.
Ans: D
11.NULL is
(A) the same as 0 for integer (B) the same as blank for character (C) the same as 0 for
integer and blank for character (D) not a value
Ans: D
12.An instance of relational schema R (A, B, C) has distinct values of A including NULL
values. Which one of the following is true?
(A) A is a candidate key (B) A is not a candidate key (C) A is a primary Key (D) Both (A)
and (C)
Ans: B
13.Which one of the following is not true for a view:
(A) View is derived from other tables. (B) View is a virtual table. (C) A view definition is
permanently stored as part of the database. (D) View never contains derived columns.
Ans: C
14.To delete a particular column in a relation the command used is:
(A) UPDATE (B) DROP (C) ALTER (D) DELETE
Ans: C
15._________ is a virtual table that draws its data from the result of an SQL
SELECT statement.
(A) View (B) Synonym (C) Sequence (D) Transaction
Ans: A
16.
In SQL, how to select all the records from a table named as "Employee" where the
value of the column "Name" starts with "s"?
a) SELECT * FROM Employee WHERE Name = ‘s%' b) SELECT * FROM
Employee WHERE Name LIKE s% c) SELECT * FROM Employee WHERE Name
LIKE 's%' d) SELECT * FROM Employee WHERE Name='s'
Anser C
17. Which of the following SQL command can be used to modify existing data in a
database table?
18. To change column value in a table the ......... command can be used.
Ans D
answer D
20. Which of the following SQL command can be used to modify existing data in a
database table?
Anser B
21) To change column value in a table the ......... command can be used.
Ans D
answer D
Ans c
24 A ......... is used to define overall design of the database
Chapter 03:
ans C
5. A relation is considered a:
ans C
6 In the relational model, relationships between relations or tables are created by using:
ans D
ans D
A. The cells of the table must contain a single value. B. All of the entries in any
column must be of the same kind. C. The columns must be ordered. D. No two rows
in a table may be identical.
ans c
9 A key:
A. must always be composed of two or more columns. B.can only be one column.
C. identifies a row. D. identifies a column.
ans c
10 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.
ans A
ans c
ans c
13 If there is more than one key for relation schema in DBMS then each key in relation
schema is classified as
ans c
15 If the attribute of relation schema R is not a member of some candidate key then
this type of attribute is classified as
16 Considering the functional dependency, the one in which removal of some attributes
does not affect dependency is called
a. full functional dependency b.partial dependency c. prime functional dependency d.
transitive dependency
ans b
ans b
a.first normal form b.second normal form c.fourth normal form d.third normal form
ans d
19 Considering the functional dependency, the one in which removal from some
attributes must affect dependency is called
20 The normal form which only includes indivisible values or single atomic values is
classified as
a. third normal form b. first normal form c. second normal form d. fourth normal form
ans b
21 Architecture of the database can be viewed as
B) SELECT sname, coursename FROM studentinfo WHERE age>50 and age <80;
B) SELECT sname from tblstaff WHERE salary BETWEEN 15000 AND 25000;
C) Both A and B
Ans A
27
The Redundancy in a table in order to improve performance is called
a)Demoralization
b)Normalization
c)Boyce-Codd Normal Form
d)None of the above
ans A
28
A table has fields F1, F2 , F3 , F4, F5 with the following functional dependencies
Fi —> F3,
F2 —> F4
(FI,F2) —> F5
In terms of normalization, this table is in
A.
1 NF
B.
2 NF
C.
3 NF
D.
None of these
ans a