What is the purpose of the SQL 'DEFAULT' constraint? MCQ with Answer and Explanation

What is the purpose of the SQL 'DEFAULT' constraint?
A. To set a foreign key
B. To define a primary key
C. To provide a default value for a column when no value is supplied
D. To enforce uniqueness
Answer: Option C
Solution (By JKSSB Mock Tests)
DEFAULT assigns a default value to a column if an INSERT statement does not specify a value.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
The actual collection of data tuples stored in a table at any specific point in time is called a what?
A. Relation Degree
B. Relation Instance
C. Relation Domain
D. Relation Schema

Correct Answer: Option B


Explanation:
A Relation Instance is the specific collection of data rows (tuples) present in a table at a given moment. It changes frequently as data is modified.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which normal form requires that all attributes in a table contain only atomic, indivisible values, and prohibits multi-valued attributes?
A. Boyce-Codd Normal Form (BCNF)
B. Second Normal Form (2NF)
C. First Normal Form (1NF)
D. Third Normal Form (3NF)

Correct Answer: Option C


Explanation:
A relation is in First Normal Form (1NF) if and only if the domain of every attribute contains only atomic (indivisible) values, and no repeating groups exist.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which type of database model organizes data in a tree-like structure?
A. Relational model
B. Hierarchical model
C. Network model
D. Object-oriented model

Correct Answer: Option B


Explanation:
The hierarchical model arranges data in a parent-child relationship, forming a tree structure.

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