ITI 1121 Final: ITI 1121 University of Ottawa 2002 Final Exam-en

45 views24 pages

Document Summary

April 2002, duration: 3 hours section: designated seat: Instructions: this is a closed book examination, no calculators or other aids are permitted, write your answers in the space provided. You may not hand in additional pages: write comments and assumptions to get partial marks, beware, poor hand writing can a ect grades, do not remove the staple holding the examination pages together. Given the following binary sequence: ( 1101 )2. What decimal value does it represent for each of the following 3 interpretations: as an unsigned number (positional system), as a one"s complement number, encoded with 4 bits, as a two"s complement number, encoded with 4 bits. Convert the following unsigned decimal number to binary. (67. 5625)10 = ( Showing all the steps in your computation, multiply the following unsigned binary numbers. All inter- mediary calculations must be carried out in binary. In the class q, write an instance method to compare two queue instances.