EMT Practice Test

1. Question Content...


Question List

Question1: Which one of the following classes does NOT exist in Magento?

Question2: In which order are the following methods executed after Mage_core_Model_Abstract:: save () is called?
1 - Mage_Core_Model_Abstract::_beforeSave()
2 - Mage_Core_Model_Abstract::_afterSave()
3 - Mage_Core_Model_Mysql4_Abstract::_beforeSave()
4 - Mage_Core_Model_Mysql4_Abstract::_afterSave()
5 - Mage_Core_Model Abstract::afterCommitCallback()

Question3: Which of the following lines includes a payment method object?

Question4: For an attribute to be loaded on a catalog/product object, which two of the following conditions must be satisfied?

Question5: Two modules, Foo and Moo, both rewrite the catalog/product model, but only the Moo module's rewrite is being used. Both modules Foo and Moo reside in the community code pool. Which two approaches allow the functionality from both classes to be used? (Choose two)

Question6: What is the difference in the effect of calling the invoice capture () method versus the invoice pay () method?

Question7: Which of the following accurately describes the parent class of all EAV-based resource models?

Question8: Which of the following options would cause a poll/poll collection to load all entities that have been posted during April, 2011?

Question9: Which of the following allows you to render a custom form element using a template?

Question10: Which of the following items is NOT utilized in Magentos implementation of EAV-based data models?

Question11: Which entity collects the grand_total and base_grand_total that the different total models collect?

Question12: Which of the following is the default setup script class name?

Question13: How is the sort order in which total models collect their values specified?

Question14: How can you update a third-party system with every new order created in Magento?

Question15: Which object never encapsulates any shopping cart items?

Question16: A customer bought two items but wants to cancel one. Which option enables the administrator of the site to edit the quantity while the invoice is being captured in the admin area?

Question17: Which three of the following conditions should exclude a quote item from the shipping rate calculation by a carrier model? (Choose three)

Question18: Which method is responsible for a full re-index in the abstract Magento indexer?

Question19: In what order are the routers from the Magento core checked for a matching route?
Default: Mage_Core_Controller_Varien_Router_Default
CMS: Mage_Cms_Controller_Router
Standard: Mage_Core_Controller_Varien_Router_Standard
Admin: Mage_Core_Controller_Varien_Router_Admin

Question20: Custom widgets must _____________.

Question21: In admin, a shipment can be created_____________.

Question22: Assume you added a product with custom options to the shopping cart. Where will the data for the custom options be stored persistently?

Question23: Given an EAV-based data model whose data is stored in the table foo_entity, in which table would you find the values for an attribute of the varchar type?

Question24: You have used the "refresh'' action on the cache management page for the block html cache type. Which of the following types of cache record would be cleared?

Question25: Which table is used for calculating a new increment ID for an order?

Question26: You want to implement a custom attribute source model. Which method do you have to implement after extending Mage_Eav_Model_Entity_Attribute_Source_Abstract?

Question27: A custom frontend controller will extend which one of the following classes?

Question28: Which class is extended to render a dropdown in admin forms?

Question29: Which kind of class is responsible for calculating the actual amount of reward points in every case?

Question30: Which of the following could be used to pass an object to a block method?

Question31: Which of the following xpaths defines the correct XML structure for informing Magento that your module has install scripts?

Question32: Which class should you refer to in order to troubleshoot Website restriction issues?

Question33: You want to filter a product collection so that it will return only SKUs 12 and 123. You will use a call to
$collection->addFieldToFilter('sku', ______________ );
Two of the following arrays could be used to complete that call correctly. Which two? (Choose two)

Question34: Which one of the following class types directly charges a credit card when you capture an invoice in Magento admin?

Question35: In which of the following integrations should you use the Magento API?

Question36: Which model is responsible for calculating the taxes for the selected shipping rate?

Question37: What event do Website Restrictions use to restrict access?

Question38: Which one of the following API protocols does native Magento support?

Question39: When changes are made to more than one of a collection's items using setData( 'some', 'value'), which of the following methods will save the changes in the collection?

Question40: You are creating a custom CMS module named Achme_Cms. Which one of the following is the correct XML required to override a controller from the Mage_Cms module in your Achme_Cms module?

Question41: The final price for the product on the product view page is__________.

Question42: Given a grid interface that extends from Mage_Adminhtml_Block_Widget_Grid, which of the following methods could you override to allow data to be loaded from a custom data collection?

Question43: How does Magento store comments regarding different entities (invoice, credit memo, shipment)?

Question44: A valid way to extend Mage_Adminhtml_Cms_PageController with the
Acme_Cms_Adminhtml_PageController class would be to set the following configuration:

Which of the following code pairs should be inserted in the blank spots in the code shown above?

Question45: When setData (' some', 'value') is called on an EAV entity and the entity is saved to the database,

Question46: Which of the following API calls allows you to fetch the list of related products using the native Magento API?

Question47: To update your order information from a third-party system using an XmlRpc call, you should __________.

Question48: Which of the following is a true statement about how Magento loads data for an EAV-based data model?

Question49: How many items will be added to the quote after adding a configurable product to the shopping cart?

Question50: Which two of the following are supported in the native Magento API? (Choose two)

Question51: Which two of the following methods can be used to load an entity's data from its configured data table?
(Choose two)

Question52: By enabling Flat catalog, you will _____________.

Question53: What can you do in order to render a picture in a specific cell in a grid?

Question54: In which table could you find the order state?

Question55: You need to create a new condition rule type. Which two of the following classes would be suitable candidates for extending? (Choose two)

Question56: Which method is called on a shipping carrier model to fetch a list of all available shipping methods, along with the rates associated with them, for a quote address?

Question57: Which of the following actions will enable logging via calls to debugData() on a native Magento payment method model?

Question58: Among other directives, your module's layout xml file contains the following code:

But using the template path hints, you can see that a template custom/product/view.phtml is used instead of your template. Which THREE of the following options can be causing the issue? (Choose three)

Question59: How can you restrict access to a custom API resource?

Question60: Which of the following will NOT generate a <script> tag in the output of the standard Magento page/ html_head block?

Question61: 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.

Question62: What is the purpose of Catalog Target rules?

Question63: What class does an adminhtml grid directly extend?

Question64: Which of the following will cause the javascript file at [magento root] /skin/frontend/<package>/<theme>/js/ some.js to be added to the output of the standard Magento page/html_head block?

Question65: In which config areas are layout files declared? (Choose two)

Question66: What must be done to allow a third-party system to access the Magento API?

Question67: Which one of the following statements is true regarding layout update handles?

Question68: Which file path correctly identifies the location of a module's install/upgrade scripts inside the primary module directory?

Question69: How can you make a payment method store entire credit card numbers?

Question70: You want to display a grid for a custom collection. After extending Mage_Adminhtml_Block_widget_Grid, which two of these methods should you implement? (Choose two)

Question71: Which of the following allows you to save a single attribute value on an EAV entity?

Question72: Assume you have saved a product in the Catalog. Will your last changes be taken into account for rule- based related products?

Question73: Which table stores information about the relationship between configurable products and their child products?

Question74: Which of the following layout XML directives will set a value on a block?

Question75: What happens when you edit an existing order using the order management page?

Question76: Which one of the following is responsible for sending a remote request to the payment service when capturing an order?

Question77: Which statement correctly describes order state and order status?

Question78: How can reward points be converted to a discount on checkout?

Question79: Which three of the following conditions are used to protect an admin route via ACL? (Choose three)

Question80: Which module is responsible for Store Credit functionality in the native Magento?

Question81: To implement a standard Adminhtml form for a custom data model, which two of the following must you do? (Choose two)

Question82: Which one of the following API methods exists in Magento?

Question83: You want to define a list of quote object attributes that are copied to the order object when an order is placed. Which one of the following statements is true?

Question84: Which one of the following statements is true regarding Mage_Core_Block_Text_List?

Question85: When the Magento configuration is being loaded, all the XML files in app/etc and the module registration files under app/etc/modules/ are loaded first. After that step, in which order are the following items loaded?
1. Configuration from the core_config_data DB table
2. app/etc/local.xml
3. The etc/config.xml of all active modules

Question86: What is the xpath to the list of product types?

Question87: What is the difference between the base grand total and grand total attributes of the order?

Question88: Which statement describes a model class that extends Mage_Core_Model_Abstract?

Question89: Which of the following elements does NOT exist in system configuration xml (system, xml file)?

Question90: Which one of the following controller classes could respond to this URL?: http://example.com/ modulename/controller/index

Question91: Which three of the following statements accurately describe differences between EAV and Flat catalogs when accessing child categories of a category? (Choose three)

Question92: What does Magento use to determine whether the automatically run upgrade scripts have been run yet?

Question93: You need to implement private sales utilizing Website Restrictions as provided by the Enterprise Edition of Magento, and when customers are not logged in, you want them to be redirected to a landing page. Where in the Magento admin would you find the settings needed for this task?

Question94: What type of Magento class is an API resource?

Question95: You have a product collection and want to add a filter to get all products whose name starts with Test or whose price is 0.00.
Which of the following statements would add that OR condition?

Question96: Which one of the following EAV attribute types may be used for layered navigation in native Magento?

Question97: A customer has complained that his reward points sum is inaccurate. In order to debug what has happened and to discover when changes were made to his reward points, where should you look for logging information?

Question98: What do you need to do to implement a completely new Web Service protocol in Magento?

Question99: A native Magento EAV entity will use_____________.

Question100: Which two of the following parameters are necessary to define a usable massaction item? (Choose two)

Question101: For which two of the following composite products could the options be shipped separately on the frontend using "Checkout with multiple addresses"? (Choose two)

Question102: Applying the shopping cart rule's action affects the quote item by setting the quote item's
_______________.

Question103: Which one of the following declares a Layout XML file?

Question104: Which one of the following xpaths is correct for replacing Mage_Customer_Model_Custom_Address via Mage::helper ('customer/address')?

Question105: Which three of the following object types will have a parent class found in the Mage_Eav module for the purposes of EAV data storage in Magento? (Choose three)

Question106: Assume that PayPal has presented a new API for online purchasing that you are going to use. Which class should you extend for doing that?

Question107: How are "Rule-based related products" added to the shopping cart when you check their checkbox together with the checkbox for the basic product?

Question108: Which of the following methods will force an EAV resource collection model to include an attribute in its result set?

Question109: When $ this ->load Layout (' foo_bar_baz') is called in a standard front action, what is the effect on the layout update object instance?

Question110:
The checkbox "Use default value" is checked and the corresponding input field is disabled, as shown in the graphic above. How does Magento represent this state in the corresponding EAV value tables?

Question111: To register a new API resource, what should you do?

Question112: What is the basic class/interface for every model observer class?

Question113: When the load method is called on an EAV-based data model, which of the following occurs before the load method returns?

Question114: At what point in the grid preparation and rendering process is the collection containing the data for the grid prepared for loading?

Question115: Which of the following methods exists in the Mage_Sales_Model_Quote_Address class?

Question116: Assume you have product with qty in stock=1, and two people are trying to buy it at the same time. Which of the following statements is true?

Question117: Which of the following payment methods' payment actions creates an invoice during the "place order' step?

Question118: The value of the config/placeholders/ [placeholder_id] /block node from the merged cache.xml configuration is used______________.

Question119: You need to override the default value for the expiry calculation for reward points used by the Reward Points module. Which of the following XML fragments should you use in your modules config.xml?

Question120: Which one of the folbwing classes must you extend in order to implement a custom indexer?

Question121: Which of the following block methods is the best to override when there is a need to customize how the block's html is rendered?

Question122: Which of the following node names may be used inside the setup resource declaration to utilize a custom setup class?