Binary And Hex (Ch8) (M1) Flashcards
What is denary?
Denary is the base 10 number system that we are used to using, when working with number
What is binary?
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
What is a bit?
A bit is a single binary digit consisting of 0 or 1. The smallest unit of measurement for computer data.
What does the CPU do?
The Central Processing Unit (CPU) of a computer performs calculations by using transistors acting as switches. Each switch is either on or off.
If the input is on, what number do we represent this with?
If the input is on, then we represent this with a 1
If the input is off, what number do we represent this with?
If the input is off, then we represent this with a 0
What happens if your final addition is 1+1 or 1+1+carry 1? Why?
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.
What is a binary shift?
A binary shift is when the CPU shifts the entire number at least one place to the left or right
What is the effect of a left shift?
A left shift adds a 0 to the end. It multiplies the number by 10.
What is the effect of a right shift?
A left shift adds a 0 to the start. It divides the number by 2.
What is the problem with right shifts?
Using right shifts leads to a loss of accuracy
What is hexadecimal?
Hexadecimal (also known as base 16), is another number system that we can use when programming and working with large numbers.
What digits and letters does hexadecimal use?
Hexadecimal uses digits 0 to 9 and letters A to F
Give one advantage of hexadecimal
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.
Why is hexadecimal used?
Hexadecimal is used because large numbers can be represented with fewer digits.