nerdexam
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)
  • A
    9% (5)
  • B
    5% (3)
  • C
    84% (49)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full ZF-100-500 Practice