Fundamentals Of Data Representation Flashcards

1
Q

Define the term “number base”

A

the number of digits or combination of digits that a system uses to represent numbers.

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

Describe decimal, binary and hexadecimal number bases

A

Decimal bases – go up in powers in 10
Binary bases – go up in powers of 2
Hexadecimal bases – go up in powers of 16

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

What is the purpose of hexadecimal?

A

Hex is useful because large numbers can be represented using fewer digits.
For example, colour values and MAC addresses are often represented in hex.
Additionally, hex is easier for humans to understand than binary.
Programmers often use hex to represent binary values as they are simpler to write and check than when using binary.

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

To convert hex to decimal, simply take each place value that has a unit in it, and add them together.

Example - hex number 7C

65,536 4,096 256 16 1

Result - (7 × 16) + (C × 1) = (7 × 16) + (12 × 1) = (112) + (12) = 124

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

Nibble -
Bit -
Byte -
Kilobyte -
Megabyte -
Gigabyte -
Terabyte -

A

Nibble - 4 bits
Bit - The state is represented by a single binary value, usually a 0 or 1
Byte - 8 bits
Kilobyte - 1000 bytes (1024)
Megabyte - 1000 kilobytes
Gigabyte - 1000 megabyte (1024)
Terabyte - 1000 gigabytes

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

Binary addition - eg. 110+ 111=

A

Ans. 1101

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

Explain binary shifts

A

You can replace multiplication and division by shifting bits if they are to the power of 2. Binary shifts allow us to move all the bits stored in a register on the processor either left or right. If we move the bits to the left then it is a left-shift, if we move the bits to the right then it is a right-shift.

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

Character Set

A

Computers work in binary . As a result, all characters, whether they are letters, punctuation or digits are stored as binary numbers. All of the characters that a computer can use are called a character set .

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

Describe ASCII (American Standard Code for Information Interchange)

A

ASCII uses seven bits, giving a character set of 128 characters. The characters are represented in a table, called the ASCII table. The 128 characters include:

32 control codes (mainly to do with printing)
32 punctuation codes, symbols, and space
26 upper case letters
26 lower case letters
numeric digits 0-9

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

Describe Extended ASCII

A

Extended ASCII uses eight bits, giving a character set of 256 characters. This allows for special characters such as those with accents in languages such as French and Spanish.

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

Describe Unicode

A

While suitable for representing English characters, 256 characters is far too small to hold every character in other languages, such as Chinese or Arabic. Unicode uses 16 bits, giving a range of over 65,000 characters. This makes it more suitable for those situations.

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