Oracle
1Z0-804 · Question #140
1Z0-804 Question #140: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #140. The question stem and answer options stay visible for context.
Question
Given: Which two statements, inserted independently at line ***, enable the program to produce the following output: We have 002 Blue pants that cost $24.99.
Options
- ASystem.out.printf("We have %03d %s pants that cost $%3.2f.\n",quantity, color, price);
- BSystem.out.printf("We have$03d$s pants that cost $$3.2f.\n",quantity, color, price);
- CString out = String.format ("We have %03d %s pants that cost $%3.2f.\n",quantity, color,price);
- DString out = System.out.format("We have %03d %s pants that cost $%3.2f.",quantity, color, price);
- ESystem.out.format("We have %s%spants that cost $%s.\n",quantity, color, price);
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 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.