Data Types interview questions

27 real Data Types questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is BIGINT?

Junior
  1. A.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  2. B.a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  3. C.an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
  4. D.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.BIGINT — a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  2. B.BIGINT — an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
  3. C.BIGINT — a fixed-length character type that pads stored strings with trailing spaces up to the declared width
  4. D.BIGINT — a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
Reveal the answer + AI explanation — free account

4. What is CHAR?

Junior
  1. A.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  2. B.a fixed-length character type that pads stored strings with trailing spaces up to the declared width
  3. C.an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
  4. D.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.CHAR — a fixed-length character type that pads stored strings with trailing spaces up to the declared width
  2. B.CHAR — a type holding the logical values true or false (and possibly unknown via NULL)
  3. C.CHAR — an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  4. D.CHAR — a variable-length character type that stores only the actual characters supplied, up to a declared maximum length
Reveal the answer + AI explanation — free account

7. What is VARCHAR?

Junior
  1. A.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  2. B.a variable-length character type that stores only the actual characters supplied, up to a declared maximum length
  3. C.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  4. D.a type holding the logical values true or false (and possibly unknown via NULL)
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.VARCHAR — a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  2. B.VARCHAR — a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  3. C.VARCHAR — a variable-length character type that stores only the actual characters supplied, up to a declared maximum length
  4. D.VARCHAR — an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
Reveal the answer + AI explanation — free account

10. What is DECIMAL?

Mid
  1. A.a type holding the logical values true or false (and possibly unknown via NULL)
  2. B.a variable-length character type that stores only the actual characters supplied, up to a declared maximum length
  3. C.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  4. D.a fixed-length character type that pads stored strings with trailing spaces up to the declared width
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.DECIMAL — an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  2. B.DECIMAL — a variable-length character type that stores only the actual characters supplied, up to a declared maximum length
  3. C.DECIMAL — an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
  4. D.DECIMAL — a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
Reveal the answer + AI explanation — free account

13. What is FLOAT?

Mid
  1. A.a type holding the logical values true or false (and possibly unknown via NULL)
  2. B.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  3. C.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  4. D.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.FLOAT — an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
  2. B.FLOAT — an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  3. C.FLOAT — an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  4. D.FLOAT — a type holding the logical values true or false (and possibly unknown via NULL)
Reveal the answer + AI explanation — free account

16. What is TIMESTAMPTZ?

Mid
  1. A.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  2. B.a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  3. C.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  4. D.an 8-byte signed integer type used when values may exceed the roughly two-billion limit of an ordinary 4-byte integer
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.TIMESTAMPTZ — a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  2. B.TIMESTAMPTZ — an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  3. C.TIMESTAMPTZ — a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  4. D.TIMESTAMPTZ — a fixed-length character type that pads stored strings with trailing spaces up to the declared width
Reveal the answer + AI explanation — free account

19. What is JSONB?

Mid
  1. A.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  2. B.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  3. C.a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
  4. D.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
Reveal the answer + AI explanation — free account

20. Which term means: "a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting"?

Mid
  1. A.BIGINT
  2. B.DECIMAL
  3. C.FLOAT
  4. D.JSONB
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.JSONB — a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
  2. B.JSONB — a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  3. C.JSONB — an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  4. D.JSONB — a type holding the logical values true or false (and possibly unknown via NULL)
Reveal the answer + AI explanation — free account

22. What is UUID?

Senior
  1. A.a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  2. B.an exact fixed-precision numeric type (also called NUMERIC) preferred for money because it avoids the rounding errors of binary floating point
  3. C.a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
  4. D.a type holding the logical values true or false (and possibly unknown via NULL)
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Senior
  1. A.UUID — a fixed-length character type that pads stored strings with trailing spaces up to the declared width
  2. B.UUID — a type holding the logical values true or false (and possibly unknown via NULL)
  3. C.UUID — a 128-bit universally unique identifier often used as a key that can be generated on the client without coordinating with the database
  4. D.UUID — a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
Reveal the answer + AI explanation — free account

25. What is BOOLEAN?

Junior
  1. A.a point-in-time type that stores an instant in UTC and converts to the session time zone, unlike a plain timestamp that ignores zones
  2. B.a type holding the logical values true or false (and possibly unknown via NULL)
  3. C.an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
  4. D.a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Junior
  1. A.BOOLEAN — a Postgres binary-encoded document type that supports indexing and fast key access, trading slightly slower writes versus the plain text JSON type which preserves formatting
  2. B.BOOLEAN — a type holding the logical values true or false (and possibly unknown via NULL)
  3. C.BOOLEAN — a fixed-length character type that pads stored strings with trailing spaces up to the declared width
  4. D.BOOLEAN — an approximate binary floating-point numeric type that can introduce small rounding errors and is unsuitable for exact monetary values
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Data Types free