nerdexam
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)
  • A
    8% (5)
  • B
    3% (2)
  • C
    17% (11)
  • D
    72% (46)

Community Discussion

No community discussion yet for this question.

Full ZF-100-500 Practice