1. Question: Which of the following is the correct way to change the image source during click event of a button in jQuery?

    A
    $("#button").click(function(){ $(“img”).src(); });

    B
    $("#button").click(function(){$(“img”).attr(); });

    C
    $("#button").submit(function(){$(“img”).text();});

    D
    $("#button").submit(function(){$(“img”).html(); });

    Note: Not available
    1. Report
  2. Question: What is the purpose of $(document).ready() function in JQuery?

    A
    To execute functions after all content and images are loaded

    B
    To execute functions after DOM is loaded

    C
    To execute functions before DOM load

    D
    To execute functions before content and images load

    Note: Not available
    1. Report
  3. Question: Which of the following will show an alert containing the content(s) of a database selection?

    A
    $.ajax({ type: "GET", url: "process_file.php?comp_id="+comp_id, success: function (result) { alert(result); } });

    B
    $.ajax({ type: "GET", success: function (result) { alert(result); } });

    C
    $.ajax({ type: "GET", url: "process_file.php?comp_id="+comp_id, error: function (result) { alert(result); } });

    D
    $.ajax({ type: "GET", url: "process_file.php?comp_id="+comp_id, Complete: function (result) { alert(result); } });

    Note: Not available
    1. Report
  4. Question: How can an Ajax request that has not yet received a response be canceled or aborted?

    A
    xhr is an Ajax variable xhr.abort()

    B
    xhr is an Ajax variable xhr.cancel()

    C
    xhr is an Ajax variable xhr.die()

    D
    xhr is an Ajax variable xhr.destroy()

    Note: Not available
    1. Report
  5. Question: Which of the following will display a customer's TAX/VAT number?

    A
    $taxvat = $order['customer_taxvat'];

    B
    $order->getData('customer_taxvat');

    C
    $order->getQuote()->getCustomerTaxvat();

    D
    $order->getData()->getCustomerTaxvat();

    Note: Not available
    1. Report
  6. Question: Why does the error, "front controller reached 100 router match iterations", occur?

    A
    There is an error in the code.

    B
    Some modules failed to load.

    C
    Router references were set incorrectly.

    D
    .htacces is blocking URLs.

    Note: Not available
    1. Report
  7. Question: Which of the following will sort products in the catalog by the date they were added?

    A
    Under "app/code/core/Mage/Catalog/Model/Config.php", add this value to the $options array: 'created_at' => Mage::helper('catalog')->__('Date')

    B
    Under "app/code/core/mage/catalog/model/resource/eav/mysql4/product/collection.php", add this value to the $options array: $this->getSelect()->order("e.entity_id desc");

    C
    Under "app/code/core/Mage/Catalog/Model/Config.php", add this value to the $options array: 'sort_by' => Mage::helper('catalog')->__('Date')

    D
    It's not possible to sort products in the catalog by date.

    Note: Not available
    1. Report
  8. Question: Is it possible to trigger an event after an order has been set to "processing"?

    A
    Yes, by using a custom module.

    B
    Yes, by registering an event.

    C
    No, since it's a security threat.

    D
    No, since no additional action can be added at this stage.

    Note: Not available
    1. Report
  9. Question: Which of the following code samples will get all products sorted by 'position', assuming 'position' is of a numeric type?

    A
    $products = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->addAttributeToSort('position', 'ASC'); ->load();

    B
    $products = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->addOrder('position', 'ASC'); ->load();

    C
    function cmp($a, $b) { if ($a == $b) { return 0; } return ($a < $b) ? -1 : 1; } $products = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->load(); usort($products, "cmp");

    D
    function mySortByPosition($a, $b) { if ($a['position'] == $b['position']) { return 0; } return ($a['position'] < $b['position']) ? -1 : 1; } $products = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('*') ->addSorter(mySortByPosition) ->load();

    Note: Not available
    1. Report
  10. Question: Which of the following statements are correct about Magento quotes?

    A
    Quotes are offers to the user, which if the user accepts get converted into orders.

    B
    The lifetime of the quote cannot be controlled.

    C
    Quotes don't deal with metadata about the store.

    D
    Quotes are not related to order payment and shipping method information.

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd