1.4 Data Types, Data Structures and Algorithms Extra Flashcards

1
Q

Why would a type of encryption be described as symmetric

A

If the same key is used to encrypt and decrypt the data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain why asymmetric encryption is more suited to transactions over the internet than symmetric encyption

A

Symmetric requires both parties have a copy of the key this couldnt work as eavesdropper may see it. Asymmetric prevents this as there are two keys and the one used to decrpyt it is kept private

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When writing boolean expressions what should you do

A

Refer to the diagrams rather than inputs and outputs as it makes it easier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Difference between arrays and linked lists when it comes to dynamic

A

Linked list are dynamic whereas arrays are static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Can arrays have elements accessed directed

A

An array can have any element
accessed directly (i.e. random access)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Can linked lists have elements accessed directly

A

whereas a linked list needs to be
traversed until the desired element is
found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is meant by the term linked list

A

A dynamic data structure where each node consists of a data item and a pointer which points to the next node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why hash table is better for storing large amounts than a linked list

A

Linked lists require every node to be checked so will take longer as it gets bigger whereas hash tables enable direct access to location so will take same time no matter how big it is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Advantage of storing words in binary search tree over an array

A

BS tree can be searched quicker than an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How can lists and tuples be ordered with more than one data type

A

Ordered not sorted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly