Oracle
1Z0-554 · Question #65
1Z0-554 Question #65: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-554 to reveal the answer and full explanation for question #65. The question stem and answer options stay visible for context.
Question
You want to display a calculation of the total compensation for an employee. The total compensation is the salary plus the salary multiplied by any commission percentage. The salary and commission percentage are stored in the database, but the total compensation is not. A transient attribute has been defined in the employee entity object to display the total compensation. What would be the transient attribute's value if it was written in Groovy?
Options
- A(Salary!=null ? Salary: 0) + (Salary* (CommissionPct ! =null : CommissionPct ? 0))
- B(Salary! =null ? Salary : 0) +- (Salary* (CommissionPct:) )
- C(Salary! =null : Salary*? 0) + (Salary* (CommissionPct !=null ? CommissionPct : 0) )
- D(Saiary!=null ? Salary: 0) +(Salary* (CommissionPct ==null ? CommissionPct : 0) )
- E(Salary !=null 7 Salary: 0) + (Salary* (CommissionPct !=null ? CommissionPct ; 0))
Unlock 1Z0-554 to see the answer
You've previewed enough free 1Z0-554 questions. Unlock 1Z0-554 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.