Lecture 1 Flashcards

1
Q

What is an Algorithm?

A

An algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value or set of values as output
An algorithm can be seen as a tool for solving a well-specified computational problem.

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

What is a Flat Database?

A

Stores information about a single entity

1 table

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

Disadvantages of a Flat database?

A

Separation and isolation of data.
Duplication of data.
Data dependence.
Incompatibility of files.
Fixed queries and the proliferation of application of programs.
A solution to this is to use a relational database.

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

What is a database?

A

A consistent store of data

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

What is first normal form?

A

No repeated or similar data
Each row is unique i.e. it has a primary key
Data has to be atomic

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

What is second normal form?

A

Non-key attributes must depend on every part of the primary key
The table must already be in first normal form

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

What is third normal form?

A

It is already in 2NF

There are no non-key attributes that depend on another non-key attribute

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

Entity relations

A

one to one-husband and wife
one to many-mother and child
many to many-actor and film

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

Define a primary key?

A

A unique identifier for each record

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

Define a foreign key?

A

A foreign key is an attribute that creates a join between two tables (relations).It is the attribute that is common in both tables.
It is the primary key in the first relation

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

Define a secondary key?

A

A secondary key is a field in a table that can be used to access the data in different ways. It is used to search for a group of records.

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

What is a DBMS?

A

a database management system defines, creates and maintains a database. The DBMS also allows controlled access to data in the database
Includes a data dictionary which is a file of descriptions of the data and structure

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

Views of data: Internal level

A

This is the view of the entire database store in the system. It is hidden from the user by the DBMS.

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

Views of data: Conceptual level

A

Gives a single usable view of all the data on the database

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

Views of data: External level

A

Where data is arranged according to user requirements and rights. Different users will get different views of the data.

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