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. View
B. Stored Procedure
C. Trigger
D. Cursor
Answer: Option C
Solution (By JKExamLibrary)
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.

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which software utility serves as an interface between an application program and the physical database files?
A. Operating System
B. Database Management System (DBMS)
C. Linker
D. Compiler

Correct Answer: Option B


Explanation:
A Database Management System (DBMS) acts as an interface between application software and the underlying physical database, managing data storage, retrieval, and updates.

This question belongs to: Computer Database Management System (DBMS)
Question #2
The total number of tuples (rows) contained within a relational database table is called its what?
A. Degree
B. Density
C. Dimension
D. Cardinality

Correct Answer: Option D


Explanation:
The number of tuples or rows in a relation is defined as the cardinality of that relation.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which constraint ensures that every value in a specific column is unique across all rows in that table, but still permits a NULL value?
A. FOREIGN KEY
B. PRIMARY KEY
C. UNIQUE
D. CHECK

Correct Answer: Option C


Explanation:
The UNIQUE constraint prevents duplicate entries in a column. Unlike a Primary Key, a UNIQUE constraint typically allows one or more rows to store NULL values depending on the database engine.

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

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'u220813639_questions.youtube_shorts' doesn't exist in /home/u220813639/domains/ask.jkexamlibrary.in/public_html/templates/partials/sidebar.php:55 Stack trace: #0 /home/u220813639/domains/ask.jkexamlibrary.in/public_html/templates/partials/sidebar.php(55): PDO->query() #1 /home/u220813639/domains/ask.jkexamlibrary.in/public_html/templates/question.php(278): require('/home/u22081363...') #2 /home/u220813639/domains/ask.jkexamlibrary.in/public_html/index.php(53): require_once('/home/u22081363...') #3 {main} thrown in /home/u220813639/domains/ask.jkexamlibrary.in/public_html/templates/partials/sidebar.php on line 55