Mock Exam Flashcards

1
Q

Which statement links with the following clauses?

WHERE
GROUP BY
HAVING
SELECT
FORM
A

WHERE - filters the rows (before aggregation)
GROUP BY - determines how aggregate functions are evaluated
HAVING - filters the rows (after aggregation)
SELECT - determines which columns appear
FROM - determines which tables are searched

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give a true statement of a composite key?

A

It should improve the performance of some SELECT queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What design is database vendor dependent?

A

Physical Design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a main role for a database administrator?

A

Ensuring that the database is backed up regularly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Do all tables need to have a foreign key?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do foreign keys ensure?

A

referential integrity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a foreign key be NULL?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the term for combining two relations based on values in one attribute in each relation being the same?

A

Equi Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the term for a mapping from the members of one set to the members of a second set?

A

Relation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The label at the “child” end of an optional, one-to-many relationship should be?

A

0..*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

State the stage of normalisation at which the following issue is addressed:

Eliminate partial key dependencies:

A

Second Normal Form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

State 3 points regarding optionality?

A

It specifies whether participation in the relationship is mandatory for a particular entity type or not

It is represented by the left-hand number in a multiplicity label

It is the minimum number of entities of a particular type that can participate in the relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Select the true statement about the multiplicity label shown:

0..1

A

The entity is optional. The corresponding foreign key may be null.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the term for the maximum number of entities that can participate in a relationship?

A

Cardinality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Select the category relevant to the action of allowing user X to insert records into table T

A

Access control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What mongodb function that corresponds most closely to an SQL SELECT statement with a GROUP BY clause.

A

aggregate

17
Q

What is Scalability in terms of NoSQL?

A

NoSQL databases allow many machines to process a single query simultaneously.

18
Q

Relational Databases are so called because…

A

The main data structure used is a relation.

19
Q

Using a transaction log reduces database performance - true or false?

A

True

20
Q

Which property of transactions is guaranteed by the two-phase locking strategy

A

Serializability

21
Q

What is the term for the conceptual separation of logical data from physically stored data?

A

Data independence.

22
Q

What is the term for a lock taken out by a read-only transaction?

A

Shared