0% found this document useful (0 votes)
30 views5 pages

Corrected Questions

The document consists of a series of multiple-choice questions related to database concepts, including ER diagrams, cardinality, functional dependencies, normal forms, SQL commands, and integrity constraints. Each question presents a scenario or definition and offers several answer options. The content is designed to test knowledge and understanding of database management and query languages.

Uploaded by

gazizatullayev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views5 pages

Corrected Questions

The document consists of a series of multiple-choice questions related to database concepts, including ER diagrams, cardinality, functional dependencies, normal forms, SQL commands, and integrity constraints. Each question presents a scenario or definition and offers several answer options. The content is designed to test knowledge and understanding of database management and query languages.

Uploaded by

gazizatullayev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Questions

1.​ What do double diamonds represent in an ER diagram​


A. They link entity sets to relationship sets​
B. Total participation of an entity in a relationship set​
C. Relationship sets are linked to weak entity sets​
D. None of the mentioned​

2.​ Consider a directed line (→) from the relationship set advisor to both entity
sets, instructor and student. This indicates cardinality​
A. One to many​
B. Many to two​
C. One-to-one​
D. Many to many​
E. Many to one​
F. Two to one​

3.​ If _____, then A→B has trivial functional dependency.​


A. B is a subset of A​
B. A is a subset of B​
C. A is a subset of A'​
D. B is a subset of B'​
E. B is not the subset of A​

4.​ Specifying the order in which key values are stored in an index is useful when
queries referencing the table have ______​
A. ORDER BY clauses​
B. SORT clauses​
C. WHERE clauses​
D. GROUP BY clauses​
E. HAVING clauses​
F. IN clauses​
G. None of the mentioned​

5.​ If each cell contains only one definite value, which normal form is it?​
A. First Normal Form​
B. 3NF​
C. 2NF​
D. Boyce-Codd Normal Form​
E. 1NF​
F. Second Normal Form​
G. BCNF​
G. Third Normal Form​

6.​ If the table has a previous NF and not every key attribute is functionally
dependent on the primary key only – is:​
A. BCNF​
B. First Normal Form​
C. 3NF​
D. 2NF​
E. Boyce-Codd Normal Form​
F. 1NF​
G. Second Normal Form​
H. Third Normal Form​

7.​ What do we call tables that are the result of actions that meet certain
established rules and are in certain normal forms?​
A. Fleshing​
B. Generalizations​
C. Normalization​
D. Denormalization​
E. Decomposition​
F. Redundancy​
G. Composition​

8.​ The 'Having' clause is used with​


A. GROUP BY​
B. ORDER BY​
C. WHERE​
D. IN​
E. BETWEEN​
F. DISTINCT​
9.​ Which of the following statements are true about the COUNT function​
A. The COUNT function counts the number of rows​
B. The COUNT(*) function counts the number of rows with duplicates and
NULL values​
C. The COUNT(DISTINCT) function counts the number of distinct rows​
D. COUNT(*) is equivalent to COUNT(ALL)​
E. None of the above​

10.​ Foreign key is one in which the _____ of one relation is referenced in
another relation.​
A. Foreign key​
B. Composite key​
C. Primary key​
D. References​
E. Relationship​
F. Check constraint​

11.​Returns a relation containing all tuples that appear in both of two specified
relations.​
A. Intersection​
B. Union​
C. Difference​
D. Join​
E. Selection​
F. Division​

12.​ Returns a relation containing all possible tuples that are a combination of
two tuples, one from each of two specified relations, such that the two tuples
contributing to any given result tuple have common values for the common
attributes of the two relations (and those common values appear just once,
not twice, in that result tuple).​
A. Selection​
B. Division​
C. Projection​
D. Intersection​
E. Union​
F. Difference​
G. Join​

13.​ __ is used to return rows from both tables that satisfy the given condition.
It is the most widely used join operation and can be considered as a default
join-type.​
A. Theta join​
B. Inner join​
C. Equi join​
D. Natural join​

14.​ To include integrity constraint in an existing relation use:​


A. Create table​
B. Modify table​
C. Alter table​
D. After table​

15.​ A table T_COUNT has 12 number values as: 1, 2, 3, 32, 1, 1, null, 24, 12,
null, 32, null. Predict the output of the following:​
SELECT COUNT(num) FROM t_count;​
A. 12​
B. 6​
C. 9​
D. 5​
E. 3​

16.​ Which of the following SELECT query returns the department number
with maximum salary to an employee, by department?​
A. SELECT department_id, max(salary) FROM employees;​
B. SELECT department_id, max(salary) FROM employees GROUP BY
department_id;​
C. SELECT max(salary) FROM employees GROUP BY department_id;​
D. SELECT max(salary) FROM employees;​
E. SELECT DISTINCT department_id, max(salary) FROM employees GROUP
BY department_id;​
F. SELECT department_id, min(salary) FROM employees GROUP BY
department_id;​
G. SELECT department_id FROM employees GROUP BY department_id;​
H. SELECT department_id, max(salary) FROM employees GROUP BY salary;​

17.​ Which of the following is correct in syntax?​


A. Select * from tblA A, tblB B on(A.colA = B.colB)​
B. Select * from tblA A, tblB B Where A.colA = B.colB​
C. Select * from tblA A natural join tblB B on(A.colA = B.colB)​
D. Select * from tblA A join tblB B on A.colA = B.colB​
E. Select * from tblA A, tblB B on A.colA = B.colB​
F. Select * from tblA, tblB on A.colA = B.colB​

18.​ Double Rectangle represent_________​


A. Derived attributes​
B. Multi-valued Attributes​
C. Weak entity sets​
D. Total participation of an entity in a relationship set​

19.​ Which statement is used to get all data from the student table whose name
starts with ‘L’?​
A. SELECT * FROM student WHERE name LIKE '%L%'​
B. SELECT * FROM student WHERE name LIKE 'L%'​
C. SELECT * FROM student WHERE name LIKE '_L%'​
D. SELECT * FROM student WHERE name LIKE '%L'​
E. SELECT * FROM student WHERE name LIKE 'I%'​
F. SELECT * FROM student WHERE name LIKE '%I'​
G. SELECT * FROM student WHERE name NOT LIKE '%L'​

20.​ What command is used to save changes invoked by a transaction to the


database?​
A. ROLLBACK​
B. START TRANSACTION​
C. SAVE​
D. COMMIT​
E. UPDATE​
F. SAVEPOINT​
G. INSERT​
H. SET TRANSACTION​

You might also like