Ask Question
17 February, 11:32

You need to design an online login form in which users have to type their name and password to log into an application. The password can be a combination of numbers and letters. Which data type is most suitable for a password field?

+3
Answers (2)
  1. 17 February, 13:08
    0
    The type string is most suitable
  2. 17 February, 14:01
    0
    The correct answer is data type string.

    Explanation:

    Numeric data types (int, float, double, etc) are not suitable because you cannot incluse letters, just numbers. For example.

    int x = 124320 is valid

    int x = 12a45re is not valid.

    The data type string is the one that allows the combination of numbers and letters. For example

    char password[] = "bills2019" is valid

    So the correct answer is data type string.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “You need to design an online login form in which users have to type their name and password to log into an application. The password can be ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers