Zend
ZF-100-500 · Question #56
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 D. 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
- BModel-view-controller
- CFactory pattern
- DSingleton
How the community answered
(64 responses)- A8% (5)
- B3% (2)
- C17% (11)
- D72% (46)
Community Discussion
No community discussion yet for this question.