Академический Документы
Профессиональный Документы
Культура Документы
Which of the following products do not have a physical presence, and are typically used for such
things as services, warranties and subscriptions? (Verified)
• Simple Product
• Grouped Product
• Virtual Product
• Bundle Product
Q. Which of the following GET parameter is used for "not equal to" filtering? (Verified)
• neq
• in
• nin
• None of the above
• $collection = Mage::getModel('catalog/product')->getProduct();
• $collection = Mage::getModel('catalog/product')->getCollection();
• $collection = Mage::getModel({'catalog/product'})->getCollection();
• $collection = Mage::getModel('catalog/product')-->getCollectionId();
Q. Which function can be used to get the image Width and Height? (Verified)
• Imagesx() , Imagesy()
• getWidth() , getHeight()
• scaleX() , ScalyY()
• Imagex() , Imagey()
• It contains the basic meta-information, like the theme name and the parent theme name, and the
theme is inherited from an existing theme.
• It is required to register your theme in the system.
• This file is optional.
• Describes the theme dependencies and some meta-information.
• $collection->printLogQuery(true);
• $collection->getSelect()->__toString();
• $collection->printLogQuery();
• $collection->getSelected()->__toString();
Q. Is it possible to retrieve all the models' ids based on collection filters without loading the
collection itself? (Verified)
• You can use getSelect() to retrieve the current collection db select with all the filters applied. You can
just tweak it by resetting the columns part and specifying the model's id field instead
• Yes, you can use getAllIds() that will return all model id field values
• Yes, you can use getModelIds() that will return all model id field values
• No, it is impossible
Q. How many tables are created when a new EAV module is created?(Verified)
•3
•4
•5
•6
Q. Which resource model would you implement if you expect to return multiple items from a
database query? (Verified)
• group
• resource
• collection
• None of the above
• Presentation Layer
• Service Layer
• Domain Layer
• Persistance Layer
Q. Page layout files are useful in ___ front pages of Magento? (Verified)
• php
• rendering
• file
• component
Q. How can you extend Bundle updates product listing using the grid UI component located?
Magento/BundleStaging/product/adminhtml/ui_component/bundle_update_product_listing.xml
• Yes
• It should be,
Magento/BundleStaging/view/adminhtml/ui_component/bundle_update_product_listing.xml
• No, it should be
Magento/BundleStaging/controller/adminhtml/ui_component/bundle_update_product_listing.xml
• None of the above
• {$module}-v2.php
• install-data-v2-{$module}.php
• upgrade-0.0.2.php
• data-upgrade-0.0.1-0.0.2.php
Q. What happens when you edit an existing order using the order management page?
• Depending on the order status, different editing forms appear for the current order
• The current order is cancelled and a new order is created from scratch based on the current order's
data.
• It will work well and let me edit the order.
• A form appears that allows you to edit shopping information for the current order only
• Mage::getSingleton() always finds for an existing object if not then it will create a new object but
Mage::getModel() always creates a new object
•Mage::getSingleton() always creates a new object but Mage::getModel() always finds for an existing
object if not then create a new object
•There is no difference
•None of the above
Q. Which command allows you to reset Magento files and Directory permissions? (Verified)
• find . –type f –exec chmod 755 {} ;
find . –type d –exec chmod 644 {};
chmod x mage
Q. Which Magento command is used to display the current deployment mode? (Verified)
• magento deploy:mode
• magento mode:show
• magento deploy:mode:show
• None of the above
Q. Which of the following piece of codes can be used to get Magento clients by payment method?
(Verified)
•$collection = Mage::getResourceModel('sales/order_payment_collection')->addFieldToSelect('*')-
>addFieldToFilter('method', "mundipagg_boleto");
foreach ($collection as $orderPayment) {
$orderId = $orderPayment->getParentId();
$order = Mage::getModel('sales/order')->load($orderId);
$customerId = $order->getCustomerId();
}
• $collection = Mage::getResourceModel('sales/order_payment_collection')->addFieldToSelect('*');
foreach ($collection as $method) {
if ($method->getMethod() == "mundipagg_boleto") {
print $method->getMethod()."<br>";
}
}
• $collection = Mage::getResourceModel('sales/order_payment_collection')->addFieldToSelect('*')-
>addField('method', "mundipagg_boleto");;
foreach ($collection as $method) {
if ($method->getMethod() == "mundipagg_boleto") {
print $method->getMethod()."<br>";
}
}
Q. Which of the following files does Magento use to detect maintenance mode? (Verified)
• var/.maintenance.flag
• var/.maintenance.mg
• var/.maintenance
• None of the above
Q. The data model is based on the Entity-attribute-value _____ that stores data objects in tree
structures?
• rendering
• model
• class
• modal
• Configuration
• Page cache
• Entity attribute value (EAV)
• DML
• DDL
Q. Static __ is a silent function of a class, which is stored in the memory space of a class (not
objects)?
• variable
• function
• page
• method
• var config = {
paths: {ore, Community and Local
// configuration for resource
'app/code/Magento/Catalog/controller/frontend/product/product.js'
"product": "./product/product"
}
};
• var config = {
paths: {
// configuration for resource 'app/code/Magento/Catalog/view/frontend/product/product.js'
"product": "./product/product"
}
};
• var config = {
paths: {
// configuration for resource 'app/code/Magento/Catalog/model/frontend/product/product.js'
"product": "./product/product"
}
};
• var config = {
paths: {
// configuration for resource 'app/code/Magento/Catalog/js/frontend/product/product.js'
"product": "./product/product"
}
};
Q. What is the difference between subtotal price and base subtotal? (Verified)
• Base subtotal is in the customer's currency and subtotal is in your shop's base currency
• Subtotal in the customer's currency and base subtotal is in your shop's base currency
• Subtotal includes taxes, base subtotal does not
• Nothing special, it’s the same value
Q. Which of the following are inappropriate dependencies? (Verified)
Q. To create a base grid block you need to define the following function?
• getMassactionBlock()
• prepareMassactions()
•_prepareMassaction()
• getMassactionBlocks()
• ./oauth/initiate
• ./oauth/authorize
• ./admin/oauth_authorize
• ./oauth/token
• Model data was loaded from the database and saved twice, because load() calls save() if any data
was changed
• Model data was loaded twice, but was not saved
• Model data was loaded from the database twice and saved into the database with a new property
value
• Model data was loaded once, but was not saved.
Q. How can you get Magento extension to run javascript when an item is added to the cart?
• <checkout_cart_product_add_after>
<reference name="footer">
<block type="core/templates" name="INSERT_CUSTOM_NAME_HERE"
template="path/to/your/phtml/file.phtml" />
</reference>
</checkout_cart_product_add_after>
• <catalog_product_view>
<reference name="footer">
<block type="core/template" name="INSERT_CUSTOM_NAME_HERE"
template="path/to/your/phtml/file.phtml" />
</reference>
</catalog_product_view>
• <checkout_cart_product_add_after>
<reference name="footer">
<block type="core/template" name="INSERT_CUSTOM_NAME_HERE"
template="path/to/your/phtml/file.phtml" />
</reference>
</checkout_cart_product_add_after>
Q. When we are using .htaccess, how can you redirect all admin pages in Magento to another
domain and subdirectory?
• RewriteEngine On
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteCond %{REQUEST_URI} !admin
RewriteCond %{REQUEST_URI} !index.php [NC]
RewriteRule ^ http://www.example.com/landing [R=302,L]
• RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index\.php/admin [NC]
RewriteRule ^ - [L]
RewriteCond %{THE_REQUEST} !/new/ [NC]
RewriteRule !^new/ /new%{REQUEST_URI} [NC,R=301,L]
• RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index\.php/admin [NC]
RewriteRule ^ - [L]
RewriteCond %{THE_REQUEST} !/new/ [NC]
RewriteRule !^new/ /new%{REQUEST_URI} [NC,R=301,L]
• curl
• intl
• mhash
• PDO/MySQL
• All of the above.
Q. Which inventory API allows you to retrieve the list of stock data by product IDs?
which inventory API allows you to reterive the list of stock data by product ids?
• cataloginventory_stock_item.list()
• cataloginventory_stock_item.update()
• cataloginventory_stock_item.find()
• All of the above
• Core Modules
• Community Modules
• Commercial Modules
• Complex Modules
•1
•2
•3
•4
• Var config={
paths:{
//configuration for resources ‘app/code/magento/catalog/controller/frontend/product/product.js’
“product”:”./product/product”
}
};
• Var config={
paths:{
//configuration for resources ‘app/code/magento/catalog/view/frontend/product/product.js’
“product”:”./product/product”
}
};
• Var config={
paths:{
//configuration for resources ‘app/code/magento/catalog/model/frontend/product/product.js’
“product”:”./product/product”
}
};
• Var config={
paths:{
//configuration for resources ‘app/code/magento/catalog/js/frontend/product/product.js’
“product”:”./product/product”
}
};
Q. Which Magento command is used to display the current deployment mode? (Verified)
• magento deploy:mode
• magento mode:show
• magento deploy:mode:show
• None of the above
• setTemplate
• setView
• setViewFile
• setLayout
•It enables magento and third party devlopers to report sytem dependent through composer json file
and consequently guarantee compatibility among magento version
A service contact includes data interfaces which preserve data integrity ,and services interfaces
• Which hide business logic details from service requestors such as controllers web services and other
modules .
• Magento is modular system that enables third-party developers to customize and overwrite core
parts of its framework. This flexibility comes for free.
•Aservices contact is set of php interfaces that are defined for a module .
• cms_index_index>
<reference name="footer">
<disable name="newsletter"/>
</reference>
</cms_index_index>
• cms_index_index>
<reference name="footer">
<disable_extension name="newsletter"/>
</reference>
</cms_index_index>
• cms_index_index>
<reference name="footer">
<remove name="newsletter"/>
</reference>
</cms_index_index>
• Mage::getSingleton('core/design_package')->getSkinBaseDir()
• Mage::getBaseDir('skin');
• $this->getSkinUrl()
• All of the above
Q. What model property is responsible for the naming of this event: "catalog_product_after_load"?
• $_eventName property
• $_eventDataKey property
• $_eventObject property
• $_eventPrefix property
Q. You need to create a new product attribute that can be retrieved from order item on the order
view page. What you are going to do to make it possible?
• Create an observer for the order item collection after load event that will load the product collection
with this attribute value
• Create an observer for the order item collection after load event that will load the product model for
each order item
• Create the attribute for quote item and order item that will be fulfilled during the checkout process
by Magento automatically
• Create the attribute for quote item and order item, then define mapping of its value from quote item
to order item and set it to quote item from product by observing event
Q. A SOAP request is basically an HTTP POST request containing a SOAP ____ a ____ and a ____?
• javascript, header , body
• envelope, header , document
• envelope, body , document
• envelope, header , body
• Repository interfaces
• Model interfaces
• Management interfaces
• Metadata interfaces
Q. Magento looks for configuration information for each module in that module’s /etc directory.
Depending on the needs of your module, you might have the following configuration files at the top
level of your module’s /etc directory?
Q. Which of the following specifies the PHP class to use for the interface
Magento\Customer\Api\CustomerRepositoryInterface?
• di.xml
• config.xml
• custom.xml
• None of the above
• List of products
• Event location
• Event name
• Event id
• magento cron
• magento cron:run
• magento run
• None of the above
• Installing Magento
• Clearing the cache
• Managing indexes, including reindexing
• Creating translation dictionaries and translation packages
• All of the above
• Yii Template
• Symfony
• Zend
• Lavarel
Q. What method do you use to check if the model's property was changed?
• isChanged($field);
• dataHasChangedFor($field);
• hasChanged($field);
• isDifferent($field);
Q. How do you forward to a specific external URL outside Magento from your controller?
• _forward ($url)
• _redirectUrl ($url)
• rewriteUrl($url)
•goto($url)
Q. Which of the following files are required for all components?
• registration.php, composer.json
• composer.json, index.php
• registration.php, config.xml
• registration.php, composer.json, config.xml
Q. Which of the following is the entry area for Magento Admin? (Verified)
• index.php
• default.php
• frontend.php
• None of the above
Q. The controller action _____ method is called each time before calling the action method itself?
• preDispatch
• preAction
• beforeDispatch
• beforeAction
• Reside below the domain layer and above the presentation layer .
• Contain services contracts which define how the implementation will behave .
• Provide an easy way to access the REST/SOAP API framework code.
• Provide a stable a API for other modules to call into.
• Web users
• System administrators
• Web API calls
• All of the above
Q. Domain layer code in one module can also plug itself into another module by:(Verified)
• plugins
• di.xml files (with an SPI contract)
• event hooks
• All of the above
Q. Which of the routes define the HTTP route for the web API method?
Note: There may be more than one right answer.
• method
• class
• secure
• All of the above
Q. What is the correct XML path for setting a module’s setup connection?
• config/global/resource/{$module}_setup
• config/frontend/resources/{$module}_setup
• config/frontend/resources/setup/{$module}
• config/general/resources/setup/{$module}
• Resides below the domain layer and above the presentation layer.
• Contains service contracts, which define how the implementation will behave.
• Provides an easy way to access the REST/SOAP API framework code.
• Provides a stable API for other modules to call into.
• signup.php
• registration.php
• new.php
• frontend.php
• $collection = Mage::getModel('catalog/product')->getCollection();
$collection->getSelect()->order('entity_id desc')->limit(n);
• $collection = Mage::getModel('catalog/product')->getCollection();
$collection->getSelect()->orderBy('entity_id desc')->limit(n);
• $collection = Mage::getModel('catalog/products')->getCollections();
$collection->getSelect()->orderBy('entity_id desc')->limit(n);
Q. Which code is used to get the Total Price of items currently in the cart?(Verified)
• helper(‘checkout’)->formatPrice(Mage::getSingleton(‘checkout/cart’)->getPrice()->getGrandTotal());
?>
• helper(‘checkout’)->formatPrice(Mage::getSingleton({‘checkout/cart’})->getQuotes()-
>getGrandTotal()); ?>
• helper(‘checkout’)->formatPrice(Mage::getSingleton(‘checkout/cart’)->getQuote()-
>getGrandTotal()); ?>
• helper(‘checkout’)->formatPrices(Mage::getSingletons(‘checkout/cart’)->getQuote()-
>getGrandTotal()); ?>
Q. How can you disable a Magento Extension if you don't have access to admin section?(Verified)
• Change the <active> tag's value from true to false in module control file in app/etc/modules
• Change the <active> tag's value from true to false in module control file in doc root of Magento
• Both of the above
• None of the above
• uses
• reacts to
• customizes
• moves
• replaces
Q. When you want to change the behavior of the Magento core modules,which of the following
method is acceptable?(Verified)
• echo $this->getLayout()->createBlock(‘cms/block’)->setBlockhtml(‘static_block_id’)->toHTML();
• echo $this->getLayout()->createBlockHTML(‘cms/block’)->setBlockId(‘static_block_id’)->toHTML();
•echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘static_block_id’)->toPHTML();
• echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘static_block_id’)->toHTML();
Q. Which action should you perform to make it possible to display your custom attribute value on
the product list?
• addFieldToFilter ().
• addAttributeToFilter().
• addWhere().
• filterByField().
• To speed up magento performance ,don’t run mysql and web server on the same machine
• Do not host files on your web server that you do not use
• Optmization of session storage ,identification and disabling of unused magento modules
• Enabling Magento flat catalog. (Magento uses a complex and resource-intensive Entity Attribute
Value [or EAV] based catalog). After initial catalog establishment, enabling the flat catalog can
dramatically improve database querying time.
•All of the above
• Signup.php
• Registration.php
• new.php
• frontend.php
Q. Which of the following code snippets changes the positions of the compare product block in the
right column?
• <reference name="right">
<action method="unsetChild">
<block>catalog.compare.sidebar</block>
</action> <action method="insert">
<block>catalog.compare.sidebar</block>
<sublingName>right.permanent.callout</sublingName>
<after>1</after>
</action>
</reference>
• <reference name="right">
<action method="move">
<block>catalog.compare.sidebar</block>
<sublingName>right.permanent.callout</sublingName>
<after>1</after>
</action>
</reference>
• Simple Product
• Complex Product
• Grouped Product
• Configurable Product
• Virtual Product
• _renderBlock
• _toHtml
• _render
•_echoContents
Q. If module A declares a dependency upon Module B, which of the following is not valid to declare
such dependency?
• In Module A's module.xml file, Module B is listed in the <sequence> list
• declare a dependency upon Module B in A's composer.json
• declare a dependency upon Module A in B's composer.json
• in the deployment configuration, Modules A and B must both be defined as enabled.
Q. To Create a basic grid block you need define the following function? (Verified)
• getmassactionblock()
•_preparemassactions()
•_preparemassaction()
•getmassactionblocks ()
Q. We need to make the following actions in order to create a module with one payment method that
will ?
accept credit card information
authorize it when an order is submitted
save the transaction ID in order payment record
• Module declaration, module configuration, adapter model, declaring configuration options for admin
panel, database updates
• Module declaration, module validation, module configuration, declaring configuration options for
admin panel, database updates
• Module declaration, module validation, module configuration, adapter model, declare configuration
options for admin panel, database updates
• Customer
• Products
• Orders
• Clients
• Shipments=======right
Q. What function is the equal of the php’s unset to a varien_object?
• unset($param)====RIGHT
• uns{$param}()
• remove($param)
• unregister($param)
• Magento Admin
• Core=====RIGHT
• Storefront
• Basic