Quizz DBi
Quizz DBi
Quizz DBi
Question 1 An ________ is a set of entities of the same type that share the same properties, or attributes.
Complete
Mark 0.00 out Select one:
of 1.00 a. Attribute set
b. Entity model
c. Relation set
d. None of the above
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 1/9
20:47 03/11/2023 Quiz3: Attempt review
The correct answer is: With DDL, tables can be created and deleted
Question 3 Database __________ which is the logical design of the database, and the database _______ which is a snapshot of
Complete the data in the database at a given instant in time.
Mark 0.00 out
of 1.00 Select one:
a. Instance, Schema
b. Relation, Domain
c. Schema, Instance
d. Relation, Schema
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 2/9
20:47 03/11/2023 Quiz3: Attempt review
Question 4 The attribute name could be structured as an attribute consisting of first name, middle initial, and last name. This
Complete type of attribute is called
Mark 1.00 out
of 1.00 Select one:
a. Composite attribute
b. Simple attribute
c. Multivalued attribute
d. Derived attribute
Question 5 An entity in A is associated with at most one entity in B, and an entity in B is associated with at most one entity in
Complete A.This is called as
Mark 0.00 out
of 1.00 Select one:
a. Many-to-many
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 3/9
20:47 03/11/2023 Quiz3: Attempt review
Question 6 In order to insert a column named a with data type varchar (20) into table A, we use the following code
Complete
Mark 0.00 out Select one:
of 1.00 a. alter table A add a varchar(20)
b. alter table A alter add a varchar(20)
c. All of the above answers are not correct
d. alter table A modify a varchar(20)
Question 7 Which of the following statements is true for data management using a file-based system?
Complete
Mark 0.00 out Select one:
of 1.00 a. Security is well guaranteed
b. Non of the above
c. Avoid data redundancy
d. Data is shared between applications
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 4/9
20:47 03/11/2023 Quiz3: Attempt review
Select one:
a. SELECT TOP 2 * FROM engineers ORDER BY salary DESC, GROUP BY salary
b. SELECT TOP 2 * FROM engineers ORDER BY max(salary) DESC
c. SELECT TOP 2 * FROM engineers GROUP BY salary DESC
d. SELECT TOP 2 * FROM engineers ORDER BY salary DESC
The correct answer is: SELECT TOP 2 * FROM engineers ORDER BY salary DESC
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 5/9
20:47 03/11/2023 Quiz3: Attempt review
Question 10 Which of the following answers indicates the sample matching operator?
Complete
Mark 0.00 out Select one:
of 1.00 a. =
b. is =
c. %
d. ==
d. G is covered by F
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 6/9
20:47 03/11/2023 Quiz3: Attempt review
Question 12 The form of dependency in which the set of attributes that are neither a subset of the primary key nor the candidate keys is classified as
Complete
Mark 0.00 out Select one:
of 1.00 a. Transitive dependency
b. Full functional dependency
c. Prime functional dependency
d. Partial dependency
Question 13 Table employees has a salary column with the following values:
Complete 10000, 11000, 12000, 10000, 14000, 12000, 13000, 10000, 14000, 10000
Mark 1.00 out Select distinct (salary) from employees will output:
of 1.00
Select one:
a. 10000, 11000, 12000, 14000, 13000
b. 10000, 14000, 12000, 10000, 11000
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 7/9
20:47 03/11/2023 Quiz3: Attempt review
Question 14
If there is more than one key for relation schema in relation model, then each key in relation schema is classified as
Complete
Mark 0.00 out
of 1.00
Select one:
a. Candidate key
b. Super key
c. Prime key
d. Primary key
Select one:
a. Remove the brackets ‘(‘ and ‘)’ from the subquery
b. must change ‘=’ by ‘in’
c. None of the above answers are correct
d. In the sub-query, ‘*’ needs to be replaced by ‘OrderID’
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 8/9
20:47 03/11/2023 Quiz3: Attempt review
https://lms-hcmuni.fpt.edu.vn/mod/quiz/review.php?attempt=660712&cmid=9741 9/9