A database object that automatically executes or fires in response to specific events (like INSERT, UPDATE, or DELETE) on a table is known as a what? MCQ with Answer and Explanation

A database object that automatically executes or fires in response to specific events (like INSERT, UPDATE, or DELETE) on a table is known as a what?
A. Stored Procedure
B. Cursor
C. Trigger
D. View
Answer: Option C
Solution (By JKSSB Mock Tests)
A Trigger is a named database object containing procedural code that automatically runs or fires when a specific DML statement occurs on a designated table.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
In SQL, what does the 'IS NULL' operator check?
A. Whether a value is missing (null)
B. Whether a value is zero
C. Whether a value equals NULL
D. Whether a value is empty string

Correct Answer: Option A


Explanation:
IS NULL is used to test for NULL values, because NULL is not equal to anything.

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. Both A and C
B. ALTER TABLE table_name ADD column_name datatype;
C. ALTER TABLE table_name ADD COLUMN column_name datatype;
D. ADD COLUMN TO table_name column_name datatype;

Correct Answer: Option A


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
Which of the following describes an 'Entity' in database terms?
A. A real-world object or concept that is distinguishable from other objects and about which data is stored.
B. A physical server rack.
C. An action or method inside code.
D. A line connecting tables.

Correct Answer: Option A


Explanation:
An Entity is a distinguishable real-world object, place, person, or concept captured within a database schema (e.g., Customer, Product).

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