Difference between revisions of "2022 Paper 1 Revision Quiz"
(→Arrays) |
(→Abstract Data Types & Dynamic vs Static) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 100: | Line 100: | ||
=Arrays= | =Arrays= | ||
<quiz display=simple> | <quiz display=simple> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{When considering arrays, which of the following are correct | {When considering arrays, which of the following are correct | ||
Line 146: | Line 135: | ||
||Correct | ||Correct | ||
-False | -False | ||
+ | ||Incorrect | ||
+ | |||
+ | {An Array is a: | ||
+ | |type="()"} | ||
+ | -Abstract Data Structure | ||
+ | ||Incorrect | ||
+ | -Dynamic Data Structure | ||
+ | ||Incorrect | ||
+ | +Static Data Structure | ||
+ | ||Correct | ||
+ | -Strong Data Structure | ||
||Incorrect | ||Incorrect | ||
</quiz> | </quiz> | ||
Line 151: | Line 151: | ||
=Abstract Data Types & Dynamic vs Static= | =Abstract Data Types & Dynamic vs Static= | ||
<quiz display=simple> | <quiz display=simple> | ||
+ | |||
+ | {A Abstract Data type is: | ||
+ | |type="[]"} | ||
+ | -Defined by how it is implemented | ||
+ | ||Incorrect | ||
+ | +Not defined by how it is implemented | ||
+ | ||Correct | ||
+ | +Can be implemented in many ways | ||
+ | ||Correct | ||
+ | -Can only be implement in one way | ||
+ | ||Incorrect | ||
+ | |||
+ | {When considering dynamic structures, which of the following are correct | ||
+ | |type="[]"} | ||
+ | -You must declare a size when creating the structure | ||
+ | ||incorrect | ||
+ | -You don't need to specify a size when creating the structure | ||
+ | ||Correct | ||
+ | -The memory for the entire structure is allocated when it is created | ||
+ | ||Incorrect | ||
+ | +Only the initial memory is allocated when creating, the rest is allocated when we add items | ||
+ | ||Correct | ||
+ | |||
+ | {The benefits of static structures are: | ||
+ | |type="[]"} | ||
+ | -Makes the most efficient use of memory because it only allocates what is needed | ||
+ | ||Incorrect | ||
+ | +Memory allocation is fixed so adding and removing data items should be straight forward | ||
+ | ||Correct | ||
+ | +The size of the structure is known so you don't need to calculate the size of the structure | ||
+ | ||Correct | ||
+ | -Are very flexible and items can be added and removed without worrying about where they are in the structure | ||
+ | ||Incorrect | ||
+ | |||
+ | {The drawbacks of a static structure are: | ||
+ | |type="()"} | ||
+ | -It is possible for the structure to overflow or underflow | ||
+ | ||Incorrect | ||
+ | +Can be very inefficient with memory because memory is allocated whether it is needed or not | ||
+ | ||Correct | ||
+ | -The memory allocated will be fragmented so will take longer to read | ||
+ | ||Incorrect | ||
+ | - You might need to code basic function to get the size or number of items stored | ||
+ | ||Incorrect | ||
+ | |||
+ | {The benefits of dynamic structures are: | ||
+ | |type="[]"} | ||
+ | +Makes the most efficient use of memory because it only allocates what is needed | ||
+ | ||Correct | ||
+ | -Memory allocation is fixed so adding and removing data items should be straight forward | ||
+ | ||Incorrect | ||
+ | -The size of the structure is known so you don't need to calculate the size of the structure | ||
+ | ||Incorrect | ||
+ | +Are very flexible and items can be added and removed without worrying about where they are in the structure | ||
+ | ||Correct | ||
+ | |||
+ | {The drawbacks of a dynamic structure are: | ||
+ | |type="[]"} | ||
+ | +It is possible for the structure to overflow or underflow | ||
+ | ||Correct | ||
+ | -Can be very inefficient with memory because memory is allocated whether it is needed or not | ||
+ | ||Incorrect | ||
+ | +The memory allocated will be fragmented so will take longer to read | ||
+ | ||Correct | ||
+ | + You might need to code basic function to get the size or number of items stored | ||
+ | ||Correct | ||
</quiz> | </quiz> |
Latest revision as of 16:58, 3 June 2022
Contents
Recursion
Arrays
Abstract Data Types & Dynamic vs Static
Queues
Stacks
Graphs
Trees
Graph Traversal
Searching Algorithms
Sorting Algorithms
Optimisation Algorithms
Order of Complexity