Skip to main contentSkip to solution

Match the following data types of SQL as List-I with List-II

List-IList-II
(A) VARCHAR(n)(I) Value occupies 4 bytes storage with decimal point
(B) FLOAT(II) Value occupies 8 bytes of storage
(C) CHAR(n)(III) Specifies character type data of length where n could be any value from 0 to 65535. and of variable-length data type
(D) BIGINT(IV) Specifies character type data of length n where n could be any value from 0 to 255 and of fixed length

Solution

✅ Correct Option: 2
List IList II
(A) VARCHAR(n)(III) Character type, variable length, n from 0 to 65535
(B) FLOAT(I) 4 bytes of storage, with decimal point
(C) CHAR(n)(IV) Character type, fixed length, n from 0 to 255
(D) BIGINT(II) 8 bytes of storage

CHAR is fixed length and pads shorter values with spaces, while VARCHAR stores only the characters entered, so it allows a much larger n.

Keyboard Shortcuts

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