Question:

Which of the following occupies 2 bytes of storage?

Show Hint

In basic storage questions, count the number of characters. One character usually occupies 1 byte, so two characters occupy 2 bytes.
  • 25
  • AM
  • 35.2
  • \textbackslash\textbackslash
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding byte storage.
In basic computer representation, each character generally occupies 1 byte of storage in simple character encoding. So, to find which option occupies 2 bytes, we count the number of characters.
Step 2: Analyze each option.
  • 25: This contains two digits, but in such school-level questions it is usually treated as a numeric value rather than a two-character text entry.
  • AM: This contains two characters, A and M. Hence, it occupies 2 bytes.
  • 35.2: This has more than two characters.
  • \textbackslash\textbackslash: This representation does not match the expected two-byte text answer in the given context.
Step 3: Identify the best answer.
Among the given options, AM clearly consists of two characters. Since each character occupies 1 byte, the total storage required is: \[ 2 \text{ bytes} \]
Step 4: Conclusion.
Therefore, the option that occupies 2 bytes of storage is AM.
Final Answer:AM.
Was this answer helpful?
0
0

Questions Asked in ICSE Class X board exam

View More Questions