Which data type would be most appropriate for storing a person's phone number in a database?
- Boolean
- Float
- Integer
- String
Storing a person's phone number typically requires a text data type like String since phone numbers can include special characters like dashes and parentheses. Integer is used for whole numbers, Float for decimal numbers, and Boolean for true/false values.
Loading...
Related Quiz
- In time series analysis, _______ is a common method used to smooth out short-term fluctuations and highlight longer-term trends or cycles.
- In hypothesis testing, the _______ value is used to determine the statistical significance of the results.
- Which algorithm is commonly used for classifying data into predefined categories?
- When executing a, b = 10, 20; print(____) to swap and print a and b, the output is 20, 10.
- How do you select distinct values from a column in a SQL table?