nerdexam
Zend

ZF-100-500 · Question #23

Which of the following is an example of a database c onnection that needs to be created once at the beginning of a script and then used throughout its code?

The correct answer is D. Singleton. Zend ZF-100-500 Exam

Shells, Scripting and Data Management

Question

Which of the following is an example of a database c onnection that needs to be created once at the beginning of a script and then used throughout its code?

Options

  • AModel-view-controller
  • BFactory pattern
  • CActiveRecord
  • DSingleton

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    3% (1)
  • C
    10% (3)
  • D
    80% (24)

Explanation

Zend ZF-100-500 Exam

Topics

#Singleton pattern#design patterns#database connections#PHP

Community Discussion

No community discussion yet for this question.

Full ZF-100-500 Practice