Search This Blog

Friday, November 26, 2010

Assignment II for ANU I year MCA Students

Assignment II

Last Date of Submission: 07 - 12- 2010

1. Convert the following binary numbers to decimal : 101110; 1110101 and 110110100.

2. convert the following numbers with the indicated bases to decimal : (12121)3; (4310)5; (50)7; and (198)12;

3. convert the following decimal numbers to binary: 1231, 673; and 1998;

4. convert the following decimal numbers to the bases indicated.

a. 7652 to octal

b. 1938 to hexadecimal

c. 175 to binary

5. convert the hexadecimal number F3A7C2 to binary and octal.

6. obtain 9's complement of the following eight digit decimal numbers: 12349876; 00980100; 90009951; and 00000000

7. obtain 10's complement of the following six-digit decimal numbers: 123900; 090657; 100000; and 000000.

8. obtain 1's and 2's complements of the following eight-digit binary numbers: 10101110; 10000001; 10000000; 00000001; and 00000000.

9. Perform the subtraction with the following unsigned binary numbers by taking the 10's complement of the subtrahend.

a. 5250 - 1321 b. 1753-8640 c. 20 -100 d. 1200 - 250

10. Perform the subtraction with the following unsigned binary numbers by taking the 2's complement of the subtrahend.

a. 11010-10000 b. 11010 - 1101 c. 100-110000 d. 1010100-1010100

11. Perform the arithmetic oprations (+42) + (-13) and (-42)-(-13) in binary using singed-2's complement representation for negative numbers.

12. Perform the following arithmetic oprations with decimal numbers using singed-10's complement representation for negative numbers.

a. (-638)+(+785) b. (-638)-(+185)