Exercises on Binary Numbers

Exercises on Binary Numbers

<p> Introduction to programming "Number systems"</p><p>Goal: The objective of this handout is to give students initial practice with binary numbers as well as hexadecimal and octal number systems. </p><p>In the following exercises, use the table to convert binary number to decimal number and vise verse: ... 27 26 25 24 23 22 21 20 … 128 64 32 16 8 4 2 1</p><p>1. What is the decimal value for the binary number 1010 ?</p><p>2. What is the binary representation for the number 98?</p><p>3. What is the maximum number that can be represented by using 8 bits? Hint: write it down in binary representation first and then covert to decimal.</p><p>4. How many different numbers in total can be represented by 8 bits?</p><p>5. What is the size of the memory with 2 bytes address space?</p><p>6. What is the octal representation of the binary number 11110000?</p><p>7. What is the hexadecimal representation of the binary number 11110000?</p><p>8. Add two numbers: 1100 and 1101 in binary</p><p>9. Subtract number 111 from the number 11001 in binary.</p><p>10. Convert number 1A (base 16) to octal number with the use of binary system.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us