Differentiate between hexadecimal and octal number system-00316

Online Quiz This subjective question is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Mid Term Solved Past Paper No. 1.

Question 1: Differentiate between hexadecimal and octal number system
Answer:
  1. octal - base 8
  2. hexadecimal - base 16

Octal and hex are used to represent numbers instead of decimal because there is a very easy and direct way to convert from the "real" way that computers store numbers (binary) to something easier for humans to handle (fewer symbols). To translate a binary number to octal, simply group the binary digits three at a time and convert each group. For hex, group the binary digits four at a time.


Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background