Vidyalelo
Python · Q20

Database Connectivity with Python

Programming · Python · question 20

Q20

What is the purpose of a stored procedure in a database?

A.
To store data backups
B.
To define data types
C.
To encapsulate SQL code for reuse
Answer
D.
To generate random data

Answer: Option C

Solution

Answer: Option C
Solution:
A stored procedure is a precompiled collection of SQL statements that can be reused and executed in a database.