Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E720 Topic 2 Question 16 Discussion

Actual exam question for Adobe's AD0-E720 exam
Question #: 16
Topic #: 2
[All AD0-E720 Questions]

An Adobe Commerce developer needs to modify the width and height of all product images inside the theme Vendor/theme. What file inside the theme is responsible for these changes?

Show Suggested Answer Hide Answer
Suggested Answer: A

To customize a JavaScript component that is written as a function, the developer can use option A. This option will use the prototype property of the function to extend its functionality and add new methods or properties. For example:

function Component() { // Component logic }

Component.prototype.customMethod = function() { // Custom method logic };

This will create a new method called customMethod on the prototype of the Component function, which can be accessed by any instance of the Component object. The developer can also override existing methods or properties on the prototype by reassigning them with new values.

Option B is not correct because it will not extend the native JavaScript function, but create a new function that wraps the original function. This will not allow the developer to access or modify the properties or methods of the original function. Option C is not correct because it will not extend the native JavaScript function, but create a new object that inherits from the original function. This will not allow the developer to customize the original function itself, but only its instances.


Contribute your Thoughts:

Vonda
10 days ago
Maybe they're testing us on our ability to read between the lines... or is that just me being a little too 'meta' here?
upvoted 0 times
...
Ettie
11 days ago
I'm just hoping the correct answer isn't 'All of the above' - that would be a real head-scratcher!
upvoted 0 times
...
Danica
13 days ago
This is a tricky one, but I'm going to have to go with B. The view.xml file just seems like the most logical place for these kinds of theme-level image settings.
upvoted 0 times
...
Tommy
14 days ago
Nah, I'm pretty sure it's C. The theme.xml file is the main configuration file for the entire theme, so that's where you'd expect to find image settings.
upvoted 0 times
...
Theodora
15 days ago
I'm not so sure. The view.xml file is responsible for a lot of the visual configuration, so that might be the right answer.
upvoted 0 times
...
Catalina
1 months ago
I think the answer has to be A. The images.xml file is where you define the image settings, including the width and height.
upvoted 0 times
Marguerita
28 days ago
No, I believe the correct file is B) Vendor/theme/etc/view.xml. That's where you can adjust the dimensions of product images.
upvoted 0 times
...
Teresita
1 months ago
I think the answer has to be A. The images.xml file is where you define the image settings, including the width and height.
upvoted 0 times
...
...
Frederica
2 months ago
I'm not sure, but I think it might be C) Vendor/theme/etc/theme.xml.
upvoted 0 times
...
Paris
2 months ago
I agree with Sherrell, because the view.xml file is responsible for layout configurations.
upvoted 0 times
...
Sherrell
2 months ago
I think the answer is B) Vendor/theme/etc/view.xml.
upvoted 0 times
...

Save Cancel