Page 1 of 1
About Question enthuware.ocpjp.v8.3.1916 :
Posted: Mon Sep 05, 2016 6:37 am
by ramy6_1
Hello ,
Option 4 is correct and I think it should access /a/a.txt at final step , right ?
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Mon Sep 05, 2016 11:05 am
by admin
What happened when you tried it out?
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Fri Nov 11, 2016 11:45 am
by gloria
I have tried it out and it is printing:
\a
\a\a.txt
\a\b
\a\b\b.txt
\a\c
So the answers for this question are wrong!
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Fri Nov 11, 2016 9:39 pm
by admin
Why to you think the answer is wrong? Did you read the explanation?
-Paul.
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Sat Nov 12, 2016 7:22 am
by gloria
As ramy6_1 noticed if the option 4 is correct, the code should also print /a/a.txt which is not mentioned in option 4. I also think it should print \a. I tried it out in eclipse and it is printing:
\a
\a\a.txt
\a\b
\a\b\b.txt
\a\c
the option 4 only gives:
/a/c
/a/b
/a/b/b.tx
so \a and \a\a.txt are missing from option 4. If you think that \a and \a\a.txt won't be printed then please explain why.
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Sat Nov 12, 2016 10:44 am
by admin
The question clearly says, "Which of the following options can be a part of possible output generated by the above statement?".
The options are not complete output but only a part of the complete possible output.
HTH,
Paul.
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Wed Dec 28, 2016 4:41 pm
by Tanooki
So it says I should select 1 answer...
But...
A
/a/b - can be part of output
/a/c - can be part of output
/a/b/b.txt - can be part of output
B
/a/b - can be part of output
/a/a.txt - can be part of output
/a/c - can be part of output
C
/a/b/b.txt - can be part of output
/a/c - can be part of output
/a.txt - cannot be part of output
D
/a/c - can be part of output
/a/b - can be part of output
/a/b/b.txt - can be part of output
....? So there are 3 correct answers and I can choose only one!
Tested on Windows, with C:\\a instead of /a
Output:
C:\a
C:\a\a.txt
C:\a\b
C:\a\b\b.txt
C:\a\c
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Thu Dec 29, 2016 1:21 am
by admin
The sequence is critical here. If it were not, each line would have been a separate option.
Paul.
Re: About Question enthuware.ocpjp.v8.3.1916 :
Posted: Thu Dec 29, 2016 2:56 am
by Tanooki
Then the question has to mention "can be part of the output, in this order".
And then still, the correct answer is not there... All of those answers are not part of the output in that order.