Arithmetic with integers

advertisement
Practice – Week 3
Computing Concepts and Practice
2010
Binary and Hex practice
Fill in the table:
As Decimal
As Binary
As Hex
1
1
1
2
10
2
1010
a
3
4
5
6
7
8
9
10
11
b
12
13
14
15
16
10
17
18
18
20
Page 1 of 2
CO332
Bob Keim
Practice – Week 3
Computing Concepts and Practice
2010
From the exam June 2007
Q1(d) What does the number 1A in hexadecimal represent expressed in decimal
notation?
How would the number 16 in decimal notation be represented in hexadecimal
notation? [1 mark]
From the exam June 2006
Q1(e) What is the number 15 written in binary notation (just using as digits 0 and
1) [1 mark]
______________________________________________________________________
Without using the table on the other side, calculate what is (101) )Base 2 in decimal?
Check your computation using the table.
Without using the table on the other side, calculate what is (10101)Base 2 in decimal?
Check using the table.
Add the binary (10101)Base 2 and (101) )Base 2.. Check your result in decimal.
Subtract (101)Base 2 from (10101)Base 2 and check your result in decimal.
Multiply (101)Base 2 by (11)Base 2. Check your result in decimal.
______________________________________________________________________
There is, as you probably are aware, a Calculator available on your computer:
Start > Accessories > Calculator
It has some useful functionality: Open the Calculator
Select the View menu > Select the Scientific menu item
At the moment, Dec (for decimal – our usual baseTEN number system) is selected.
Hex means “hexadecimal” or baseSIXTEEN. Oct means “octal” or baseEIGHT.
Bin means “binary” or baseTWO
Explore changes between these systems.
Page 2 of 2
CO332
Bob Keim
Download