1. data representation Flashcards

1
Q

how and why computers use binary
to represent all forms of data

A

Any form of data needs to be converted to binary to be processed by a computer
Data is processed using logic gates and stored in registers

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

difference between denary, binary and
hexadecimal number systems

A

Denary is a base 10 system
Binary is a base 2 system
Hexadecimal is a base 16 system

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

positive denary -> positive binary
and vice versa

A

practice

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

positive denary -> positive hexadecimal
and vice versa

A

practice

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

positive hexadecimal -> positive binary
and vice versa

A

practice

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

what is hexadecimal? what is its function

A

base 16 system used to represent binary numbers in a more human-friendly form,A simpler way to remember binary-equivalent values, more possible values with a smaller/ shorter representation, and finally its used normally for colours and error messages

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

adding binary

A

practice

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

subtracting binary

A

practice

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

what is an overflow and why does it happen in binary addition

A

Overflow errors occur when a computer system attempts to occupy its registers with value that is one bit larger than its capacity

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

perform left and right logical shifts

A

practice

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

what happens to the denary value of a binary number when performing a left logical shift

A

multiplies depending on the amount of shift 1= x2

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

what happens to the denary value of a binary number when performing a right logical shift

A

divides depending on the amount of shifts eg 1= /2

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

Use two’s complement to represent positive and negative 8-bit binary integers

A

practice

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

Convert a positive binary or denary integer to a two’s complement 8-bit integer and vice versa

A

practice

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

Convert a negative binary or denary integer to a two’s complement 8-bit integer and vice versa

A

practice

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

how does a computer know that a two’s complement number is negative

A

1 in leftmost value/ digit

17
Q

how do computers represent texts

A

using binary digit, unique to each character so that it can be processed by a computer

18
Q

what is ascii

A

standard code for info interchange, used worldwide to represent characters in a computer system.
uses 7 bits to encode characters, can represent 128 characters

19
Q

what is unicode

A

uses 16 bits, developed after ascii because some languages use their unique characters, and didnt fit the character set provided by ascii

20
Q

what are digital sounds used by computers made up of?

A

digital waves, a sequence of ‘discrete’ signal meaning a complex series of ‘on’ and ‘off’ instructions.

21
Q

whats the difference between analogue and digital waves

A

analogue are what humans use as sound and digital is what computers use
analogue waves are smooth and digital waves arent

22
Q

what is sampling

A

the process in which a computer converts analogue waves into digital waves, to do this it takes measurments of; sample resolution and sample rate

23
Q

what is sample resolution

A

The number of bits used per sample.

24
Q

what is sample rate

A

The number of samples of an analogue audio signal taken in a second

25
Q

what happens to file size when we increase resolution

A

increases

26
Q

what happens when we increase the frequency/ sample rate of a sample, in regards to the file

A

file increases

27
Q

how are images stored in a computer

A

using binary digits, and pixels
pixels are the smallest identifiable measurements in an image, each pixel is given a binary number that relates to a specific colour

28
Q

what is image resolution

A

the number of pixels within an image, and this is normally described using the width and height of the image

29
Q

what happens when you increase the number of pixels in an image

A

the higher the resolution/ clearer better image, and the larger the file size

30
Q

give the units for storing data and what “they are made of”eg how many bits in a byte

A

bit- binary digit 1 or 0 (b)
nibble- 4 bits
byte- 8bits (B)
kibibyte- 1024 bytes (KiB)
mebibyte- 1024 kibibytes (MiB)
gibibyte- 1024 mebibytes (GiB)
tebibyte- 1024 gibibyte’s (TiB)
pebibyte- 1024 tebibyte’s (PiB)
exibibyte- 1024 pebibyte’s (EiB)

31
Q

what is the formula for image file size

A

(image width × image height) × bit depth

32
Q

what is the formula for sound file size

A

= sample rate × sample resolution × length of track

33
Q

what is 1KHz

A

1000 samples per second

34
Q

what is compression

A

The act of reducing the logical size of a file to something much smaller than the original size, to save storage space and improve processing time. by applying an algorithm

35
Q

benefits of compressing a file

A

-less bandwidth required (less time loading it)
– less storage space required
– shorter transmission time (sending it to someone)

36
Q

what is lossy compression

A

permanently removes some data from the original source file, meaning lower quality files
uses an algorithm that looks to remove detail that is barely noticeable
usedin files such as mp3, jpgs
not used for text documents

37
Q

what is lossless compression

A

does not lose any data from original file, produces larger files that lossy but better quality,does not remove quality
uses an algorithm that looks for repeat data, this can be groups and categorised and a token be given for where each group will be used in the reconstruction
often used in file texts and images eg. docx gifs pngs