The 'VARCHAR(30)' data type represents_______________.
The 'VARCHAR(30)' data type represents_______________.
Solution
✅ Correct Option: 2
VARCHAR(n) stores a variable-length string that can hold at most n characters. So VARCHAR(30) accepts any string from 0 up to 30 characters, and only the characters actually entered are stored.
Option 1: n is an upper limit, not a minimum.
Option 3: a string of exactly n characters is the fixed-length type CHAR(n), which pads shorter values with spaces.
Option 4: VARCHAR holds text, whereas numbers use types such as INT or DECIMAL.
Related questions:
2026: 21 May Shift 1
2026: 29 May Shift 1
2026: 13 May Shift 2
2026: 11 May Shift 2
2026: 24 May Shift 1