1. Data representation Flashcards

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

What must any form of data be converted into for a computer to process it?

A

Binary format

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

What does the binary number system consist of?

A

1s and 0s

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

Why is the binary number system chosn?

A

Since computers contain millions and millions of tiny ‘switches’, which must be in the ON or OFF position, they can be represented by 1s and 0s.

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

How and why are switches used?

A

Switches used in a computer make use of logic gates and are used to store and process data.

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

How is binary converted to denary?

A

Each time a 1-value appers in a binary number column, the column value is added to a total.

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

How is denary converted to binary?

A

Subtract the largest power of 2 and keep doing this until the value of 0 is reached.
OR
Successively divide by 2 by writing the result of the division including the remainder (even if it is 0) under the dividend until the result is zero. Write down all the remainders in reverse order.

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

What is the hexadecimal number system?

A

Hexadecimal is a base 16 system and therefore needs to use 16 different ‘digits’ to represent each value. The numbers 0 to 9 and the letters A to F are used to represent each hexadecimal digit. A in hex = 10 in denary, B = 11, C = 12, D = 13, E = 14, F = 15.

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

How is binary converted to hexadecimal?

A

Starting from the right and moving left, split the binary number into groups of 4 bits. If the last group has less than 4 bits, then simply fill in with 0s from the left. Take each group of 4 bits and convert it into the equivalent hexadecimal digit.

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

How is hexadecimal converted to denary?

A

Take each of the hexadecimal digits and multiply it by the heading values. Add all the resultant totals together to give the denary number.

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

How is denary converted to hexadecimal?

A

Successively divide by 16 by writing the result of the division including the remainder (even if it is 0) under the dividend until the result is zero. Write down all the remainders in reverse order.

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

Why is hexadecimal more convenient to use than binary?

A

One hex digit represents four binary digits. The hex number is far easier for humans to remember, copy, and work with.

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

What are four uses of the hexadecimal system?

A

Error codes, MAC addresses, IPv6 addresses, HTML colour codes

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

What are error codes?

A

Error codes refer to the memory location of the error and are usually automatically generated by the computer. The programmer needs to know how to interpret the hexadecimal error codes.

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

What are Media Access Control (MAC) addresses?

A

Media Access Control (MAC) address refers to a number which uniquely identifies a device on a network. The MAC address refers to the network interface card (NIC) which is a part of the device. The MAC address is rarely changed so that a particular device can always be identified no matter where it is. A MAC address is usually made up of 48 bits which are shown as 6 groups of two hexadecimal digits where the first half is the identity number of the manufacturer of the device and the second half is the serial number of the device.

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

What are Internet Protocal (IP) addresses?

A

Each device connected to a network is given an address known as the iNternet Protocal (IP) address. An IPv4 address is a 32-bit number written in denary or hexadecimal form. IPv4 has recently been improved upon by the adoption of IPv6. An IPv6 address is a 128-bit number broken down into 16-bit chunks, represented by a hexadecimal number. IPv6 uses a colon (:) rather than a decimal point (.) as used in IPv4.

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

What are HyperText Mark-up Language (HTML) colour codes?

A

HyperText Mark-up Language (HTML) is used when writing and developing web pages. HTML isn’t a programming language but is simply a mark-up language. A mark-up language is used in the processing, definition, and presentation of text. HTML uses <tags> which are used to bracket a piece of text. HTML is often used to represent colours of text on the computer screen. All colours can be made up of different combinations of the three primary colours (red, green, and blue). The different intensity of each colour (red, green, and blue) is determined by its hexadecimal value. This means different hexadecimal values represent different colours. The # symbol always precedes hexadecimal values in HTML code. The colour codes are always six hexadecimal digits representing the red, green, and blue components. There are a possible 256 values for red, 256 values for green, and 256 values for blue giving a total of 16,777,216 possible colours.</tags>

17
Q

What is an overflow?

A

A generation of an additional bit from binary addition indicates that the sum has exceeded its maximum value, causing an overflow error where a number is too big to be stored in the computer using its set amount of bits.

18
Q

What is a logical shift?

A

Computer can carry out a logical shift on a sequence of binary numbers. The logical shift means moving the binary number to the left or tot he right. Each shift left is equivalent to multiplying the binary number by 2 and each shift right is equivalent to dividing the binary number by 2. As bits are shifted, any empty positions are replaced with a zero.

19
Q

What is two’s complement?

A

To allow the possibility of representing negative integers we make use of two’s complement. In two’s complement the leftmost bit is changed to a negative value. For an 8-bit number, the value 128 is now changed to -128, but all the other headings remain the same. This means the new range of possible numbers is: -128 (10000000) to +127 (01111111).

20
Q

What is ASCII code?

A

The ASCII code system (American Standard Code for Information Interchange) was set up in 1963 for use in communication systems and computer systems. A newer version of the code was published in 1986. The standard ASCII code character set consists of 7-bit codes that represent the letters, numbers, and characters found on a standard keyboard, together with 32 control codes.

21
Q

What is extended ASCII?

A

Extended ASCII uses 8-bit codes, giving another 128 codes to allow for characters in non-English alphabets and for some graphical characters to be included.

22
Q

What is the biggest disadvantage of ASCII code?

A

The main disadvantage is that it does not represent characters in non-Western languages, for example Chinese characters.

23
Q

What is Unicode?

A

Unicode can represent all languages of the world, thus supporting many operating systems, search engines, and internet browsers used globally. There is an overlap with standard ASCII code, since the first 128 (English) characters are the same, but Unicode can support several thousand different characters in total. ASCII uses one byte to represent a character, whereas Unicode will support up to four bytes per character. The goals of the Unicode is to create a universal standard that covered all languages and all writing systems, produce a more efficient coding system than ASCII, adopt uniform encoding where each character is encoded as 16-bit or 32-bit code, create unambiguous encoding where each 16-bit and 32-bit value always represents the same character, and reserve part of the code for private use to enable a user to assign codes for their own characters and symbols.

24
Q
A