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: Oct 3, 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 C

Solution and Explanation

Step 1: Understanding the Question:

• We must arrange the strings A1, 1A, a2, 2a, aA in ascending order of their ASCII (character-by-character) values.

Step 2: Detailed Explanation:


• In ASCII, digits (48-57) come before uppercase letters (65-90), which come before lowercase letters (97-122).

• Strings starting with a digit come first: \( 1A \) (B) \( < \) \( 2a \) (D) because '1' < '2'.

• Next come strings starting with uppercase 'A': \( A1 \) (A).

• Strings starting with lowercase 'a': \( a2 \) (C) \( < \) \( aA \) (E) because the second character '2' (50) is less than 'A' (65).

• Order: \( B < D < A < C < E \).

Step 3: Final Answer:

The correct option is (C) \( B < D < A < C < E \).
Was this answer helpful?
0
0

Top CUET PG Atmospheric Science Questions

View More Questions