Fundamentals of Data Representation Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the name of the number set N and what numbers does it include?

A

Natural Numbers are postive whole numbers, including zero

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

What is the name of the number set Z and what numbers does it include?

A

Integer Numbers are any whole positive or negative number including zero.

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

What is the name of the number set Q and what numbers does it include?

A

Rational Numbers are any number that can be expressed as a fraction or ratio of integers

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

What is the name of the number set Q’ and what numbers does it include?

A

Irrational Numbers are any numbers that cannot be expressed as a fraction or ratio, as the number is infinite or undefined

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

What is the name of the number set R and what numbers does it include?

A

Real Numbers are any positive or negative numbers with or without a fractional part

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

What are Ordinal Numbers?

A

Ordinal Numbers are numbers that are used to identify position relative to other numbers

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

What are Cardinal Numbers?

A

Cardinal Numbers are numbers that identify the size of something, for example a set.

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

What is a bit?

A

A single binary digit

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

What is a byte?

A

A group of 8 bits

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

Name the units in ascending order for Binary Numbers

A

Kibibyte (Ki) = 2^10
Mebibyte (Mi) = 2^20
Gibibyte (Gi) = 2^30
Tebibyte (Ti) = 2^40

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

Name the units in ascending order for Deneray (Decimal) Numbers

A

Kilobyte (KB) = 10^3
Megabyte (MB) = 10^6
Gigabyte (GB) = 10^9
Terabyte (TB) = 10^12

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

Name the bases for Decimal, Binary and Hexadecimal Numbers

A
Decimal = Base 10
Binary = Base 2
Hexadecimal = Base 16
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the steps when converting a decimal number to a hexadecimal number?

A

1) Convert the number to binary
2) Split the binary numbers into groups of 4
3) Work out each hex digit by adding the decimal weightings together
4) Join together, with leftmost first

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

What are the steps when converting a hexadecimal number to a decimal number?

A

1) Split the hex number into each of its individual digits
2) Convert to 4 bit binary numbers
3) Join the binary numbers together
4) Convert to decimal using the new weightings

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

How would you add unsigned binary?

A
0+0 = 0
0+1 = 1 
1+1 = 0 carry 1 to the left
1+1+1 = 1 carry 1 to the left
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How would you multiply unsigned binary?

A

Same rules as normal multiplication where you start from the rightmost of the 2nd number and add 0 on the end each time you start multiplying a new digit. Then perform binary addition on the numbers you get.
E.g
11011 x
11
———-
11011 + this number is the same as 1 x anything is itself
110110 this is the same but shifted left as 1(0)x anything is itself with a 0 on the end

17
Q

What is two’s complement?

A

A signed binary format (the MSB or rightmost bit is always a negative version of itself)

18
Q

How do you add and subtract two’s complement numbers?

A

Adding is the same as with unsigned binary
To subtract basically add two numbers together - one of which will be negative e.g
00010100 (20)
11110011 (-13)
—————-
00000111 (7) A bit has overflown here

19
Q

When is fixed point binary used?

A

To represent fractional values using a decimal point and the weightings 2^-n

20
Q

Define character code

A

A binary representation of a particular letter, number or special character.

21
Q

What is a Parity bit?

A

A method of checking binary codes by counting the number of 0s and 1s and checking if there is an odd or an even number and comparing against if either odd or even parity is used.

22
Q

What is majority voting?

A

A method of checking for errors by producing the same data several times and checking it is the same each time. If not, it will choose the most common one (the majority).

23
Q

What is a check digit?

A

A digit added to the end of binary data to check the data is accurate. (This is calculated through taking the digits that make up the number itself and performing an operation on them)

24
Q

What is a Caesar cipher?

A

A substitution cipher where one character of plaintext is substituted for another, which becomes the ciphertext.

25
Q

Define the term polyalphabet.

A

Using more than one alphabet

26
Q

Define the term Frequency Analysis

A

In cryptography it is the study of how often different letters or phrases are used.

27
Q

What does the term Transposition Cipher mean?

A

A type of encryption where the characters are rearranged to form an anagram.

28
Q

What is a Railfence Cipher?

A

A type of transposition cipher that encodes the message by splitting it over rows.

29
Q

What is a Route Cipher?

A

A type of transposition cipher that encodes the message by placing it into a grid.

30
Q

What are the steps to encrypt a Vernam Cipher?

A

1) First create a one-time pad that is as long as the plaintext message.
2) Use a binary representation of the letters in both the key and the plaintext
3) Perform a logical XOR to produce the code for the ciphertext first letter
4) Convert from binary back to characters and repeat for each letter

31
Q

What is a Vernam Cipher?

A

A method of encryption that uses a one-time pad (key) to create cyphertext that is mathematically impossible to decrypt without the key.

32
Q

What is Baudot code?

A

An older character code than ASCII and Unicode that uses 5 digits.