exam questions

Exam Magento 2 Certified Associate Developer All Questions

View all questions & answers for the Magento 2 Certified Associate Developer exam

Exam Magento 2 Certified Associate Developer topic 1 question 17 discussion

Actual exam question from Magento's Magento 2 Certified Associate Developer
Question #: 17
Topic #: 1
[All Magento 2 Certified Associate Developer Questions]

You are adding a child node to the product.info block using the XML:

How will this block be rendered?

  • A. Child block nodes are automatically rendered as HTML
  • B. By calling $block->getChildHtml('mynewblock') in the parent block's template
  • C. The layout is invalid since block elements cannot be nested
  • D. Automatically if the block class Custom implements the _toHtml method
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://magento.stackexchange.com/questions/49361/how-to-put-my-block-in-catalog-product-view-page

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...