Data representation Flashcards

(45 cards)

1
Q

How many digits is hexadecimal made up of?

A

16 –> 1-9 and A-F

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

What is hexadecimal referred to?

A

Base-16 number system

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

How many bits of binary data can one hexadecimal digit represent?

A

4 (a nibble)

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

What are examples of hexadecimal being used?

A

-MAC addresses
-Colour values
-Short representation of binary numbers
-IP (version 6 only) addresses

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

Why does data have to be converted to binary to be processed by a computer?

A

-computers are built using switches that can either be on or off, which fits the binary number system (1’s and 0’s)
-A quicker process time

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

Define binary data

A

-represented by only 1 and 0.

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

What is 1000 byte equal to

A

1 Kilobyte

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

What is 1000 kilobyte equal to (Megabytes)

A

1 Megabyte

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

What is 1000 Megabyte equal to
(Gigabytes)

A

1 Gigabyte

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

What is 1 KiBi byte equal to
(bytes)

A

1024 Bytes

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

Convert the following into denary:

a)10101110
b)00010001
c)10011111
d)00100111

A

a)174
b)17
c)159
d)39

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

Convert the following into binary:

a)10
b)257
c)19
d)39

A

a)1010
b)100000001
c)10011
d)111001

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

How to convert denary into hexadecimal

A

-Convert denary into binary
- Split the binary number into groups of four
-For each group of four, assign it the the hexadecimal value (e.g 1010–>A or 1000–>8)

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

How to add binary number

A

0+0=0
1+0=1
1+1=0 and 1 carry forward
1+1+1=1 and 1 carry forward

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

What is a overflow error

A

When a binary digit is needed to carry forward to the 9th bit but the answer only allow a 8 bit answer

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

What is the maximum number for a 8 bit binary number

A

255

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

What does binary shift do and what’s the difference between left shift and right shift

A

Left shift is multiplication
while
right shift is division

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

What does shifting 2 place to the left means

A

Multiplying by 4

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

What does shifting 3 place to the right means

A

Dividing by 8

20
Q

How to represent a negative number

A

By a 2’s complement

21
Q

How to perform a 2’s complement

A

Reversing a binary number ( 0–>1 and 1–>0)

And then add 1 to the last digit of the reversed binary

22
Q

What is ASCII

A

American Standard code for information interchange

Which will translate English language into binary/hexadecimal value

23
Q

What is Unicode

A

An interchange system which translate most language/emoji in the world into binary/hexadecimal

24
Q

What is the difference between ASCII and Unicode

A

ASCII is only used for the English Language while Unicode has many

ASCII have 7 bit per char but Unicode have 16 bit

ASCII have only 128 char that include everything in the English language and 1-9 and symbols

Unicode has over 65,000 char for different language and also math symbol and emoji

Unicode takes up more space in the file

Unicode is backwards compactable with ASCII (so first 128 char are the same in both Unicode and ASCII)

25
What is a pixel
one small square of illumination that will create a image combined with different pixel of different colour in a bitmap (2D matrix)
26
How is colour added to a pixel
by using RGB at different intensities
27
What is colour depth
-number of bits used to represent the colour of a pixel e.g 1 bit pixel --> colour depth =2 3 bit pixel--> colour depth=8 2^ bit pixel
28
What is meant by image resolution and how does it affect the quality
-level of detail in an image The higher the resolution the higher the quality
29
What is image meta data
It is information about the image itself that is provided by the image itself. An example of this is the time the image is taken or creation day. Another example is how the image is organising.
30
Example of meta data
Camera setting data created file size/type description Location of taken
31
What type of wave are sound recorded in and what type of wave do computer read
-recorded in analogue wave -computers read as digital waves
32
What is a ADC
Analogue digital convertor for sound wave e.g microphone
33
How is a sound wave splited
Quantisation
34
What is bit rate
-how many bits are sampled at a time
35
Why do you need file compression
1. To save storage space on storage devices/ cloud storages 2. Media files occupying less space on the web service can make a website load faster 3. Data transmission becomes faster over a network 4. Makes it shareable
36
What are the two type of compression
Lossy and Lossless
37
Describe Lossy compression for image and sound file
Some data is removed completely to decrease file size -For an image, the **colour depth will decrease as the bit depth will** decrease..This means there will less shade of colour and the variety of colour will decrease -For audio, the **sample rate** taken in by the analogue-digital convertor decreases to decrease the **bit depth of the audio** Irreversible
38
Describe Lossless compression
Used in file that contain important data which can't be removed Reconstruct the data in another less space needed form Won't decrease the quality though Though it will decrease the file less than lossy
39
One example of Lossless compression and how does it compress
Run Length Encoding Compress repeating data into a smaller version e.g (AAAAABBBC into 5A3BC)
40
File format for pictures
.JPEG
41
File format for text
.txt
42
File format for sound
.mp3
43
File format for video
.mp4
44
What is decomposition
Breaking down a bigger problem into smaller sets of problem
45
What is the four stage to a software development life cycle
Analysis Design Coding Testing