← 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?
- A.CHAR(50)
- B.INT
- C.DECIMAL(5, 0)
- 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 →