computer MCQs
12th • Chapter 04
50 Questions TextBook
1
What does database integrity primarily refer to?
A
The speed of data accessB
The correctness and consistency of dataC
The security from unauthorized accessD
The physical size of the database 2
Which constraint states that no attribute of a primary key should contain nulls?
3
Normalization is the process of converting complex data structures into what kind of structures?
B
Hierarchical structuresD
Simple and stable data structures 4
What is the basis for a relational database system according to the text?
D
Entity-Relationship Diagrams 5
A functional dependency is a particular relationship between two what?
6
In the functional dependency A -> B, what is attribute A called?
7
What problem occurs when two different names are used for the same information or attribute?
D
Mutually Exclusive Data 8
A homonym is created when the same name is used for what?
B
Two different attributesC
The same attribute in two tables 9
Storing the same information in two different ways, like 'Employee_Age' and 'D_O_Birth', is an example of what?
C
Mutually Exclusive Data 10
Attributes with 'yes/no' or 'M/S' values are examples of what type of data issue?
B
Mutually Exclusive Data 11
What is the first step in the normalization process, which removes repeating groups?
D
Removing transitive dependencies 12
A relation is in First Normal Form (1NF) if and only if all underlying domains contain what kind of values?
13
According to the text, what must all entities have, composed of one or more attributes that uniquely identify an occurrence?
14
In Case-1 (DEPARTMENT), having 'Emp_No' and 'Emp_Name' attributes that repeat for a single department is an example of what?
15
What kind of relationship exists when one department has many employees, but each employee belongs to only one department?
16
In the case of Items and Orders, where each item can be in many orders and each order can have many items, what is the relationship type?
17
To solve the M:N relationship issue between ITEM and ORDER, what new entity was created?
18
A relation is in Second Normal Form (2NF) if it is in 1NF and what other condition is met?
A
There are no composite keysB
Every non-key attribute is fully functionally dependent on the primary keyC
There are no functional dependencies 19
What is the primary key in the STUDENT(STUD-ID,CRSNO,CDTE) relation before it is decomposed?
20
When a non-key attribute is functionally dependent on part, but not all, of the primary key, it is called a what?
B
Full functional dependencyC
Partial functional dependency 21
An insertion anomaly in the context of the STUDENT table means we cannot add a new course without a what?
22
If deleting a student's last course record also removes the student's existence from the database, what is this anomaly called?
23
To convert a relation to 2NF, we typically do what to the relation?
D
Create more repeating groups 24
A relation is in Third Normal Form (3NF) if it is in 2NF and no what exists?
C
Transitive dependencies 25
What is a transitive dependency?
A
A dependency between a key and a non-key attributeB
A dependency between two key attributesC
A functional dependency between two or more non-key attributesD
A dependency on a foreign key 26
In the SALES relation, REGION is functionally dependent on SALESMAN, which in turn is dependent on CUSTNO. This is an example of what?
27
The primary key in the SALES(CUSTNO, NAME, SALESMAN, REGION) relation consists of how many attributes?
28
What anomaly occurs in the SALES relation if you cannot add a new salesman until they are assigned a customer?
29
How is the transitive dependency problem in the SALES relation removed?
B
By deleting the REGION attributeC
By decomposing it into two relations: SALE1 and SMAND
By converting it to 1NF 30
In the decomposed SMAN(SALESMAN, REGION) relation, what does the SALESMAN attribute become?
31
In a relational database, a table is also called a what?
32
In 3NF, a non-key attribute must not depend on what?
C
Another non-key attribute 33
Every relation must have a what?
34
What term refers to a constraint on foreign key values?
35
What is removed during the second stage of normalization (moving from 1NF to 2NF)?
C
Transitive Dependencies 36
What is removed during the third stage of normalization (moving from 2NF to 3NF)?
C
Transitive Dependencies 37
Security in a database is concerned with protecting data from what?
C
Unauthorized operations 38
Integrity in a database is concerned with what?
B
The quality of data itself 39
If a foreign key exists, it must either be null or match a value in its home relation's what?
40
The process of reviewing entity/attribute lists to ensure attributes are stored 'where they belong' is known as what?
41
The attribute on the left-hand side of the arrow in a functional dependency is called the what?
42
Which of the following is NOT a problem to be checked before the normalization process begins?
43
In the example Employee(Employee_Age, D_O_Birth), why is having both attributes considered an error?
C
It is mutually exclusiveD
It is redundant information 44
What does 'atomic values' mean in the context of 1NF?
A
The values are very smallB
The values are indivisibleD
The values are text-based 45
A key composed of a combination of one or more attributes is called what?
46
What type of anomaly occurs if changing a single piece of data requires updating multiple rows?
47
The table STUDENT(STUD-ID, NAME, DEPT, MONFEE, CRSNO, CDTE) is not in 2NF because NAME, DEPT, and MONFEE are dependent on what?
C
On both STUD-ID and CRSNO 48
After decomposing the original STUDENT table to achieve 2NF, the attribute CDTE ends up in which new table?
49
In the SALES relation, which attribute is the determinant in the transitive dependency?
50
The final step shown in the normalization process diagram on page 37 is to remove what?
D
Transitive Dependencies