1 + 0 = 1

advertisement
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #1
TOPIC: DATA STORAGE AND MANIPULATION
From syllabus:SECTION 1: Fundamentals of Hardware and Software.
#9: Describe how data are stored and manipulated within the computer;
a) Binary, octal and hexadecimal number systems;
b) Binary addition and subtraction.
c) Integers (positive and negative): sign and magnitude, BCD, two’s complement;
d) Representation of characters, ASCII.
e) Odd and even parity
A) BINARY, OCTAL, HEXADECIMAL NUMBER SYSTEMS.
Page 1
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #2
TOPIC: DATA STORAGE AND MANIPULATION
A) BINARY, OCTAL, HEXADECIMAL NUMBER SYSTEMS.
, octal and hexadecimal.
Page 2
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #3
TOPIC: DATA STORAGE AND MANIPULATION
B) BINARY ADDITION AND SUBTRACTION
Binary addition has four basic rules, the first 3 of which are pretty obvious:
0+0=0
0+1=1
1+0=1
1 + 1 = 0 carry 1.
Page 3
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #4
TOPIC: DATA STORAGE AND MANIPULATION
Using 8 bit two’s complement compute each of the following:
a) 12 - 5
b) 4 – 16
c) -4 - 12
d) -9 + -4
e) -12-5
f) 12-12
__________________________________________________________________________________________
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #5
TOPIC: DATA STORAGE AND MANIPULATION
REPRESENTING INTEGERS
1. State the Binary Coded Decimal of each of the following integers:
a. 358
e.
b. -427
f.
c. 27
g.
d. +309
h.
-620
-332
890
734
2. Convert each of the following to 8 bit sign and magnitude:
a)-25
b)-9
c)15
d)-35
e)33
f)-33
3. Convert each of the following to an 8 bit one’s complement binary number:
a)-25
b)-9
c)15
d)-35
e)33
f)-33
4. Convert each of the following from an 8 bit signed binary to decimal.
a)-25
b)-9
c)15
d)-35
e)33
f)-33
5. Convert each of the following from 8 bit sign and magnitude to decimal:
a) 10000111
b) 00111010
c) 10000001
d) 11000000
6. Convert each of the following from 8 bit two’s complement binary to decimal.
a) 11110101
b) 11110000
c) 10100000
d) 00111010
Page 4
HFCC TEACHER: MRS. VIALVA-SMITH
SUBJECT: INFORMATION TECHNOLOGY
WORKSHEET #6
TOPIC: DATA STORAGE AND MANIPULATION
1) Given that the ASCII representation for ‘H’ is 01001000. What is the ASCII representation of:
a) ‘I’
b) ‘D’
c) ‘K’
d) ‘P’
e) ‘A’
f) ‘C’
2) Using even parity with 8-bit data byte, where the leftmost bit is to be used as the parity bit, which
of the following are valid bit patterns?
a) 00000000
b) 00000011
c) 00000010
d) 10000001
e) 10101011
f) 10101001
3) What is the missing bit given that 8 bit odd parity is used?
a) 1010_111
b) 1111_111
c) 110011_1
d) 000000_1
e) 0011000_
f) 0000001_
Page 5
Download