Telegram
Telegram
Q1. For a weak en ty set to be meaningful, it must be associated with another en ty set in combina on
with some of their a ribute values, is called as:
a)Neighbour Set
b)Strong En ty Set
c)Owner En ty Set
d)Weak Set
Q3. What is the minimum number of tables needed for the above ER diagram?
a) 3
b) 4
c) 5
d) 6
Q4. Consider the following Relationship Entity Diagram (ERD) After Minimizing this ER diagram we will
convert it into relational model. How many attributes will be created in ‘Includes’ Table?
a) 1
b) 2
c) 3
d) 4
Q6. R is rela onship with 1: 1 cardinality, 30% Null Values at E1 end, 70% Null Values at E2 end which is
the best possible design?
a). E1 and E2 kept separate with foreign key at E1 end
b). E1 and E2 kept separate with foreign key at E2 end
c). E1 and E2 kept separate with foreign key at E1 as well as E2
d). E1 and E2 merges into a single table with no foreign key
Q7. The data base administrator(DBA) is, in effect, the coordinator between the and the
a) DBMS, data base
b) applica on program, data base
c) data base, users
d) applica on programs, users
Q9. Which of the following architecture is mostly used for Local Machine?
a) 2 er architecture
b) 1 er architecture
c) 3 er architecture
d) Applica on architecture
Q10. In an En ty-Rela onship (ER) model, suppose R is a many-to-one rela onship from en ty set E1 to
en ty set E2. Assume that E1 and E2 par cipate totally in R and that the cardinality of E1 is greater that
the cardinality of E2. Which one of the following is true about R?
a)Every en ty in E2 is associated with at most one en ty in E1.
b)Some en ty in E1 is associated with more than one en ty in E2.
c)Every en ty in E2 is associated with exactly one en ty in E1.
d)Every en ty in E1 is associated with exactly one en ty in E2.
Telegram- @Mockwarriors_itexam
www.MOCKWARRIORS.com
Mockwarriors
Topic Test – Normalization (DBMS)
Specially Design For RPSC Programmer Exam
Time – 15 Minutes. Telegram- @Mockwarriors_itexam www.MOCKWARRIORS.com
Q2. Given a relation 'S',all of its candidate keys are singletons.If S is in 3NF then S is:
a) 1NF
b) 2NF
c) 3NF
d) BCNF
Q4. Which of the following normal form(s) is not based on the functional dependencies among the
attributes of a relation?
a) 1NF
b) 2NF
c) 3NF
d) 4NF
Q6. From the following instance of a relation schema R(A, B, C), we can conclude that:
A B C
1 1 1
1 1 0
2 3 2
2 3 2
a) A functionally determines B and B functionally determines C
b) A functionally determines B and B does not functionally determine C
c) A does not functionally determine C
d) All of the above are correct
Q7. Consider the relation given below and find the maximum normal form applicable to them
1. R(A, B) with productions {A→B}
2. R(A, B) with productions {B→A}
3. R(A, B) with productions {A→B, B→A}
4. R(A, B, C) with productions {A→B, B→A, AB→C}
a) 1, 2 and 3 are in 3NF and 4 is in BCNF
b) 1 and 2 are in BCNF and 3 and 4 are in 3NF
c) All are in 3NF
d) All are in BCNF
Q8. For a database relation A(P, Q, R, S) where the domains of P, Q, R, and S include only atomic values,
and only the following functional dependencies and those that can be inferred from them hold:
P→R and Q→S The relation is in.
a) First normal form but not in second normal form
b) Second normal form but not in third normal form
c) Third normal form
d) BCNF
Q10. Given the following FD set on R(A, B, C) F = {A→BC, B→C, A→B, AB→C}
The canonical cover of this set is:
a) A→B and B→C
b) A→BC and B→C
c) A→BC and A→B
d) B→BC and AB→C
Q1. Let R(ABCDEF) be a relational schema and F={AB→CD, ABC→E,C→A}. The number of candidate keys
are:
a) 16
b) 18
c) 12
d) 22
Q2. Consider a relation R with the schema R (P, Q, R, S, T, U) with a set of functional dependencies FD as
follows:
{PQ→R,R→S,S→PQ} Find number of SuperKey and Number of Candidate Key ?
a) 12, 3
b) 13, 3
c) 16, 3
d) 20, 2
Q3. What is the maximum number of super keys for the relation R1(A, B, C, D, E) if each attribute of
relation is candidate key ?
a) 32
b) 31
c) 16
d) 15
Q4. What is the Range of Superkey if Maximum n number of candiate key is present ?
a) 1 < | SuperKey | < n
b) 1 ≤ | SuperKey | ≤ n
c) 1 < | SuperKey | < n-1
d) 1 ≤ | SuperKey | ≤ n-1
Q5. Given the relational schema R(A, B, C, D, E) with the following functional dependencies. A→B, BD→E,
C→AD, E→C Find which of the following is not a candidate key?
a) E
b) BD
c) C
d) A
Q6. In the relation R(W, X, Y, Z) with functional dependencies F = {WX → YZ, Y → W, Z→ X).
How many number of candidate keys are there for the above relation?
a)2 b)3 c)4 d) None
Q7. Which of the following Statement is Correct:
a) An alternate key is a candidate key that is not a primary key
b) An alternate key is a primary key that is not a candidate key
c) An alternate key is a candidate key that is also a primary key
d) None of the above
Q.9 Given the relational schema R(A,B,C,D) with the following candidate key {A, AB, ABC},
How many Possible Super Key ?
a) 8
b) 10
c) 12
d) 16
Q.10 Consider the following statements M1 and M2 about the relational data model:
M1: A relation scheme can have at most one foreign key.
M2: A foreign key in a relation scheme R cannot be used to refer to tuples of R.
Which one of the following choices is correct?
a) Both M1 and M2 are false.
b) Both M1 and M2 are true.
c) M1 is true and M2 is false.
d) M1 is false and M2 is true.
Q1 C
Q2 D
Q3 B
Q4 C
Q5 -
Q6 A
Q7 C
Q8 D
Q9 B
Q10 D
Q1 C (12),
Option
Corrected
Typing
Error
Q2 B
Q3 B
Q4 B
Q5 D
Q6 C
Q7 A
Q8 D
Q9 A
Q10 A
Q1 D
Q2 D
Q3 B
Q4 D
Q5 A
Q6 B,C
Q7 D
Q8 A
Q9 B
Q10 A
Q4. which is the first line (if any) that causes a compila on error ?
public sta c void main(String args[])
{
char c;
int i;
c = 'A'; // 1
i = c; //2
c = i + 1; //3
c++; //
}
a) The line labeled 1.
b) The line labeled 2.
c) The line labeled 3.
d) The line labeled 4.
Q1 A
Q2 C
Q3 A
Q4 C
Q5 B
Q6 D
Q7 A
Q8 D
Q9 B
Q10 C
Q1 B
Q2 C
Q3 A
Q4 A
Q5 D
Q6 A
Q7 A
Q8 B
Q9 D
Q10 B
Q5. Which of the following declares an abstract method in an abstract Java class?
a) public abstract method();
b) public abstract void method();
c) public void method() {}
d) public void abstract Method();
Q1 C
Q2 A
Q3 C
Q4 C
Q5 B
Q6 B
Q7 C
Q8 C
Q9 C
Q10 A
Telegram- @Mockwarriors_itexam
Q8. What is the output of the following code:
class MockWarriors{
{
System.out.println("Finally Joined Our Community");
}
public sta c void main(String args[]) {
}
}
a) Finally Joined Our Community
b) no output
c) Run Time Error
d) Compila on Error
a) Only 2
b) Both 1 and 2
c) Both 1, 2 and 4
d) Only 3
Q1 B
Q2 C
Q3 A
Q4 A
Q5 B
Q6 D
Q7 B
Q8 B
Q9 A
Q10 C
Telegram- @Mockwarriors_itexam
www.MOCKWARRIORS.com