CASSASDSAD
CASSASDSAD
BINARY DECIMAL
a. 1001101101 621
b. 101111 47
c. 110011001100 3276
DECIMAL BINARY
a. 73 1001001
b. 127 1111111
c. -63 -111111
DECIMAL
A. 7778 511
B. 10408 544
C. 3FF16 1023
A. 1316 +2816 3B
B. 1100112 + 0011102 1000001
C. 278 + 318 60
OCTAL HEXADECIMAL
A. 42 22
B. 63 33
C. 3047 627
C. Complete the table below with the equivalent value in the table below.
D. 8.
Decimal Binary Excess3 2421 Biquinary Octal Hexadecimal
0 0 0011 0000 0100001 0 0
1 1 0100 0001 0100010 1 1
2 10 0101 0010 0100100 2 2
3 11 0110 0011 0101000 3 3
4 100 0111 0100 0110000 4 4
5 101 1000 0101 1000001 5 5
6 110 1001 0110 1000010 6 6
7 111 1010 0111 1000100 7 7
8 1000 1011 1110 1001000 10 8
9 1001 1100 1111 101000 11 9
10 1010 1101 - - 12 A
11 1011 1110 - - 13 B
12 1100 1111 - - 14 C
13 1101 10000 - - 15 D
14 1110 10001 - - 16 E
15 1111 10010 - - 17 F
3. How many bytes are needed to represent the value 846,569 in BCD? 3 bytes
4. A typical PC uses a 20-bit address code for its memory locations.
(a)How many hex addresses are needed to represent a memory address?
(b)What is the range of the addresses?
(c) What is the total number of memory locations?
a. 5
b. 0000016 to FFFFF16
5
c. 16 = 1,048,576
5. An operator is typing in a BASIC program at the keyboard of a certain microcomputer. The computer converts each keystroke
into its ASCII code and stores the code as a byte in memory. Determine the binary strings that will be entered into memory
when the operator types in the following BASIC statement:
Ans.
a. G 01000111
b. O 01001111
c. T 01010100
d. O 01001111
e. (space) 00100000
f. 2 00110010
g. 5 00110101
If X > 0
Then we have:
325 = 3 * X² + 2 * X¹ + 5 * X°
325 = 3X² + 2X + 5
42 = 4*X¹ + 2*X°
42 = 4X+ 2
And
42 = 4X² + X + 1
3X² - 4X² + 2X + 4X - X + 5 + 2 - 1 = 0
X² - 6X + X - 6 = 0
X(X - 6) + 1( X - 6) = 0
(X + 1)(X - 6) = 0
X + 1 = 0 or X - 6 = 0
X = -1 or X = 6
But X>0
X=6
2. The king receives 64 gold coins in taxes but has reason to believe that one is counterfeit. He summons you to identify the
fake coin. You have a balance that can hold coins on each side. How many times do you need to use the balance to find the
lighter, fake coin? Explain.
The simplest way is to split the 64 coins into two lots of 32 and compare them.
You can find the light fake coin in only 4 weighings on a balance scale.
Compare the 21 piles. If one is lighter again split them into three piles of 7.
If the two 2 piles are equal then the the fake in in the 3 pile.
Compare two of the coins to find the fake (if equal it must be the other one)
If the 21 piles are equal choose the 22 pile and split it into two piles of 7 and 8 left out
Compare two of the 7 piles. If one is lighter follow the instructions above.
To test the 8 pile split it into two 3 piles and a 2 pile and follow the previous instructions.