S3 Data Representation Flashcards

1
Q

What does a NOT gate look like?
Truth table?

A

Input —| >o— Output

Input Output
0 1
1 0

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

What does an AND gate look like?
Truth table?

A

_______________
Input A—| )___Output
Input B—|____ )

A B Output
0 0 0
1 0 0
0 1 0
1 1 1

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

What does an OR gate look like?
Truth table?

A

_______________
Input A—| \___Output
Input B—|____/

A B Output
0 0 0
1 0 1
0 1 1
1 1 1

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

What does an XOR gate look like?
Truth table?

A

_________________
Input A—\ \ \___Output
Input B—/ / _____/

A B Output
0 0 0
1 0 1
0 1 1
1 1 0

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

What is a logic gate?

A

Circuits built into computer chips
- they receive binary data
- apply a Boolean operation
- output a binary resume

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

Symbol for A AND B

A

A . B

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

Symbol for NOT A

A

Ā

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

Symbol for A OR B

A

A + B

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

Symbol for XOR B

A

A (+) B

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

Convert 300 kB to bits

A

300kB = 300 x 1000 = 300 000 bytes
300 000 bytes = 300 000 x 8
=2 400 000 bits

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

What is the order of the sizes of bits and bytes?

A

Bit
Nibble
Byte
Kilobyte
Megabyte
Gigabyte
Terabyte

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

What is 1+1 in binary?
What is 1+0 in binary?

A

10
01

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

What is 1011 after having a 2 place shift left?
What is the effect of this shift?

A

10
÷4

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

Why do programmers prefer hex?

A
  • simpler to remember larger numbers
  • Due to hex being shorter, less chance of input errors
  • easier to convert between binary and hex than binary and decimal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is hex 87 in decimal?

A

8 x 16 = 128
7 x 1 = 7
128 + 7 = 135

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

What is decimal 106 in hex?

A

106 ÷ 16 = 6 r 10
= 6A

17
Q

What’s the largest number in hex?

A

FF
255

18
Q

Convert binary 1011 1001 to hex

A

1011 1001
1011 = 11(dec) = B
1001 = 9
=B9

19
Q

What is hex 8C in binary?

A

8 = 1000(binary)
C = 12(dec) = 1100
= 1000 1100

20
Q

Define character set

A

Collections of characters that a computer recognises from their binary representation.

21
Q

Up to what number are ASCII and Unicode the same?

A

128

22
Q

How many different characters can 7 bit ASCII represent?

A

128

23
Q

How many bits are used per character in ASCII? What about Unicode?

A

7-bits
Extended = 8 bits
Multiple bytes

24
Q

Does Unicode cover all languages?

A

No
It covers all major languages

25
Q

What is the total amount of colours for a 4 bit image?

A

2⁴ = 16 colours

26
Q

How do you work out the file size of an image? (How many bits it will take up)

A

File size (in bits) = image size x colour depth

Image size = width x height

27
Q

Define pixel

A

Picture element, a single point in an image

28
Q

Sound waves are recorded as an analogue signal. What is an analogue signal?

A

Pieces of continuously changing data

29
Q

How do analogue to digital converters work?

A

1) Analogue sound is received by a microphone
2) This is converted to an electrical analogue signal
3) The signal amplitude is sampled at regular intervals
4) The values are rounded to a level
5) The values are stored as a series of binary numbers

30
Q

Define sample rate/frequency

A

How many samples you take per second(Hz/kHz)

31
Q

Define sample resolution

A

The number of bits used to store each sample

32
Q

How do you calculate bit rate?

A

Bit rate = sample rate x sample resolution

33
Q

How do you calculate the size of a sound file?

A

File size (bits) = Sample rate (Hz) x sample resolution x seconds

Or bit rate x seconds

34
Q

Define hertz

A

Samples per second

35
Q

What are 4 reasons to compress files?

A
  • less storage space
  • streaming and downloading files from the internet faster as they take up less bandwidth
  • web pages load faster
  • emails have restrictions on file size.
36
Q

Define Lossy compression

A

Permanently removing data from a file to reduce it’s size.

37
Q

Define lossless compression

A

Temporarily removing data to store a file, then returning it to it’s original state when opened

38
Q

Pros of lossy compression

A
  • Greatly reduced file size
  • Takes up less bandwidth
  • Commonly used, most software can read
39
Q

Cons of lossy compression

A
  • cannot be restored to original state