Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question