Font size
WorksheetsOCR A Level Computer Science - 1.3.x
Total questions: 57
Worksheet time: 29mins
What are the key reasons for compressing data?
Less space needed for storage
Less time to transmit
Higher quality files
Reduced amount of processing power
Limited RAM
Lossless compression...
Is used when not all the information is needed
Is not as effective as lossy compression
Can fully regenerate the original file
Includes files such as .ZIP
Would be a sensible choice for a music download site
Lossy compression...
Permanently removes data from a file
Always leads to a noticeable loss of quality
Aims to remove redundant data
Can return the original file to its original quality
Would be a sensible choice for a music download site.`
Dictionary based compression...
Is a lossless compression format
Creates a dictionary of common letter combinations to encode words with fewer characters
Creates a dictionary of smaller letters so less space is used
Sends the dictionary with the data
Doesn't need to send the dictionary with the data
Run-length encoding...
is Lossless
is Lossy
Can only be used for text
Records the number of repeats of an individual element
Can be used for a wide variety of file types
Encryption...
Uses at least one key to cipher data
Is only used on text
Can be symmetric or asymmetric
Is impossible to break
Has developed a lot as processing power has increased
Symmetrical encryption techniques...
Are the most secure types of encryption
Use a single key to encode/decode
Use multiple keys to encode/decode
Include XOR, Caesar and Route
Include RSA, Diffie-Hellman and DSS
Asymmetrical encryption techniques...
Are the most secure types of encryption
Use a single key to encode/decode
Use multiple keys to encode/decode
Include XOR, Caesar and Route
Include RSA, Diffie-Hellman and DSS
Asymmetrical encryption...
Often requires considerable processing power
Is impossible to break
Is being threatened by the possibility of quantum computing
Can be brute-force attacked
Is very widely used, even in small businesses
A database is...
a structured system for holding records
a spreadsheet of information
reliant on good design, as poor structure can cause many problems
simple and easy to create
An entity is...
A thing, about which data is stored in the database such as Student
A property such as Name or Age
An attribute is...
A thing, about which data is stored in the database such as Student
A property such as Name or Age
Entity relationships can be:
One-to-One
Many-to-Many
Many-to-One
One-to-Many
In a hospital system, the relationship between a consultant to a patient would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
In a hospital system, the relationship between a nurse to a ward would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
In a hospital system, the relationship between a patient to a surgeon would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
In a hospital system, the relationship between a consultant to a student would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
In a school system, the relationship between a teacher to a pupil would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
In a school system, the relationship between a teacher to a department would be:
One-to-One
One-to-Many
Many-to-Many
Many-to-One
A primary key is...
A unique identifier for each record
An identifier which can be shared between multiple records
The first number in the record
A way of looking up data in related tables
A foreign key is...
A unique identifier which links a record to a related record in another table
A unique identifier for each record in a table
A shared identifier for all records in one table
What is the primary key?
Sales ID
Item ID
Item Name
Address
Payment Complete?
Which field is likely to be a foreign key?
Sales ID
Item ID
Item Name
Address
Payment Complete?
What will be returned by the SQL query:
SELECT * FROM Sales WHERE Sales ID = "00113"
00112 1151213215 Keyring 123 Example Ln 1
00112 65465654688 Pencil 123 Example Ln 1
00112 87954121321 Bag 123 Example Ln 1
00113 65465654688 Pencil 77 Bay St 0
00114 65465654688 Pencil 999 Letsbey Ave 1
Which of the following SQL statements will return the Sales ID of all sales which involve a pencil?
SELECT * FROM Sales WHERE Item Name = "Pencil"
SELECT * FROM Sales WHERE Item Name = Pencil
SELECT Sales ID FROM Sales WHERE Item Name = "Pencil"
SELECT Sales ID FROM Sales WHERE Item Name = Pencil
SELECT "Sales ID" FROM Sales WHERE Item Name = "Pencil"
Which of the following SQL statements will return the address of anyone who has ordered a pencil and has paid.
SELECT Address FROM Sales WHERE Item Name = "Pencil" and Payment Complete? = TRUE
SELECT Address FROM Sales WHERE Item Name = "Pencil" and Payment Complete? = "TRUE"
SELECT Address FROM Sales WHERE Item Name = Pencil and Payment Complete? = TRUE
SELECT Address FROM Sales WHERE Item Name = "Pencil" or Payment Complete? = TRUE
SELECT Address FROM Sales WHERE "Item Name" = "Pencil" and "Payment Complete?" = TRUE
Is this table in first normal form?
Yes
No
Don't Know
Is this table in first normal form?
Yes
No
Don't Know
Is this table in second normal form?
Yes
No
Don't Know
Is this table in second normal form?
Yes
No
Don't Know
Is this table in third normal form?
Yes
No
Don't Know
Select the things which are true for a database in 1NF:
Each entity has a unique identifier
Each attribute is atomic (divided as small as possible)
Each attribute has a single value
There is no repetition
There are no transitive relationships
Select the things which are true for a database in 2NF:
The database is in 1NF
All attributes depend on the primary key
There is no dependence
There is no repetition
There are no transitive relationships
Select the things which are true for a database in 3NF:
The database is in 2NF
There are at least 4 tables in the database
There is no dependence
All attributes have a separate table
There are no transitive relationships
What normal form is this table in?
1NF
2NF
3NF
What normal form is this table in?
1NF
2NF
3NF
What normal form is this table in?
1NF
2NF
3NF
