Matt,
For Question 4, only A should be correct. Because with Unidirectional CMR, Bar won't have a getFoo() method. So you are correct on that point.
Question 12:
Which will return all orders that have line items?
IMO, correct answer should be:
SELECT OBJECT(o) FROM Order o WHERE o.lineItems IS NOT EMPTY
Option D would not discard duplicate Orders in result, but it would return all Orders from Order table irrespective of whether Order has lineitems or not.
Option A would discard duplicate Orders in result, but it would return Orders from Order table irrespective of whether Order has lineitems or not.
The above query would simply create identification variable o for Order and li for Lineitem. It would not verify whether Order has at least one lineitem or not.
So I would say there should be an option to select:
E] None of the above Please correct me if I am wrong in my understanding.
Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.