Which of the following describes a precompiled collection of SQL statements stored on the database server that can be executed repeatedly by name? MCQ with Answer and Explanation

Which of the following describes a precompiled collection of SQL statements stored on the database server that can be executed repeatedly by name?
A. Trigger
B. View
C. Cursor
D. Stored Procedure
Answer: Option D
Solution (By JKSSB Mock Tests)
A Stored Procedure is a precompiled group of SQL statements and optional control-of-flow code stored in the database server, enhancing execution speed and security.

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
What is a database lock?
A. A mechanism to prevent simultaneous access to the same data causing inconsistency
B. A backup file
C. A type of index
D. A user account

Correct Answer: Option A


Explanation:
Locking is a concurrency control mechanism that ensures data integrity during simultaneous transactions.

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. Schema
B. View
C. Constraint
D. Index

Correct Answer: Option D


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
What is the purpose of the SQL 'WITH' clause (Common Table Expression)?
A. To define a temporary result set that can be referenced within a query
B. To delete data
C. To update data
D. To create a view

Correct Answer: Option A


Explanation:
A Common Table Expression (CTE) provides a temporary named result set that can be used within a SELECT, INSERT, UPDATE, or DELETE statement.

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