Data Flashcards

1
Q

How do you find out how a negative number would be represented in two’s complement notation?

A
  1. Write out the positive number in binary
  2. Flip the bits
  3. Add 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you do a logical shift by n places?

A

Move each binary digit n positions to the left or right. Fill empty spaces with 0

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

How do you do an arithmetic shift right by n places?

A

Move each binary digit n positions to the right. Fill the empty spaces with 1

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

What are text and characters represented by?

A

ASCII (American Standard Code for Information Interchange)

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

How many bits does the ASCII contain?

A

7 bits

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

What is an overflow error?

A

When there are too many bits that can be stored in a number

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

What is the formula for image file size in bits?

A

width x height x colour depth

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

What is a sample interval?

A

The time for the intervals during each sample of a sound wave

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

What is a sample rate?

A

The number of samples over a given time period

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

What is the formula for audio file size?

A

file size = sample rate x bit depth x recording length

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

What is lossless compression?

A

The file size is reduced without deleting any data

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

What is lossy compression?

A

The file size is reduced by deleting some data. The original file cannot be restored

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

What are some examples of lossless compression?

A

GIF
PNG

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

What are some examples of lossy compression?

A

MP3
JPG

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