Which of the following is a valid SQL datatype for storing variable-length strings? MCQ with Answer and Explanation

Which of the following is a valid SQL datatype for storing variable-length strings?
A. CHAR
B. VARCHAR
C. DATE
D. INT
Answer: Option B
Solution (By JKSSB Mock Tests)
VARCHAR stores variable-length character strings. CHAR stores fixed-length strings.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which database model improves upon the hierarchical model by allowing a child record to have multiple parent records, creating a graph-like structure?
A. Star Schema
B. Relational Model
C. Flat File Model
D. Network Model

Correct Answer: Option D


Explanation:
The Network Model represents data as graphs where a record (node) can have multiple parent and child records, solving the strict single-parent limitation of hierarchical systems.

This question belongs to: Computer Database Management System (DBMS)
Question #2
In normalization, 1NF requires that:
A. There are no transitive dependencies
B. All attributes have atomic values
C. There are no partial dependencies
D. The table has a primary key

Correct Answer: Option B


Explanation:
First Normal Form (1NF) ensures that each attribute contains only atomic (indivisible) values.

This question belongs to: Computer Database Management System (DBMS)
Question #3
In relational database terminology, a row in a table is precisely called a what?
A. Field
B. Attribute
C. Tuple
D. Relation

Correct Answer: Option C


Explanation:
A single row or record in a relational database table is formally called a tuple.

This question belongs to: Computer Database Management System (DBMS)