📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which statement about CHAR and VARCHAR is correct?

A. CHAR is fixed-length and VARCHAR is variable-length ✅
B. VARCHAR cannot be indexed
C. CHAR cannot store letters
D. VARCHAR always uses more storage than CHAR

Correct Answer: A. CHAR is fixed-length and VARCHAR is variable-length

Explanation

  • CHAR is fixed-length and VARCHAR is variable-length.
  • For short fixed codes CHAR can be efficient, while VARCHAR suits varied text.