🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: SQL Basics: all 10 questions

Quiz: SQL Basics · Question 10 of 10

Which data type stores text of up to 50 characters, using only the space needed?

Which data type stores text of up to 50 characters, using only the space needed?

  1. A.CHAR(50)
  2. B.INT
  3. C.DECIMAL(5, 0)
  4. D.VARCHAR(50)
Answer & explanation

Correct answer: VARCHAR(50)

VARCHAR is variable-length; CHAR is fixed-length.

Can you get the rest right without peeking?

Take the timed Quiz: SQL Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →