1.1 Data representation Flashcards

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

What is binary and why is it different to denary?

A

Denary is the base 10 number system we use everyday. Because computers consist of millions of switches (transistors) either that are on or off, designers of computers adopted a base 2 number system (binary).

A switch in the ON position can be represented by a 1 and a switch in the OFF position can be represented by a 0. Every computer system, at machine code level, reads and acts upon thousands of binary digits (bits) millions of times.

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

Convert 147 to binary.

A

10010011

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

Convert 10101101 to denary.

A

173

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

What is the difference between one’s complement and two’s complement?

A

There are a number of methods we can use to represent both positive and negative numbers. In one’s complement, each digit in the binary number is inverted (in other words, 0 becomes 1 and 1 becomes 0) In two’s complement, each digit in binary is inverted and a ‘1’ is added to the right-most bit - which removes a lot of problems that one’s complement encounters

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

Add 00100101 and 00111010 using two’s complement binary

A

95

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

Add 01010010 and 01000101. What is the result and why does this occur?

A

In this case, we get the answer of -105, which is incorrect for this calculation. This is known as overflow error, which occurs when there are not enough available bits to accurately represent the number we want.

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

Subtract 68 from 95 in binary (two’s complement)

A

00011011

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

What differences are there between a kibibyte and a kilobyte?

A

A kilobyte is a unit of memory equal to 1000 bytes. A kibibyte is the equivalent of 1024 bytes. A kilobyte uses the base 10 SI number system which makes carrying out calculations simpler (multiples of 10). A kibibyte uses base 8 system proposed by IEC. This system means that larger binary figures are more accurate.

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

How many bytes are there in a megibyte?

A

1024x1024 bytes

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

Convert 10111001 (binary) into its hexadecimal equivalent.

A

B9

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

What is Binary Coded Decimal (BCD), and what is it used for?

A

A binary system that uses 4 bit codes to represent each denary digit. Digits can be stored either as a a single 4-bit code or two 4-bit codes to form a byte.

One use of BCD is when denary numbers need to be electronically coded
e.g. to operate displays on a calculator where each digit is represented this allows decimal fractions can be accurately represented with 4 bits per digit

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

What is hexadecimal?

A

Base 16 number system, that uses numbers 1-9, and letter A-F to represent 10-16. Hex is often used by programmers when developing software or error checking using memory dumps. 1 hex digit is the equivalent of 4 binary digits, which makes reading long strings of numbers easier; less prone to human error.

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

What is BCD error correction?

A

When the result of a BCD calculation exceeds a single digit denary number (e.g. 10, 11) the answer will be incorrect; as a 2+ digit denary number cannot be encoded using only 4 BCD digits.

To solve this problem and enable the computer to store monetary values accurately, is to add 0110 (6 in denary) when such a problem arises. The computer can be programmed to recognise this issue and add 0110 at each appropriate point.

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

What is ASCII?

A

ASCII, American Standard Code for Information Interchange, is a character encoding standard for electronic communication. This character set uses 7 bits (giving 0-127 spaces or 0-7F in hex) to represent each character, letter, number in the english language.

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

What is extended ASCII?

A

Extended ASCII uses 8-bit codes (adding 128 to 255 in denary or 80-FF in hex characters to standard ASCII). This allows for non-English characters and other special characters to be included.

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

What is unicode?

A

Unicode is a universal character encoding set that represents characters in a code form. ASCII uses 1byte to represent a char; whereas unicode supports up to 4bytes per char; and it was designed to support characters from all languages around the world.

The standard ASCII character set only supports 128 characters, while Unicode can support roughly 1,000,000 characters!