All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · December 2018

An attribute A of datatype varchar(20) has the value 'xyz', and the attribute B of datatype char(20) has the value 'lmnop'. Then attribute A has ___ spaces and attribute B has ___ spaces.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. 3,20

Explanation

VARCHAR stores only the 3 characters used; CHAR(20) is padded to the full 20 characters.

More Database Management Systems questions