computerized maths

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

QUESTION 1

A.) 5FA63hex to binary


Solu
Hex to decimal
 5^4F^3A^26^13^0hex
 (5*16^4) +(F*16^3) +(A*16^2) +(6*16^1) +(3*16^0)
 (5*65,536) +(15*4,096) +(10*256) +(6*16) +(3*1)
 327,680+61,440+2,560+96+3
 391,77910

 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

B.) 01110001110100010001101 bin to hexadecimal


Solu
0011..1000..1110..1000..1000..1101 bin
binary to Hexadecimal
0011 = 3
1000 = 8
1110 = E
1000 = 8
1000 = 8
1101 = D
ANS 38E88D

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

B.) 4012 dec to hexadecimal


Solu
dec to binary
DIVISOR.......DECIMAL.......REMAINDER
2 4,012 0
2 2,006 0
2 1,003 1
2 501 1
2 250 0
2 125 1
2 62 0
2 31 1
2 15 1
2 7 1
2 3 1
2 1 1
0
ANS: 4012dec = 111110101100bin
binary to hexadecimal
1111..1010..1100
1111 = F
1010 = A
1100 = C
Final ANS: 4012dec = FAChex

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

B.) 001001bin to dec


Solu
(0*2^5) + (0*2^4) + (1*2^3) + (0*2^2) + (0*2^1) + (1*2^0)
(0*32) + (0*16) + (1*8) + (0*4) + (0*2) + (1*1)
0+0+8+0+0+1
ANS:9dec
QUESTION 6
A.)33dec to bin
Solu
DIVISOR.......DECIMAL.......REMAINDER
2 33 1
2 16 0
2 8 0
2 4 0
2 2 0
2 1 1
0
ANS: 33dec = 100001bin

B.) 44dec to bin


Solu
DIVISOR.......DECIMAL.......REMAINDER
2 44 0
2 22 0
2 11 1
2 5 1
2 2 0
2 1 1
0
ANS:44dec = 101100bin

QUESTION 7
A.) 01101101 bin to hexadecimal
Solu
bin to hexadecimal
0110..1101
0110 = 6
1101 = D

B.) 0010010111 bin to hexadecimal


Solu
0000..1001..0111
0000 = 0
1001 = 9
0111 = 7
ANS: 97hex

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

The word "COMPUTER" can be rearranged in 40,320 ways

You might also like