Binary unit 3 Flashcards

(13 cards)

1
Q

Why do computers use binary?

A

Computers use binary because they process data using electrical signals that have two states: on (1) and off (0).

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

What is binary used to represent in a computer?

A

Numbers, text, sound, graphics, and program instructions.

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

What is the range of values in 8-bit binary?

A

0 to 255 (since 2⁸ = 256 values).

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

What happens in an overflow error?

A

It occurs when a calculation exceeds the maximum value a binary system can store.

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

What is a left binary shift used for?

A

Multiplying a binary number by powers of 2.

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

What is a right binary shift used for?

A

Dividing a binary number by powers of 2.

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

What are the two methods to store signed integers?

A
  1. Sign and magnitude
  2. Two’s complement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the advantage of two’s complement?

A

It allows for simpler binary arithmetic with both positive and negative numbers.

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

Why is hexadecimal used?

A

It’s easier to read and remember than long binary numbers and represents binary more compactly.

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

How many binary digits does one hex digit represent?

A

4 binary digits (bits).

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

What is the hexadecimal equivalent of binary 1111 0000?

A

F0 (F = 1111, 0 = 0000)

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

What are file sizes measured in?

A

Bytes, where 1 byte = 8 bits.

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

How do you calculate the file size of an image?

A

File size = Width × Height × Colour depth (bits per pixel) ÷ 8

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