Which sequence of char data types is listed from lowest to highest?

  1. a, A, z, Z

  2. a, z, A, Z

  3. A, a, Z, z

  4. A, Z, a, z

  5. z, a, Z, A


Correct Option: D

AI Explanation

To answer this question, we need to understand the ordering of characters in the ASCII table. The ASCII table assigns a unique numerical value to each character, including letters.

In the ASCII table, uppercase letters have lower numerical values than lowercase letters. Therefore, the correct sequence of char data types listed from lowest to highest is:

D. A, Z, a, z

This option is correct because it follows the ascending order of character numerical values.

Find more quizzes: