Exchanging data Flashcards
What are the characteristics of lossy compression?
Removes parts of the file.
For sound files removes the parts you cannot hear
Is permanent
What are the characteristic of lossless compression?
Finds patterns and other parts to note down
Is not permanent
Usually reduces it by less.
What is RLE (run length encoding)?
A type of lossless compression where patterns are found and made into one occurrence of the data followed by the number of times it occurs
What is dictionary encoding?
Another method of lossless compression, creates a dictionary of the words or numbers.
What is symmetric encryption?
Both the sender and receiver share the same private key. The private key is used to encode and decode
What is asymmetric encryption?
Two separate keys are used, one key is public and the other is private. The public is used to encrypt the private is used to decrypt.
What is hashing?
Hashing is when an input is turned into a fixed size value
What is a flat file database?
A database that consists of a single file
What is a primary key?
A primary key is a unique identifier for each record in a table.
What is the foreign key?
The foreign key is an attribute that links two tables together.
What is the secondary key?
A secondary key allows a database to be searched quickly.
What are the different relationships we can have between models?
One to one, one to many, many to many
What is normalisation?
The process of coming up with the best possible layout for a relational database.
What is first normal form?
There are no attributes that contain more than one value
What is second normal form?
A database doesn’t have any partial dependencies. This means that no attributes can depend on part of a composite key.
What is third normal form?
A database that contains no non key dependencies.
What is indexing?
Indexing is a method that is used to store the position of each record ordered by a certain attribute. This allows data to be looked up quickly.
What statements are necessary when creating a SQL statement?
SELECT, FROM, WHERE, ORDER BY
What does SELECT do in a SQL statement?
used to collect fields from a given table