CCW DBMS
CCW DBMS
Answer: c
Explanation: The data is stored in a table format intended to manage
the storage of data and
manipulate stored data to generate information.
6. Which of the following is not a type of database?
a) Hierarchical
b) Network
c) Distributed
d) Decentralized
Answer: d
Explanation: Different types are:
1) Centralized
2) Distributed
3) Relational
4) NoSQL
5) Cloud
6) Object-oriented
7) Hierarchical
8) Network
7. Which of the following is not an example of DBMS?
a) MySQL
b) Microsoft Acess
c) IBM DB2
d) Google
Answer: d
Explanation: MySQL, Microsoft Access, IBM DB2 are database
management systems while
Google is a search engine. MySQL is a Linux-based database
management system, Microsoft
Access is a tool that is a part of Microsoft Office used to store data,
IBM DB2 is a database
management system developed by IBM. Google’s Bigtable is the
database that runs Google’s
Internet search, Google Maps, YouTube, Gmail, and other products.
Answer: C
Explanation: The term"DFD" stands for the Data Flow Diagram, and
to represent the flow of the data( or information), the data flow
diagram is used. The data flow diagram also helps in understanding
how the data is managed in the application. Therefore the correct
answer is C.
a. Queries
b. Domains
c. Relations
Answer: B
● ={H}
● K^+ = \{K\}
●K
●+
● ={K}
● L^+ = \{L\}
●L
●+
● ={L}
● EF^+ = \{E, F, G, I, J\}
● EF
●+
● ={E,F,G,I,J} (using {E, F} → {G} and {F} → {I, J})
● EFH^+ = \{E, F, G, H, I, J, K, L\}
● EFH
●+
● ={E,F,G,H,I,J,K,L} (using {E, H} → {K, L})
● EFHKL^+ = \{E, F, G, H, I, J, K, L, M, N\}
● EFHKL ● +
● ={E,F,G,H,I,J,K,L,M,N} (using {K} → {M} and {L} → {N})
● The closure contains all attributes. The smallest superkey is {E, F, H,
K, L}, so it is the key for the relation. Therefore, the correct option is:
(c) {E, F, H, K, L}
82. Consider the join of a relation R with a relation S. If R has m
tuples and S has n tuples then the maximum and minimum sizes of
the join respectively are
a) m +n and 0
b) mn and 0
c) m+n and|m-n
d) mn and m + n
The correct option is: d) mn and m + n
83. . Suppose that we have an ordered file with r30,000 records
stored on a disk with block size B = 1024 bytes. File records are of
fixed size and are unspanned, with record length R = 100 bytes. The
blocking factor and the number of blocks needed for the file are
a) 10 and 3000
(b) 3000 and 10
c) 10 and 300
(d) 8 and 3000
ans) 3000 and 10
84. What does the following query do? UPDATE student SET marks
marks* 1.10;
a) It increases the marks of all the students by 10%
(b) It decreases the marks of all the students by 90%
c) It increases the marks of all the students by 110%
(d) It is syntactically wrong
The correct option is: (c)
It increases the marks of all the students by 110% The query is
updating the 'marks' column in the 'student' table by multiplying
each existing value by 1.10, which is equivalent to increasing the
marks by 10%.
85. Amongst the ACID properties of a transaction, the Durability'
property requires, that the changes made to the database by a
successful transaction persist
a) Except in case of an operating system crash
(b) Except in case of a disk crash
c) Except in case of a power failure
(d) Always, even if there is a failure of any kind
ans) d)
Always, even if there is a failure of any kind. emphasizes that
durability is not conditional on the type of failure. Whether it's an
operating system crash, a disk crash, a power failure, or any other
unexpected event, the database system must ensure that the
committed changes are durable and are not lost
86. Which of the following establishes a top-to-bottom relationship
among the items?
a) Relational schema
b) Network schema
c) Hierarchical schema
d) All of the mentioned
Answer: c
Explanation: A data model in which the data is structured into a tree-
like structure is known as a hierarchical model. The structure allows
information to be represented using parent-child Relationships
87. The traditional storage of data organized by the customer, stored
in separate folders in filing cabinets is an example of
______________ type of ‘database’ management system.
a) Object-oriented database management system
b) Relational database management system
c) Network database management system
d) Hierarchical database management system
Answer: d
Explanation: In an object-oriented database management system,
the data is stored in the form of objects. In a relational DBMS, the
data is stored in the form of tables. Hierarchy is obtained by Parent-
Child Relationship. Parent-Child Relationship Type is basically a 1:N
relationship.
88. .Evaluate the statements issued by the DBA in the given sequence
if OE and SCOTT are the
users and the ORDERS table is owned by OE.
CREATE ROLE r1;
GRANT SELECT, INSERT ON oe. orders TO r1;
GRANT r1 TO scott;
GRANT SELECT ON oe. orders TO scott;
REVOKE SELECT ON oe.orders FROM scott;
What would be the outcome after executing the statements?
a) The REVOKE statement would give an error because the SELECT
privilege has been granted to the role R1
b) The REVOKE statement would remove the SELECT privilege from
SCOTT as well as from the role R1
c) SCOTT would be able to query the OE.ORDERS table
d) SCOTT would not be able to query the OE.ORDERS table
Answer: c
Explanation: To perform operations on objects, the REVOKE
statement is used to revoke rights rom a single user or role, or from
all users.
89. Consider the following relation instance, where “A1” is primary
Key.
A1 A2 A3 A4
1 1 1 Null
5251
9 5 13 5
13 13 9 15
Which one of the following can be a foreign key that refers to the
same relation?
(A) A2
(B) A3
(C) A4
(D) ALL
Answer B
Solution:From the instance, attribute A3w seems to uniquely identify
each row in the relation. No two rows have the same combination of
values in A3.
90. Let E1, E2 and E3 be three entities in an E/R diagram with simple
single-valued attributes.R1 and R2 are two relationships between E1
and E2, where R1 is one-to-many, R2 is many-to-many. R3 is another
relationship between E2 and E3 which is many-to-many. R1, R2
andR3 do not have any attributes of their own. What is the minimum
number of tables requiredto represent this situation in the relational
model?
(A) 3
(B) 4
(C) 5
(D) 6
Answer C
Solution :total number of tables required is 3 (for entities) + 2 (for
relationships) =5
91. It is given that: “Every student need to register one course and
each course registered bymany students”, what is the cardinality of
the relation say “Register” from the “Student”entity to the “Course”
entity in the ER diagram to implement the given requirement.
(A) M:1 relationship
(B) M:N relationship
(C) 1:1 relationship
(D) option (B) or(C)
Answer A
Solution: the cardinality of the relationship from the "Student" entity
to the "Course"entity is such that each student can be associated
with multiple courses (M), but each course is associated with only
one student (1). This results in an M:1 relationship.
92. Consider the relation branch( branch_name, assets, branch_city)
SELECT DISTINCT T.branch_name FROM branch T, branch S WHERE
T.assets >
L.assets AND S.branch_city = "TVM" .
The given query finds the names of
(A) All branches that have greater assets than all branches located in
TVM.
(B) All branches that have greater assets than some branch located in
TVM.
(C) The branch that has the greatest asset in TVM.
(D) Any branch that has greater asset than any branch located in
TVM.
Answer B
Solution: The query compares each branch's assets with at least one
branch located in TVM. If a branch's assets are greater than those of
any branch in TVM, it will be selected.
93. . What does the query do
UPDATE STUDENT
SET marks=marks*1.10
a)It increases the marks of all students by 10%
b) It increases the marks of all students by 110%
c) It decreases the marks of all students by 90%
d)It is syntatically wrong.
Answer:A
94. .If every non prime attribute is fully functionally dependent on
primary key, then the
relation will be in
a)BCNF
b)1NF
c)2NF
d)3NF
Answer:2NF
95. Procedural language among the following is __________
a) Domain relational calculus
b) Tuple relational calculus
c) Relational algebra
d) Query language
View Answer
Answer: c
Explanation: Non-Procedural Languages are Domain relational
calculus and Tuple relational calculus. Relational algebra is a
procedural language that takes input in the form of relation and
output generated is also a relation.
97. After groups have been established, SQL applies predicates in the
___________ clause, allowing aggregate functions to be used.
a) Where
b) Having
c) Group by
d) With
View Answer
Answer: b
Explanation: In SQL, after grouping data using the GROUP BY clause,
the HAVING clause is used to filter the groups based on specific
conditions. It allows the use of aggregate functions and selects only
the groups that satisfy the given criteria.
a. Commit
b. Rollback
c. Savepoint
Answer: A
b. It is a non-procedural language
c. It is a high-level language
Answer: B
Explanation: In database management systems, relation calculus is a
type of non-procedural query language that describes what data
needs to be retrieved. However, it does not explain how to retrieve
the data.
a. Drop
b. Update
c. Alter
d. Set
Answer: C