1.4 + 1.5 data types + ethical Flashcards

1
Q

What is a primitive data type

A

One that is provided by a programming language

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

Why is hexadecimal used

A

Simple to represent a byte in just two digits, therefore fewer mistakes likely to be made writing hex
Easier to write and remember

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

What is ASCII

A

Standard code for representing the characters on the keyboard

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

What is an array

A

Finite, ordered set of elements of the dame type

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

What is an nd array

A

Arrays may have more than one dimension. An nd array is a set of elements of the same type, indexed by n integers

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

What is a tuple

A

Ordered set of values that could be elements of any type
Immutable (elements cannot be changed and you cannot dynamically add or delete elements)

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

What is a record

A

Contains a number of fields each holding one item of data

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

What is an abstracts data type

A

One that is created by the programmer rather than defined within the programming language
These include queues, stacks, trees and graphs, which can be shown in graphical form at it is not hard to understand how to perform operations.
Logical description of how data us viewed and the operations that can be performed on it

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

What is a queue

A

First in first out data structure, new elements may only be added to the end of a queue and elements may only be retrieved from the front of the queue

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

What are the 4 operations that can be done on a queue

A

enQueue(item) add new item to rear
deQueue(item) Remove the front item from the queue and return it
IsEmpty()Test if queue is empty
IsFull()Test if queue is full

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

What is a dynamic data structure

A

Collection of data in memory that can grow or shrink in size with the aid of a heap
Can cause overflow
Helps implement queues when size is unknown

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

What is a heap

A

Portion of memory from which space is automatically allocated or de allocated as required

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

What is a static data structure

A

Fixed in size and cannot increase in size or free up memory while the program is running

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

What is a list

A

Abstract data type consisting of a number of items in which the same item may occur more than once
Many operations can be carried out

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

What is a stack

A

Last in first out data structure

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

What operations can be carried out on a stack

A

push(item) adds item to the top
pop() removes and returns top item
peek()returns top item
isEmpty()
isFull()

17
Q

What does the XOR gate do

A

Output is only true if one or other input is true

18
Q

What is a karnaugh map

A

Provides an alternative way of simplifying boolean expressions and allows us to easily detect groupings of expressions with common factors

19
Q

What is the data protection act

A

Says that anyone who stores personal details must keep them secure

20
Q

What are the principle of the data protection act 1998

A

Data must be processed fairly and lawfully
Data must be adequate and relevant
Data must be accurate and up to date
Data must not be retained longer than necessary
Data can only be used for the purpose for which it was collected
Data must be kept secure
Data must be handled in accordance with peoples rights
Data must be transferred outside the EU with adequate protection

21
Q

What is the computer issues act 1990

A

Designed to prevent unauthorised access or hacking or programs or data
Includes:
Unauthorised access to computer material
Unauthorised access with intent to commit or facilitate a crime
Unauthorised modification of computer material
Making, supplying or obtaining anything which can be used in computer misuse offences

22
Q

What is the copyright designs and patents act 1988

A

Act designed to protect the creators of books, music, video and software from having their work illegally copied.

23
Q

What is the regulation of investigatory powers act 2000

A

Regulates the powers of public bodies to carry out surveillance and investigation and covers the interception of communications

Enables certain public bodies to demand that an ISP provide access to a customers communications in secret
Enables mass surveillance of communications in transit
Enables certain public bodies to demand an ISPs fit equipment to facilitate surveillance
Enables certain public bodies to demand that someone hand over keys to protected information
Allows certain public bodies to mount peoples internet activities
Prevents the existence of interception warrants and any data collected with them from being revealed in court