Multiple Choice
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/) . You create a new custom template to show the information. How do you obtain an order repository so you can fetch an order?
A) Create a view model and specify an OrderRepositoryInterface argument in the _construct method
B) In your template, add the following: $orderRepository=ObjectManager::getInstance() ->get(OrderRepositoryInterface::class) ;
C) In your block, add a method with the following: return ObjectManager::getInstance() ->get(OrderRepositoryInterface::class) ;
D) $orderRepository = new OrderRepository() ;
Correct Answer:

Verified
Correct Answer:
Verified
Q92: A module you are working on needs
Q93: A third-party module uses a layout update
Q94: You are working on a custom web
Q95: You added a new constructor argument to
Q96: What will be the result of calling
Q97: You are writing a customization for the
Q98: You are adding a new menu item
Q100: The module MyCompany_MyModule will add a new
Q101: How do you persist an entity to
Q102: How do you add a foreign key