Professional Documents
Culture Documents
computerized maths
computerized maths
computerized maths
391,77910
Decimal to Binary
DIVISOR.......DECIMAL.......REMAINDER
2 391,779 1
2 195,889 1
2 97,944 0
2 48,972 0
2 24,486 0
2 12,243 1
2 6,121 1
2 3,060 0
2 1,530 0
2 765 1
2 382 0
2 191 1
2 95 1
2 47 1
2 23 1
2 11 1
2 5 1
2 2 0
2 1 1
0
ANS= 1011111101001100011 binary
QUESTION 2
A.) 0 1 0 0 0 1 0 0 bin
+ 0 0 1 0 1 1 0 0 bin
ANS 0 1 1 1 0 0 0 0 bin
B.) 0 1 1 1 0 1 1 0 bin
- 0 0 1 1 1 1 0 1 bin
ANS 0 0 1 1 1 0 0 1 bin
C.) 1 1 0 1 1 1 0 0 bin
- 0 0 1 0 1 1 1 0 bin
ANS 1 0 1 0 1 1 1 0 bin
QUESTION 3
A.) 146 dec to binary
Solu
DIVISOR.......DECIMAL.......REMAINDER
2 146 0
2 73 1
2 36 0
2 18 0
2 9 1
2 4 0
2 2 0
2 1 1
0
ANS: 146dec = 100110010bin
QUESTION 4
ANS:
Conditional probability is the probability of an event occurring given that another event has
already occurred. In other words, it's the likelihood of one event happening, given that we know
some information about the occurrence of another event.
It can be mathematically represented by the equation below:
P(A∣B)= P(A∩B)/P(B)
Where;
P(A∣B)= is the conditional probability of event A happening and when event B has happened
P(A∩B) = is the probability that both events A and B have occured
P(B) = is the probabilty of event B
P(A) = is the probabilityof event A
Example
QUESTION 5
A.) 011011bin to dec
Solu
0^5 1^4 1^3 0^2 1^1 1^0 bin
(0*2^5)+(1*2^4)+(1*2^3)+(0*2^2)+(1*2^1)+(1*2^0)
(0*32)+(1*16)+(1*8)+(0*4)+(1*2)+(1*1)
0+16+8+0+2+1
ANS:27dec
QUESTION 7
A.) 01101101 bin to hexadecimal
Solu
bin to hexadecimal
0110..1101
0110 = 6
1101 = D
QUESTION 8
A.) 0 1 0 1 bin
+ 0 0 0 1 bin
0 1 1 0 bin
bin to dec
(0*2^3) + (1*2^2) + (1*2^1) + (0*2^0)
(0*8) + (1*4) + (1*2) + (0*1)
0+4+2+0
ANS: 6dec
B.) 1 1 0 1 bin
+ 1 1 1 0 bin
11 0 1 1 bin
bin to dec
(1*2^4) + (1*2^3) + (0*2^2) + (1*2^1) + (1*2^0)
(1*16) + (1*8) + (0*4) + (1*2) + (1*1)
16+8+0+2+1
ANS: 27dec
C.) 0 1 1 1 bin
+ 1 0 0 0 bin
1 1 1 1 bin
bin to dec
(1*2^3) + (1*2^2) + (1*2^1) + (1*2^0)
(1*8) + (1*4) + (1*2) + (1*1)
8+4+2+1
ANS: 15dec
D.) 0 1 1 1 bin
+ 1 0 1 0 bin
10 0 0 1 bin
bin to dec
(1*2^4) + (0*2^3) + (0*2^2) + (0*2^1) + (1*2^0)
(1*16) + (0*8) + (0*4) + (0*2) + (1*1)
16 + 0 + 0 + 0 + 1
ANS: 17dec
Question 9
A.) 0 1 0 1 bin
- 0 0 0 1 bin
0 1 0 0 bin
bin to dec
(0*2^3) + (1*2^2) + (0*2^1) + (0*2^0)
(0*8) + (1*4) + (0*2) + (0*1)
0+4+0+0
ANS: 4dec
B.) 1 1 0 1 bin
- 0 1 1 0 bin
0 1 1 1 bin
bin to dec
(0*2^3) + (1*2^2) + (1*2^1) + (1*2^0)
(0*8) + (1*4) + (1*2) + (1*1)
0+4+2+1
ANS: 7dec
C.) 0 1 0 1 bin
- 0 0 1 0 bin
0 0 1 1 bin
bin to dec
(0*2^3) + (0*2^2) + (1*2^1) + (1*2^0)
(0*8) + (0*4) + (1*2) + (1*1)
0+0+2+1
ANS: 3dec
D.) 0 1 1 1 bin
- 0 0 1 0 bin
0 1 0 1 bin
bin to dec
(0*2^3) + (1*2^2) + (0*2^1) + (1*2^0)
(0*8) + (1*4) + (0*2) + (1*1)
0+4+0+1
ANS: 5dec
QUESTION 10
Solu
Word = "COMPUTER"
Repeated words = none or zero
Number of arrangements = n!
where n = length of the word
Therefore, = 8!
= 8*7*6*5*4*3*2*1
= 40,320 ways