flervalsfrågor 2020 Flashcards
A relational database consists of a collection of:
Fields
Records
Tables
Keys
Tables
Consider two student tables:
StudID Course
Ida IS
Fredrik Econ
and
StudID Course
Michelle Physik
Frank CompSci
Oscar AeroEng
Which operator would yield the empty table?
Difference
Intersection
None of the mentioned
Union
Intersection
There are similarities between the instructor entity set and the secretary entity set in the sense that they have several attributes that are conceptually the same across the two entity sets: namely, the identifier, name, and salary attributes. This process is called:
Similarity
Commonality
Specialisation
Generalisation
Generalisation
Which relationship is used to represent a specialization entity?
WHOIS
ISA
ONIS
AIS
ISA
Consider a phone number that can take one or more values. Treating a phone number as a _________ permits a database to have several phone numbers associated to a person or organisation.
Relation
Attribute
Entity
Value
Entity
By maximising the differences between members of the entity set person, it can be classified as both student and employee. This process is called _________ .
Inheritance
Object oriented
Specialisation
Generalisation
Specialisation
A ________ in a table represents a relationship among a set of values.
Row
Entry
Key
Column
Row
Course_id Sec_id Semester Year
BIO-101 1 Spring 2021
CS-102 4 Summer 2020
EE-201 3 Fall 2020
FIN-301 1 Spring 2019
The primary key in the above table is ____________.
Sec_id and Semester
Sec_id
Course_id
All of the attributes
Course_id
Tables in Third Normal Form (3NF) are already in 1NF and 2NF and in which the values in all non-primary-key columns can be worked out from _______ the ________ key column(s).
All, Candidate
Only, Foreign
Some of, Primary
Only, Primary
Only, Primary
Which of the following indicates the maximum number of entities that can be involved in a relationship?
Modality
Minimum Cardinality
Maximum Cardinality
Participation
Maximum Cardinality
What is a relationship called when it is maintained between two entities?
Ternary
Binary
Unary
Quaternary
Binary
Which of the following can be a multivalued attribute?
Name
Phone_number
Date_of_birth
All of the mentioned
Phone_number
What is the optimised version of the relation algebra expression:
π A1 (π A2 (σ F1 (σ F2 (r)))),
where A1, A2 are sets of attributes in r with A1 ⊂ A2 and F1, F2 are Boolean expressions based on the attributes in r?
π A1 (σ (F1 ∨ F2) (r))
π A2 (σ (F1∧ F2) (r))
π A2 (σ (F1 ∨ F2) (r))
π A1 (σ (F1 ∧ F2) (r))
π A1 (σ (F1 ∧ F2) (r))
In order to maintain transactional integrity and database consistency, what technology does a DBMS deploy?
Cursors
Triggers
Locks
Pointers
Locks
Consider a relational table with a single record for each registered student with the following attributes:
- Registration_Num: Unique registration number of each registered student
- UID: Unique identity number, unique at the national level for each citizen
- BankAccount_Num: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.
- Name: Name of the student
- Hostel_Room: Room number of the hostel
Which of the following options is INCORRECT?
UID is a candidate key if all students are from the same country
Registration_Num can be a primary key
BankAccount_Num is a candidate key
If S is a superkey such that S∩UID is NULL then S∪UID is also a superkey
BankAccount_Num is a candidate key