set 3 (random) Flashcards
Describe what happens, in relation to the storage or retrieval of a record in the file when the calculated hash value is a duplicate of a previously calculated hash value for a different record key
- If a collision occurs when the record key doesn’t match the stored record key this means that the determined storage location has already been used for another record.
- If the record is to be stored, it searches the file linearly to the next available storage space (closed hash) or searches the overflow area linearly to find the next available storage space (open hash)
- If the record is to be found, it searches the overflow area linearly (open hash) until the matching record key is found or searches linearly from where you are (closed hash) until the matching record key is found.
- If not found record is not in file
State, with a reason, where it would be appropriate to use circuit switching
- Circuit switching is used where a dedicated path needs to be sustained throughout the call where the whole bandwidth is required // when real time communication is used
- A typical application is standard voice communication, video streaming or private data networks
What are the benefit of circuit switching
- Whole bandwidth available
- Data transmitted with a fixed data rate
- no waiting time at switches
- suitable for long continuous communication
- data arrives in same order as it was send, so easier method of data transfer
What are the drawbacks of circuit switching
- A dedicated connection makes it impossible to transmit other data even if the channel is free
- Not very flexible
- The time required to establish the physical link between the two stations can be too long
- No alternative route in case of failure
Outline the characteristics of massively parallel computers.
- A large number of computer processors / separate computers connected together
- simultaneously performing a set of coordinated computations // collaborative processing
- Communicate using a message interface / by sending messages.
Explain how a new element can be added to the queue if it is implemented using two stacks.
- (Two stacks are required) so that the second stack can reverse the order of the first stack.
- Stack 1 operates as the queue with the newest elements at the bottom. Stack 2 is empty.
- To add an element, pop all the elements from stack 1 and push onto stack 2.
- Push the new element onto either stack. Pop all the elements of stack 2 back onto stack 1.
Describe what is meant by recursion.
- A process using a function or procedure defined in terms of itself / calls itself.
- A recursive process must have a base case (which is a way to return without making a recursive call) // terminating solution // concept of unwinding described
- There must (also) be a general case where the recursive call takes place.
Define encapsulation
putting properties and methods inside a class // ensures sensitive data is hidden from users by hiding values of a structured data object inside a class.
Define OOP
a programming
methodology that uses self-contained objects, which
contain programming statements (methods) and data, and which communicate with each other.
Define Polymorphism
allows the same method to take on different behaviours depending on which class is instantiated // methods can be redefined for derived classes.
Describe the purpose of quantum cryptography
- To produce a virtually unbreakable encryption system using the laws of quantum mechanics
- It can detect eavesdropping because the properties of photons change to protect security of data transmitted over fibre optic cables
- To enable the use of longer keys
What is meant by the term Enumerated data type
A user defined non composite data type with an ordered list of possible values
What is meant by the term pointer data type
A user defined non composite data type used to reference a memory location
Define what an Instance is
an occurrence of an object // a specific object based on the class // an instantiation of a class
Define inheritance
the capability of defining a new class of objects that has all the attributes and methods from a parent class.