Question B1 A) Solution,: Name: - Suraj Chaudhary - TP Number: - NP000619
Question B1 A) Solution,: Name: - Suraj Chaudhary - TP Number: - NP000619
Question B1 A) Solution,: Name: - Suraj Chaudhary - TP Number: - NP000619
TP Number: ________NP000619_________________
Intake : _______NP1F2103IT____________________
QUESTION B1
a) Solution,
-29.12510
⸫ 29.12510= 11101.0012
Step 2: Normalization
11101.001 = 1.1101001 * 24
= 26-1 – 1
= 31
Now,
3510 = 1000112
Here, Computer stores -29.125 in floating point representation for 16- bit as,
11000111101001002
(b) Solution,
Sum = 32+1
= 3310
Exponent (E) = 3310
Step 2:-
Here mantissa is 1110010002 after decimal. Converting it into decimal equivalent.
Digit 1 1 1 0 0 1
Weight 2-1 2-2 2-3 2-4 2-5 2-6
Digit*Weigh 1/2 1/4 1/8 0 0 1/64
t
Sum = 1/2+1/4+1/8+1/64
Sum = 0.89062510
Using formula,
= (-1) s * (1+M)*2E-B
= (-1)0* (1+ 0.890625)*233-31
= 1* 1.890625*4
=7.562510
⸫The decimal equivalent of 0100 0011 1100 10002 is 7.562510
QUESTION B2
(a)
(i) False
(ii) True
(iii) False
b) Solution,
i)U = {1,2,3,4,5,6,7,8,9,10,11}
A = {2, 3, 5, 7, 11}
B = {6}
C = {5, 7, 9, 11}
iii)
B' = U- B
= {1,2,3,4,5,6,7,8,9,10,11} – {6}
= {1,2,3,4,5,7,8,9,10,11}
Here,
C ∩ B’ = { 5,7,9,11} ∩ { 1,2,3,4,5,7,8,9,10,11}
= {5,7,9,11}
Now,
n{ C ∩ B’} = 2n
n=4
So,
n [P(C ∩ B’)] = 24
So, n [(C ∩ B’)] = 16
QUESTION B3
(a) Solution, to show tree diagram represent the bit strings of 4 length that does not have
three consecutive 0’s.
1 0010
1
0 0 0011
0 0
1 1
0100
1 0
0101
1
1 0110
0
0 0111
1
1 1 1001
0 1010
0
1 1011
1
0 1100
1 1101
0 1110
1
1111
b)
Solution,
The selection of committee can be formed as:
Men(5) Women(5) Selection
3 3 5C3*5C3
2 4 5C2*5C4
1 5 5C1*5C5
So, the probability that the committee has at least 3 women is 0.738
c) Solution,
where n= 5 + 8 + 20 + 22 + 25 = 80.
Let, A be the total favorable cases where student score at most 39 marks = 5+8 = 13
By definition of probability,
Again,
Let, B be the total favorable cases of where student score at least 60 marks = 22+25 = 47
By definition of probability,
Now, the probability that the student has scored at most 39 marks or at least 60 marks =
So, the probability that the student has scored at most 39 marks or at least 60 marks is
3/4.