Topic 2: Data Flashcards

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

Why is binary used?

A

Components inside computers have billions of transistors. Binary is used to represent the transistors inside the component. Transistors can be on or off (1 or 0).

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

Von Neumann architecture

A

A structure in which the hardware is connected and organised.
It consists of Main Memory and a Central Proecessing Unit interconected by buses.

           Main Memory
       (Read)!\_\_\_\_\_¡(Write) Input --> Central Proecessing Unit --> Output The CPU reads and writes data & program instructions to and from main memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Overflow

A

When the result of a binary calculation requieres more bits than are available in the computer hardware (register)

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

Two’s complement, denary to binary

A

Remove the - sign
Convert the number to binary
Flip the bits
Add 1

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

Two’s complement, binary to denary

A

Remove 1
Flip the bits
Convert to denary
Add a negative sign (if the original number started with a 1)

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

Logical shifts

A

When doubling, shift/move all bits to the left
When halving, shift/move all bits to the right

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

Bit

A

Binary digit

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

Image file size formula

A

File size(bits) = width(px) x height(px) x colour depth(bits)

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

Hexadecimal

A
  • Used to avoid errors when manipulating numbers
  • Represend binary numbers using smaller digits (1 hexadecimal digit = 1 nibble)
  • Computers don’t process hexadecimal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Units

A

kilobit - 1000 bits
megabit - 1000^2 bits
gigabit - 1000^3 bits

kilobyte - 8 x 1000 bits
megabyte - 8 x 1000^2 bits
gigabyte - 8 x 1000^3

kibibyte - 1024 bits
mebibyte - 1024^2 bits
gibibyte - 1024^3 bits

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

Compression

A

Reduce file sizes by repackging or removing some data

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

Lossless compression

A

Reduce file size while retaining the exact meaning of the original data.

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

Lossy compression

A

It reduces file size by permanently deleting some of its data.

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

How is text represented

A

Characters in texts

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

How are characters in text represented

A

Using the ASCII table, each character has a unique bit pattern.
Is a 7-bit code, there are 128 sequences/patterns.

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

How do computers record sound

A

With a microphone (or a recording device) a computer will take samples at a fixed interval (usually thousands of samples per second), it will then convert these values into binary to be stored in a file.

17
Q

Audio file size formula

A

file size (bits) = sample rate(Hz) x bit depth(bits) x recording length (seconds)

18
Q

Signed and Unsigned integer

A

An unsigned integer has no positive or negative sign, a signed one does.
Signed: -8, +8
Unsigned: 8

19
Q

Flowchart symbols

A

“Sausage” - Start/Stop
Rectangle - Process
Rhombus - If/elif/else (conditionals)
Parallelogram - Input / Output
Rectangle with vertical borders - Subprograms

20
Q

Iteration

A

Repetition of code

21
Q

Decomposition

A

Breaking down a big problem into smaller parts