2021 Paper 2 Flashcards
1
Q
differences between a 1D array and a 2D array?
A
- 1D is a row , 2D is a table
- Each element in 1D is a single value, each element in 2D is a 1D array
2
Q
how is the ceaser cipher a weak encryption algorithm
A
- The number of keys are limited, making it easy for brute force to decrypt
- It can be easy to find commonly used letters and guess the key
3
Q
state what is meant by a built in subprogram
A
a subprogram that has already been defined
4
Q
does the key go on the left or up? (viginere)
A
left
5
Q
binary > linear search
A
- can be quicker than a linear search, as it does not have to examine each item in the list
- halves the list each time so it can be faster to find an item