Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: ER Model- 2 - Computer Science Engineering (CSE) MCQ

Test: ER Model- 2 - Computer Science Engineering (CSE) MCQ


Test Description

20 Questions MCQ Test - Test: ER Model- 2

Test: ER Model- 2 for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: ER Model- 2 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: ER Model- 2 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: ER Model- 2 below.
Solutions of Test: ER Model- 2 questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: ER Model- 2 solutions in Hindi for Computer Science Engineering (CSE) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: ER Model- 2 | 20 questions in 60 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: ER Model- 2 - Question 1

In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate 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?

Detailed Solution for Test: ER Model- 2 - Question 1

Since given relation is many to one

33

Therefore, no entity in E1 can be related to more than one entity in E2 and an entity in E2 can be related to more than one entity in E1. Only option (A) is correct.

Test: ER Model- 2 - Question 2

In RDBMS, different classes of relations are created using __________ technique to prevent modification anomalies.

Detailed Solution for Test: ER Model- 2 - Question 2

Functional dependency is a constraint that describes the relationship between attributes in a relation. Data integrity refers to the accuracy and consistency of data stored in a database, data warehouse, data mart or other construct. Referential integrity is a relational database concept, which states that table relationships must always be consistent. Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly & deletion anomaly. 1NF, 2NF, 3NF and BCNF are types of normal forms. So, option (D) is correct.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: ER Model- 2 - Question 3

Consider a relation R (A, B, C, D, E, F, G, H), where each attribute is atomic, and following functional dependencies exist.

CH → G
A → BC
B → CFH
E → A
F → EG
The relation R is __________ .

Detailed Solution for Test: ER Model- 2 - Question 3

If we find closure of A: A+ → All attribute except D. Similarly for other keys we can find closure, but D can't be derived from any key and it must be added to all keys to be derived from. That's why this relation is in 1NF, since there is partial dependency so, this relation is not in 2NF. So, option (A) is correct.

Test: ER Model- 2 - Question 4

Integrity constraints ensure that changes made to the database by authorized users do not result into loss of data consistency. Which of the following statement(s) is (are) true w.r.t. the examples of integrity constraints ? (A) An instructor Id. No. cannot be null, provided Intructor Id No. being primary key. (B) No two citizens have same Adhar-Id. (C) Budget of a company must be zero.

Detailed Solution for Test: ER Model- 2 - Question 4

(A) An instructor Id. No. cannot be null, provided Instructor Id No. being primary key. Correct by Codd's rule (B) No two citizens have same Adhar-Id. Correct because Adhar is identification for citizens so it must be unique (C) Budget of a company must be zero. We cant say or it is not necessarily true So, option (C) is correct.

Test: ER Model- 2 - Question 5

Which one is correct w.r.t. RDBMS ?

Detailed Solution for Test: ER Model- 2 - Question 5

primary key ⊆ candidate key ⊆ super key

Test: ER Model- 2 - Question 6

Given the relations employee (name, salary, dept-no), and department (dept-no, dept-name,address) Which of the following queries cannot be expressed using the basic relational algebra operations (σ, π, x, -, ∪, p)

Detailed Solution for Test: ER Model- 2 - Question 6

The sum of all employees' salaries can not be found using these above operations as to calculate sum we need aggregate functions and operators. So, option (C) is correct.

Test: ER Model- 2 - Question 7

Consider the join of a relation R , with a relation S . If R has m number of tuples and S has n number of tuples then the maximum and minimum sizes of the join respectively are:

Detailed Solution for Test: ER Model- 2 - Question 7

Consider the folloewing examples: Case 1: Maximum tuples- When the common attribute contain identical values
Relation R          Relation S        R ⋈ S
a       b                a       d             a     b    d
1       2                1       10           1     2    10   
1       3                1       11           1     2    11
1       4                                        1     3    10
                                                   1     3    11
                                                   1     4    10
                                                   1     4    11
Case 2 : Minimum Tuples- When Both the relations have a common attribute but no tuple in both relations match.
Relation R          Relation S        R ⋈ S
a       b                a       d             a     b    d
1       2                2       10           No tuple  
1       3                3       11           
1       4  
So, option (B) is correct.

Test: ER Model- 2 - Question 8

Relational database schema normalization is NOT for:

Detailed Solution for Test: ER Model- 2 - Question 8
  • Relational database schema normalization is NOT for reducing the number of joins required to satisfy a query.
  • Relational database schema normalization is for eliminating uncontrolled redundancy of data stored in the database.
  • Relational database schema normalization is for eliminating number of anomalies that could otherwise occur with inserts and deletes.
  • Relational database schema normalization is for ensuring that functional dependencies are enforced.

So, option (A) is correct.

Test: ER Model- 2 - Question 9

Consider the following Relationship Entity Diagram(ERD)

Which of the following possible relations will not hold if the above ERD is mapped into a relation model?

Detailed Solution for Test: ER Model- 2 - Question 9

If we convert an ER diagram into relational model then we can create table for each entity. We get two tables One for Entity Person - Person(NID,Name) One for Entity Exam - Exam(ExamID,ExamName) Now for relationship Entity Qualification, we can not add QualifiedDate in any of the two tables formed so we need to create a new table using Primary Key from both Entity Person and Entity Exam. We obtain Qualification(NID, ExamID, QualifiedDate) Hence Option (C) does not make any sense.

Test: ER Model- 2 - Question 10

Consider the following statements regarding relational database model: (a) NULL values can be used to opt a tuple out of enforcement of a foreign key. (b) Suppose that table T has only one candidate key. If Q is in 3NF, then it is also in BCNF. (c) The difference between the project operator (Π) in relational algebra and the SELECT keyword in SQL is that if the resulting table/set has more than one occurrences of the same tuple, then Π will return only one of them, while SQL SELECT will return all. One can determine that:

Detailed Solution for Test: ER Model- 2 - Question 10

IN relational database model: (a) NULL values can be used to opt a tuple out of enforcement of a foreign key.Correct (b) Suppose that table T has only one candidate key. If Q is in 3NF, then it is also in BCNF.Correct (c) The difference between the project operator (Π) in relational algebra and the SELECT keyword in SQL is that if the resulting table/set has more than one occurrences of the same tuple, then Π will return only one of them, while SQL SELECT will return all.Correct So, option (D) is correct.

Test: ER Model- 2 - Question 11

An aggregation association is drawn using which symbol?

Detailed Solution for Test: ER Model- 2 - Question 11

Association is a relationship where all objects have their own lifecycle and there is no owner. Aggregation is a specialised form of Association where all objects have their own lifecycle, but there is ownership and child objects can not belong to another parent object. Composition is again specialised form of Aggregation and we can call this as a “death” relationship. It is a strong type of Aggregation. Child object does not have its lifecycle and if parent object is deleted, all child objects will also be deleted.

141

So, option (B) is correct. See: Association, Composition and Aggregation

Test: ER Model- 2 - Question 12

Which of the following statement(s) is/are FALSE in the context of Relational DBMS ? I. Views in a database system are important because they help with access control by allowing users to see only a particular subset of the data in the database. II. E-R diagrams are useful to logically model concepts. III. An update anomaly is when it is not possible to store information unless some other, unrelated information is stored as well. IV. SQL is a procedural language.

Detailed Solution for Test: ER Model- 2 - Question 12
  • Views in a database system are important because they help with access control by allowing users to see only a particular subset of the data in the database.Correct
  • E-R diagrams are useful to logically model concepts.Inorrect
  • An update anomaly is when it is not possible to store information unless some other, unrelated information is stored as well.Inorrect
  • SQL is a procedural language.Inorrect

So, option (D) is correct.

Test: ER Model- 2 - Question 13

Every time the attribute A appears, it is matched with the same value of attribute B but not the same value of attribute C. Which of the following is true?

Detailed Solution for Test: ER Model- 2 - Question 13

Functional dependency is a relationship that exists when one attribute uniquely determines another attribute, therefore A→B. Multivalued dependency occurs when there are more than one independent multivalued attributes in a table. If A→ C is a dependency, it means for A, attribute C has more than one value. So, option (B) is correct.

Test: ER Model- 2 - Question 14

Consider the following database table having A, B, C and D as its four attributes and four possible candidate keys (I, II, III and IV) for this table :

20

I : {B} II : {B, C} III : {A, D} IV : {C, D} If different symbols stand for different values in the table (e.g., d1 is definitely not equal to d2), then which of the above could not be the candidate key for the database table ?

Detailed Solution for Test: ER Model- 2 - Question 14

Upon carefully observing the tuples in the relation, we can see that the functional dependency B →{A, C, D} holds. Hence {B} is one candidate key. A,D → {A, B, C, D} ; C,D → {A, B, C, D} and B,C→ {A, B, C, D} also holds true. Therefore, these all can be candidate keys. But in B,C → {A, B, C, D} , there exist a partial dependency of B→{A, B, C, D}. Hence {B, C} cannot be a candidate key. So option (C) is correct.

Test: ER Model- 2 - Question 15

Drop Table cannot be used to drop a Table referenced by __________ constraint.

(a)Primary key

(b)Sub key

(c)Super key

(d)Foreign key

Detailed Solution for Test: ER Model- 2 - Question 15

Drop Table cannot be used to drop a Table referenced by foreign key constraint. For more information on keys Refer:DBMS | Keys in Relational Model (Candidate, Super, Primary, Alternate and Foreign) and for information on sql operation Refer:SQL | ALTER (ADD, DROP, MODIFY) Option (C) is correct

Test: ER Model- 2 - Question 16

Which of the following statements is FALSE about weak entity set?

Detailed Solution for Test: ER Model- 2 - Question 16
  • Weak entities can be deleted automatically when their strong entity is deleted. Correct
  • Weak entity set avoids the data duplication and consequent possible inconsistencies caused by duplicating the key of the strong entity. Correct
  • A weak entity set has no primary keys unless attributes of the strong entity set on which it depends are includedCorrect
  • Tuples in a weak entity set are not partitioned according to their relationship with tuples in a strong entity set.This is Incorrect, because tuples in a weak entity set are partitioned according to their relationship with tuples in a strong entity set.

So, option (D) is correct.

Test: ER Model- 2 - Question 17

The 'command' used to change contents of one database using the contents of another database by linking them on a common key field?

Detailed Solution for Test: ER Model- 2 - Question 17

Join is used to change content of one table using the content of another table. Join actually link two table on a common attribute field and join to binary operation that allow to combine two table. Option (B) is correct.

Test: ER Model- 2 - Question 18

In functional dependency Armstrong inference rules refers to

Detailed Solution for Test: ER Model- 2 - Question 18

Armstrong inference rules refer to a set of inference rules used to infer all the functional dependencies on a relational database. It consists of the following axioms:
Axiom of Reflexivity:
This axiom states: if Y is a subset of X, then X determines Y
Axiom of Augmentation:
The axiom of augmentation, also known as a partial dependency,
states if X determines Y, then XZ determines YZ, for any Z
Axiom of Transitivity:
The axiom of transitivity says if X determines Y, and Y 
determines Z, then X must also determine Z.

Test: ER Model- 2 - Question 19

The join operation can be defined as

Detailed Solution for Test: ER Model- 2 - Question 19

A SQL Join statement is used to combine data or rows from two or more tables based on the selection of common field between them. Different types of Joins are: INNER JOIN LEFT JOIN RIGHT JOIN FULL JOIN So, option (A) is correct.

Test: ER Model- 2 - Question 20

A view of database that appears to an application program is known as

Detailed Solution for Test: ER Model- 2 - Question 20

A subschema is a subset of the schema and inherits the same property that a schema has. The plan for a view is often called subschema. Subschema refers to an application programmer's view of the data item types and record types, which he or she uses. Option (B) is correct.

Information about Test: ER Model- 2 Page
In this test you can find the Exam questions for Test: ER Model- 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: ER Model- 2, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)