20. Which data type should be used?

Answer: C

Explanation:

Character string should be used to hold a password involving letters and numbers.

Using a character string as the data type is appropriate because it can accommodate a combination of letters and numbers, which is essential for storing passwords.

A) Integer

An integer data type is not suitable because it can only store whole numbers and cannot represent letters or a combination of characters. Passwords typically require a mix of alphanumeric characters, which integers cannot provide.

B) Floating point

A floating point data type is also inappropriate for storing passwords as it is designed to represent decimal numbers. Similar to integers, it cannot hold strings of text or mixed character types necessary for a password.

C) Character string

A character string is the correct choice since it is specifically designed to hold sequences of characters, including both letters and numbers. This data type allows for the flexibility needed to create strong passwords.

D) Character

While a character data type can hold a single character, it is insufficient for storing an entire password, which typically consists of multiple characters. Therefore, it cannot be used effectively for this purpose.

Conclusion

The character string data type is the most suitable option for holding passwords, as it allows for the inclusion of various characters, making it possible to create secure and complex passwords. All other options fail to meet the requirements necessary for storing alphanumeric passwords effectively.