Chapter 8 : Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are the benefits of using DLLs

A

Executable file is smaller…only loaded to memory when needed

Changes done independently on main program…no need to recompile

One file is available to several applications…saves space

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

What is a Dynamic Link Library File

A

Shared library file

Code only loaded to main memory when required of run time

Made available to several applications at the same time

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

What are the disadvantages of DLL

A

Malicious changes can install to users computer

Unexpected changes means program stops working as expected

File must be present or else unable to find errors

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

What are the benefits of using library routines

A

Code already written…programer saves time

Code used by many people…thoroughly tested

Programmer can use functions they may not know…simplifies program

Conform to industry standards…more robust

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

What is an entity

A

An object about which data can be stored

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

What is a primary key

A

The unique attribute / combination of attributes used to identify the
record / tuple

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

What methods can be used to secure a database

A

Backup / recovery procedures

Use of access rights

Views

Record and table locking(prevents simultaneous access to data to prevent over writing)

Encryption

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

How do you put a database into 1NF

A

Identify repeating groups of attributes …

Ensure each field is atomic

Identify the primary key for the table

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

What is a data dictionary

A

Stores data about the database like metadata

Field names,Table names,Datatypes

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

What things are included in defining a table

A

 CREATE TABLE start and end bracket

  CREATE TABLE BIRD_TYPE( 

  );

Define Records and datatypes
Name VARCHAR(9),

 Set primary key

 PRIMARY KEY (BirdID)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe how using a relational database has overcome the previous problems
associated with a file-based approach.

A
  • By storing data in (separate) linked tables data redundancy is reduced / data duplication is controlled…
  • Compatibility / data integrity issues are reduced as data only needs to be updated once / is only stored once.
  • Unwanted or accidental deletion of linked data is prevented as the DBMS will flag an error.
  • Program - data dependence is overcome.
  • Changes made to the structure of the data have little effect on existing programs.
  • Ad-hoc / complex queries can be more easily made as the DBMS will have a query
    language/ QBE form.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly