nerdexam
Magento

M70-101 · Question #126

Which three of the following will return an instance of a resource model? (Choose three)

The correct answer is A. Mage::getResourceModel ('customer/customer'); B. Mage::getResourceSingleton ('customer/customer'); E. Mage::getModel ('customer/customer') ->getResource ( ). See the full explanation below for the reasoning.

Question

Which three of the following will return an instance of a resource model? (Choose three)

Options

  • AMage::getResourceModel ('customer/customer');
  • BMage::getResourceSingleton ('customer/customer');
  • CMage::getModel ('customer/customer') ->getResourceModel ( );
  • DMage::getResourceModel ('customer/customer')->getInstance ( );
  • EMage::getModel ('customer/customer') ->getResource ( );
  • FMage::getResourceModel ('customer/customer') ->getResource( );

How the community answered

(25 responses)
  • A
    76% (19)
  • C
    4% (1)
  • D
    8% (2)
  • F
    12% (3)

Community Discussion

No community discussion yet for this question.

Full M70-101 Practice