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 component is used to specify a fallback default value for a column when no value is provided during an insert operation?
A. DEFAULT
B. CHECK
C. UNIQUE
D. NOT NULL

Correct Answer: Option A


Explanation:
The DEFAULT constraint assigns a predefined default value to a column when an INSERT statement does not explicitly provide a value for that column.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following is a valid SQL data type for storing large binary data?
A. VARCHAR
B. TEXT
C. CHAR
D. BLOB

Correct Answer: Option D


Explanation:
BLOB (Binary Large Object) is used for storing large binary data, such as images or files.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is a valid SQL numeric function?
A. CEILING
B. All of the above
C. FLOOR
D. ROUND

Correct Answer: Option B


Explanation:
ROUND, CEILING, and FLOOR are common mathematical functions in SQL.

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