Questions & Answer
Short Questions for Number System
Qno1. What is the primary purpose of the ASCII encoding scheme?
Answer:
The primary purpose of ASCII is to encode text in computers representing characters using numerical codes to ensure compatibility across different device.
Qno2: Explain the difference between ASCII and Unicode.
Answer:
ASCII uses 7 bits to represent 128 characters, while uni-code can represent over a million characters supporting multiple writing system and language.
Qno3: How does Unicode handle characters from different languages?
Answer:
Unicode assign unique code point to each character across various languages allowing for global text representation.
Qno4: What is the range of values for an unsigned 2 byte integer?
Answer: The range of an unsigned 2-byte integer is from 0 to 65535.
Qno5: Explain how a negative integer is represented in binary
Answer:
Negative integer is represented in binary using two’s compliment, where the highest BIT is used to indicate the negative sign.
Qno6: What is the benefit of using unsigned integers?
Answer:
Unsigned integers allow for a large range of positive value since no bits are used to represent the sign.
Qno7: How does the number of bits affect the range of integer values?
Answer:
The more bits available, the larger the range of integer values, as each additional bit doubles the range.
Qno8: Why are whole numbers commonly used in computing for quantities that cannot be negative?
Answer:
Whole numbers are used because they present quantities like counts sizes or indexes that cannot be negative, making them more reliable in such context.
Qno9: How is the range of floating point numbers calculated for single precision?
Answer:
The range of floating point numbers in a single precision is determined by the exponent and the mantissa, allowing for wide range of values.
Qno10: Why is it important understand the limitations of floating point representation in scientific computing?
Answer:
Understanding these limited is crucial to avoid precision errors and inaccuracies when performing complex calculations in scientific computing.