Q.23 Find the hexadecimal equivalent of the decimal number 3452. (AKTU. 2013-14)
Ans.
Q.24 Calculate the decimal equivalent of a binary number :
1010111.11. (AKTU. 2013 - 14)
Ans. (1010111.11.)2
= 0.5 + 0.25 = (0.75)10
\ (1010111.11)2 = (87.75)10
Q.25 Write an algorithm to find the summation of all the integers between 10 and 500 which are divisible by 3 and 5 both. Also draw the flow chart for the same. (AKTU. 2012 - 13)
Ans.
The algorithm is as follows
0. Start
1. Sum ¬ 0
2. n ¬ 10
3. n ¬ n + 1
4. if ((n mod 15) equals 0)
5. then sum ¬ sum + n
6. if (n equals 500)
7. then print sum
8. else goto step 3
9. stop