Zend
ZF-100-500 · Question #92
Which of the following is an example of a database connection that needs to be created once at the beginning of a script and then used throughout its code?
The correct answer is C. Singleton. See the full explanation below for the reasoning.
Question
Which of the following is an example of a database connection that needs to be created once at the beginning of a script and then used throughout its code?
Options
- AActiveRecord
- BFactory pattern
- CSingleton
- DModel-view-controller
How the community answered
(58 responses)- A9% (5)
- B5% (3)
- C84% (49)
- D2% (1)
Community Discussion
No community discussion yet for this question.