# lab1 - CMPT 120 Due Total Marks Lab Work 1 As indicated by...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CMPT 120: Due: Total Marks: Lab Work 1 As indicated by the submission link 5 (1% of Final Coursework) This assignment is to be done individually. Submitting Your Assignment: Please submit the solutions for problems 6 to 10 only. Please NAME your file according to your FIC ID, for example if your FIC ID is ABCDD93 then your submission should be called ABCDD93.zip. Submission should be made online through the portal. The portal will keep your very last submission prior to the deadline. Do not wait till the last minute to submit as problems with the server may cause delay in submission and absolutely no late submissions will be accepted. 1. If (10)2 = (2)10 then is (10)8 = (8)10? (assume unsigned) a. Yes b. No c. Sometimes yes, sometimes no d. None of the above 2. What is (111)2 + (11001)2? (assume unsigned integers) a. 100110 b. 100000 c. 111 d. 11001 3. What is the 1’s complement of (1001101)2? a. 0110010 b. 1011100 c. 0011000 d. 0000110 4. What is (-37)10 in binary? (assume 2’s complement) a. 000111 b. 1000111 c. 111010 d. 1011011 5. What is (10010)2 in decimal? (assume 2’s complement) a. 14 b. 18 c. -18 d. -14 YOU ARE REQUIRED TO SUBMIT THE SOLUTIONS FOR THE FOLLOWING PROBLEMS ONLY. 6. When measuring computer memory units, 1 kilobyte = 1024 bytes, 1 megabyte = 1024 kilobytes, 1 gigabyte = 1024 megabytes and so on. However, it turns out that when harddrive manufacturers create a disk drive they use units of 1000 (instead of 1024). So if you buy a 100 gigabyte harddrive from the market what is the actual storage space you get for your money? a. 100 gigabytes b. 97.66 gigabytes c. 95.37 gigabytes d. 93.13 gigabytes 7. How many different numbers can you represent with 3 bits? a. 3 b. 7 c. 8 d. 10 8. Assume that we are working in a 4 bit system used to represent unsigned binary numbers. Is it possible to store the result of (110)2 + (1011)2 in this system? a. 0001 b. 10001 c. Yes d. No 9. If you perform (11101)2 + (111011)2 in a 6 bit system, what is the final carry? (assume unsigned binary notation) a. 0 b. 1 c. 011000 d. 1011000 10. What is the decimal value of the smallest number you can represent with 5 bits using binary 2’s complement notation? a. 11111 b. -15 c. -16 d. -1 ...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online