What is a synonym in database terms? MCQ with Answer and Explanation

What is a synonym in database terms?
A. A type of index
B. A foreign key
C. A data type
D. An alias for a table or view
Answer: Option D
Solution (By JKSSB Mock Tests)
A synonym is an alternative name for a database object, allowing simpler references.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What does the letter 'D' stand for in the widely accepted ACID properties of database transactions?
A. Durability
B. Definition
C. Data
D. Dependency

Correct Answer: Option A


Explanation:
ACID stands for Atomicity, Consistency, Isolation, and Durability. Durability ensures that once a transaction commits, its changes survive system failures.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following is a valid SQL statement to add a new column to a table?
A. ADD COLUMN TO table_name column_name datatype;
B. Both A and C
C. ALTER TABLE table_name ADD column_name datatype;
D. ALTER TABLE table_name ADD COLUMN column_name datatype;

Correct Answer: Option B


Explanation:
Both 'ADD column_name datatype' and 'ADD COLUMN column_name datatype' are valid syntax in some DBMS, but standard SQL uses 'ADD column_name datatype'. However, many DBMS support both.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is the purpose of the SQL 'DEFAULT' constraint?
A. To enforce uniqueness
B. To provide a default value for a column when no value is supplied
C. To define a primary key
D. To set a foreign key

Correct Answer: Option B


Explanation:
DEFAULT assigns a default value to a column if an INSERT statement does not specify a value.

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