Binary and hex Flashcards

1
Q

Why do computers use binary to represent all forms of data?

A

Any form of data needs to be converted to binary to be processed by a computer(only understands two forms: on or off)
Data is processed using logic gates and stored in registers

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

Explain the difference between the binary and denary number systems

A

Binary
base 2 system
2 digits (0 and 1)
place values are powers of 2

Denary
base 10 system
has 10 digits (0-9)
place values are powers of 10

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

What are the binary place values for a byte?

A

128 64 32 16 8 4 2 1

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

What is the largest value that can be stored in 8 bits?

A

255

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

How many bits in a byte?

A

8

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

How many bits in a nibble?

A

4

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

What is a register?

A

A register is a small amount of internal memory
Used for fast reading and writing
It is temporary/volatile (loses data once there is no power)

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

What is hexadecimal?

A

Base 16 number system
16 choices of digits (0-9, A-F)
Place values are powers of 16

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

Why do we use hexadecimal?

A

Easier for programmers to read and understand
Conversion to binary easier than denary to binary
Takes up less space when displayed or printed
Faster than binary for entering numbers

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

Where is Hexadecimal used?

A

HTML colour codes e.g. red = #FF0000
Display MAC (Media Access Control) addresses e.g. 01-23-45-67-89-AB-CD
Display ASCII or Unicode values e.g. %41 = 65 = A
Display error codes e.g. error #404 page not found
Display memory dumps e.g. 5F 3A 09 F1

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