What is a stored procedure? MCQ with Answer and Explanation

What is a stored procedure?
A. A trigger
B. An index
C. A set of precompiled SQL statements that can be executed as a single unit
D. A view
Answer: Option C
Solution (By JKSSB Mock Tests)
A stored procedure is a named collection of SQL statements and logic stored in the database, which can be invoked by applications.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL command is used to reverse or undo all modifications made during the current transaction that have not yet been committed?
A. SAVEPOINT
B. REVERT
C. ROLLBACK
D. UNDO

Correct Answer: Option C


Explanation:
The ROLLBACK command is a TCL statement used to undo transactions, restoring the database to its last committed or safe state.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which database structure is created to drastically speed up the retrieval of rows from a table at the expense of slower data updates?
A. Constraint
B. View
C. Index
D. Schema

Correct Answer: Option C


Explanation:
An Index is a performance optimization structure created on table columns to search and locate matching rows quickly without performing a full table scan.

This question belongs to: Computer Database Management System (DBMS)
Question #3
The JOIN operation in SQL is used to:
A. Sort data
B. Create a new database
C. Delete rows
D. Combine rows from two or more tables

Correct Answer: Option D


Explanation:
JOIN combines data from multiple tables based on related columns.

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