Question:

A Computer uses ASCII for internal representation of characters. Arrange the following ASCII characters in ascending order : A. \( A1 \)
B. \( 1A \)
C. \( a2 \)
D. \( 2a \)
E. \( aA \) Choose the correct answer from the options given below :

Show Hint

ASCII comparison follows this order: \[ 0-9 < A-Z < a-z \] Hence: \[ 49 < 50 < 65 < 97 \] Always compare strings character-by-character from left to right.
Updated On: May 20, 2026
  • \( C < D < B < A < E \)
  • \( B < A < D < C < E \)
  • \( B < D < A < C < E \)
  • \( E < A < C < B < D \)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Concept: ASCII (American Standard Code for Information Interchange) is used by computers to represent characters internally using numeric values. The ASCII values follow the order: \[ \text{Digits} < \text{Uppercase Letters} < \text{Lowercase Letters} \] Important ASCII values: \[ 1 = 49, \qquad 2 = 50 \] \[ A = 65 \] \[ a = 97 \] While comparing strings, characters are compared from left to right according to their ASCII values.

Step 1:
Compare the first characters of each string.
\[ A1 \rightarrow A = 65 \] \[ 1A \rightarrow 1 = 49 \] \[ a2 \rightarrow a = 97 \] \[ 2a \rightarrow 2 = 50 \] \[ aA \rightarrow a = 97 \] Arranging according to ASCII values: \[ 49 < 50 < 65 < 97 \] Therefore, \[ 1A < 2a < A1 < (a2, aA) \]

Step 2:
Compare \(a2\) and \(aA\).
Both strings start with: \[ a = 97 \] Now compare the second characters: \[ 2 = 50 \] \[ A = 65 \] Since: \[ 50 < 65 \] we get: \[ a2 < aA \]

Step 3:
Write the final ascending order.
\[ 1A < 2a < A1 < a2 < aA \] Using labels: \[ B < D < A < C < E \] Therefore, the correct answer is: \[ \boxed{(3)\ B < D < A < C < E} \]
Was this answer helpful?
0
0

Top CUET PG Atmospheric Science Questions

View More Questions