Chapter 20 Digital data Flashcards

1
Q

Why must data be converted to binary format?

A

So the data can be stored and understood by computers.

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

Convert 10011 to denary.

A

19

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

Convert 46 to binary.

A

101110

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

What is a bit?

A

A bit is a binary digit, it is the smallest amount of storage in a computer. A bit is a 1 or 0.

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

What is a nibble?

A

A nibble is 4 bits.

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

What is a byte?

A

A byte is 8 bits.

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

What is a kilobyte?

A

A kilobyte is 1024 bytes.

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

What is a megabyte?

A

A megabyte is 1024 kilobytes.

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

What is a gigabyte?

A

A gigabyte is 1024 megabytes.

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

What is a terabyte?

A

A terabyte is 1024 gigabytes.

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

What does ASCII stand for?

A

It stands for the American Standard Code for Information Interchange.

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

What was the original ASCII code table?

A

The original ASCII code table was 7-bit, meaning it used seven bits to represent text and there were 128 characters in the table. These characters include the letters A to Z and other common characters.

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

What was the second ASCII code table and what were its problems?

A

It was an 8-bit code table that contains 256 (2⁸) characters, making use of the 8th bit in a byte. The characters in the 8-bit ASCII table include all those in the 7-bit table and regional characters and symbols.

The 8-bit ASCII table was limited because of its ability to only represent 256 characters meaning languages with many more characters couldn’t be represented fully.

Also, the characters 128 to 255 were used differently for different regions, leading to incompatibility between character sets.

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

What was designed to solve the problem of ASCII code and explain it?

A

Unicode is a 32-bit character-encoding standard made to solve the problem of the limitations of ASCII code.

Unicode provides a unique number for every character as the current Unicode set contains over 100,000 characters.

All ASCII characters are part of Unicode and they have the same numbers as in the ASCII character set.

Characters are called ‘code points’.

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

What are 3 encoding methods?

A

UTF-32: fixed length encoding using 32 bits regardless of the character. This is inefficient when compared to ASCII, which represents a character in 1 byte.

UTF-16: A variable-length encoding system that uses a minimum of 2-byte number units per character.

UTF-8: A variable-length encoding system that uses 1 byte for the common characters. ASCII character codes are unchanged so ASCII text is also UTF-8. Some other characters are encoded with 2 or more bytes. This type of encoding is backward compatible with ASCII coding.

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

What is hexadecimal, and what is it used for?

A

It is a numbering system that uses the base 16. Hexadecimal values are expressed as the digits 0-9 and the letters A-F, giving 16 possibilities.

Hexadecimal is used to represent colour codes on computers. The three primary colours (red, green, blue) have two-digit hexadecimal codes, ranging from 00 to FF (0 to 255 in decimal). These are placed together to form a six-digit hexadecimal code.

Hexadecimal can be used to simplify long binary patterns. One hexadecimal digit can represent a group of 4 bits.

E.g.

1011 1000 =
B 8

17
Q

Add these 2 binary numbers together and describe what happens as a result of this calculation?
11011111
+ 11101100
————–

A

Answer: 1 11001011
^
|
Overflow

Overflow occurs when the magnitude of the number is greater than the maximum number that can be represented by the computer. The left-most 1 cannot be stored and is lost, thus the result generated by this calculation is incorrect.

18
Q

What is numeric?

A

Numeric is a data type and includes:

Integers - can be a positive or negative whole number, has no decimal or fractional parts.

Real numbers:

Include whole numbers (integers) and numbers with decimal/fractional parts, can be positive or negative.

19
Q

What is date/time?

A

It is a data type and includes:

Long date: displayed as Saturday 20th April 2024.

Medium date: displayed as dd-mmm-yyyy e.g. 20-Apr-2024.

Short date: displayed as dd/mm/yyyy, e.g. 20/04/2018.

Long time: displayed as HH:MM:SS, e.g. 16:20:09

Medium time: displayed as HH:MM PM/AM, e.g. 04:20 PM

Short time: displayed as HH:MM, e.g. 16:20

20
Q

What is character/string?

A

It is a data type.

A character is a single letter or digit represented by the codes from the character set.

ASCII is a character set based on each character being represented uniquely by a string byte.

A string is textual data in the form of a sequence of characters.

21
Q

What is AND?

A

AND is a logical operator and can have any number of outputs. All inputs must be equal to 1 or true for an overall output of 1 or true to be obtained.

Example:

X Y X AND Y

0 0 0
0 1 0
1 0 0
1 1 1

22
Q

What is OR?

A

OR is a logical operator and can have any number of outputs. At least one input must be equal to 1 or true for an overall output of 1 or true to be obtained.

X Y X OR Y
0 0 0
0 1 1
1 0 1
1 1 1

23
Q

What is NOT?

A

NOT is a logical operator and has one input. The output is the opposite value to the input.

Example:

X NOT X
0 1
1 0