Data Flashcards

1
Q

Why do computers use binary

A

To represent data and program instructions

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

Max number of patterns that can be represented by a binary pattern of a given length

A

2 ^ n

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

Unsigned integers

A
  • a positive or negative number that has been assigned a + or - value.
  • unsigned integers aren’t assigned and therefore are positive
  • sign is always represented using the most significant bit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Two’s complement

A

most common way of representing signed binary integers. only one way of representing zero
it follows the rules of sign and magnitude - sign is the left most bit, and 0 = positive and 1 = negative

Arithmetic works in two’s complement

Convert MSB to negative and then work out the number in denary

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

Denary to 8-bit binary

A

use ur brain for this one

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

Binary addition

A

0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1

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

Logical shift

A

Moves a set of bits either right or left. Vacant bits filled with 0s.

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

Arithmetic shift

A

Multiplying and dividing binary numbers. Sign bit preserved

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

Left shift

A

Multiplication

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

Right shift

A

Division

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

Overflow

A

when the result of a calculation is too large to be represented in the number of bits allocated

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

7-bit ASCII

A

A = 65

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

Bitmap images

A

A file format used to store digital images

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

Analogue sound

A

Computer captured sound waves stored in binary. Most commonly stored with sampling

Samples the sound at regular intervals (sample rate)
Duration and sample resolution (bit depth) all impact the sound quality and size of file

ADC - analogue to digital converter. Converts electrical signals to digital values
DAC - Digital to analogue converter. Converts digital values back to analogue electrical signals

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

Limitations of binary storage

A

Constrained by the number of available bits

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

Data compression

A

making a data file smaller to fit in a computer

17
Q

Lossy

A

Some data is lost during the compression process

18
Q

Lossless

A

Allows data to be exactly reconstructed from compressed data

19
Q

Terminator

A

Goes at beginning and end, and signifies termination of code. it is an oval

20
Q

Processes

A

Any action that needs to be carried out - Rectangle

21
Q

Data

A

Used for input and output of a value. Parallelogram.

22
Q

Decisions

A

Diamond, each side is a different ‘fork’ or pathway. Similar to Circuit Wizard.

23
Q

Arrow

A

Joins symbols together and shows direction of flow. Needs an arrowhead!!

24
Q

Pixel

A

Smallest element in an image

25
Q

Colour depth

A

1 bit colour depth = 2 colours
4 bit colour depth = 16 colours
8 bit colour depth = 256 colours

26
Q

Image resolution

A

Number of pixels that can be contained per inch

27
Q

Metadata

A

Data about data e.g. Colour depth, file format

28
Q

File size calculations

A

Sample rate * Sample resolution * Duration = File size