About Question enthuware.ocpjp.i.v11.2.1176 :
Posted: Sun Jun 14, 2020 1:12 am
The wording of this question is very confusing as the first phrase contradicts the second phrase. First it stated that the argument was given on the CLI, but then it stated that no argument was given. The confusion here is, "The program cannot print out the last argument AND [when] no argument was given."
I had to read it for a long time to finally understand that the specifications are independent of one another. Changing "and" to "or" fixed it.print the last argument given on the command line to the standard output, and exit without any output or exception stack trace if no arguments are given?
print the last argument given on the command line to the standard output, OR exit without any output or exception stack trace if no arguments are given?