nerdexam
Magento

M70-101 · Question #90

The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as…

The correct answer is D. Mage::getSingleton ('modulename/modelname'). See the full explanation below for the reasoning.

Question

The initial call to ______________ will create and return an instance of the specified class. Subsequent calls to this method during the same execution cycle will return the same class instance as opposed to creating a new one.

Options

  • AMage::getResourceModel ('namespace/modulename');
  • BMage::getInstance ('namespace/modulename');
  • CMage::getModel ('modulename/modelname');
  • DMage::getSingleton ('modulename/modelname');

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    9% (2)
  • D
    82% (18)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice