Binary And Hex (Ch8) (M1) Flashcards

1
Q

What is denary?

A

Denary is the base 10 number system that we are used to using, when working with number

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

What is binary?

A

Binary is the base 2 number system that a computer uses to represent numbers, referring to the on and off states of electrical current in a computer system

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

What is a bit?

A

A bit is a single binary digit consisting of 0 or 1. The smallest unit of measurement for computer data.

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

What does the CPU do?

A

The Central Processing Unit (CPU) of a computer performs calculations by using transistors acting as switches. Each switch is either on or off.

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

If the input is on, what number do we represent this with?

A

If the input is on, then we represent this with a 1

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

If the input is off, what number do we represent this with?

A

If the input is off, then we represent this with a 0

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

What happens if your final addition is 1+1 or 1+1+carry 1? Why?

A

If your final addition is 1+1 or 1+1+carry 1, this requires a carry, meaning there needs to be a ninth bit. This results in an overflow error.

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

What is a binary shift?

A

A binary shift is when the CPU shifts the entire number at least one place to the left or right

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

What is the effect of a left shift?

A

A left shift adds a 0 to the end. It multiplies the number by 10.

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

What is the effect of a right shift?

A

A left shift adds a 0 to the start. It divides the number by 2.

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

What is the problem with right shifts?

A

Using right shifts leads to a loss of accuracy

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

What is hexadecimal?

A

Hexadecimal (also known as base 16), is another number system that we can use when programming and working with large numbers.

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

What digits and letters does hexadecimal use?

A

Hexadecimal uses digits 0 to 9 and letters A to F

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

Give one advantage of hexadecimal

A

Hexadecimal provides a shorthand notation for large binary numbers and is easier for a human to understand.

Due to hex numbers being shorter, there’s less chance of input errors.

It’s easier to convert between binary and hex than binary and denary.

Hexadecimal is used because large numbers can be represented with fewer digits.

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

Why is hexadecimal used?

A

Hexadecimal is used because large numbers can be represented with fewer digits.

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

What is the process of converting a binary number to hexadecimal?

A

Converting binary to hexadecimal:

First, split the binary number into nibbles
Draw a table with columns labelled 1, 2, 4, 8, then repeat the values for as many nibbles as you require
Fill in the table with your binary number
For each nibble, add up the numbers with a 1 in the column, then convert this value to hex
Put the hex values together

17
Q

What is the process of converting hexadecimal to a binary number?

A

Converting hexadecimal to binary:

Find the denary value of each character
Draw a table with columns labelled 1, 2, 4, 8, then convert the denary values into binary
Put the nibbles together to get the equivalent binary number