Page 1 of 1

About Question enthuware.ocpjp.v8.2.1174 :

Posted: Tue Feb 23, 2016 12:26 am
by fomaerkek
Which of the following texts can occur in a valid resource bundle file?

greetings=bonjour

<key name="greetings">bonjour</key>

<key name="greetings" value="bonjour" />

<key>   
<name>greetings</name>   
<value>bonjour"</value>
</key>

<key>greetings</key>
<value>bonjour</value>

greetings1=bonjour
greetings2=no bonjour


greetings1=bonjour,greetings2=no bonjour

The test says that the two green options are valid.
Why is the last option invalid?
It is a valid key-value pair with key='greetings1' and value='bonjour,greetings2=no bonjour'

Re: About Question enthuware.ocpjp.v8.2.1174 :

Posted: Tue Feb 23, 2016 7:47 am
by admin
You are right that technically it is valid. By the same logic even <key name="greetings">bonjour</key> is valid.

In exam, however, you are told how many correct options you have to select and therefore you need to select the best options. Here, from the code, it is quite clear that it is talking about two keys greetings1 and greetings2. So you should not select the other options.

You should expect such slight ambiguity in the real exam as well.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v8.2.1174 :

Posted: Sun Jun 25, 2017 5:17 am
by ssszzz
A properties file is a plain text file that contains key value pairs in this format:
key=value
The explanation seems to be slightly incorrect since not only 'key=value' is allowed.
The following example of properties file contains three valid key-value pairs:

Code: Select all

test1 a
test2:b
test3 = c

Re: About Question enthuware.ocpjp.v8.2.1174 :

Posted: Sun Jun 25, 2017 11:27 pm
by admin
You are right. The explanation has been enhanced to include all the valid ways.

thank you for your feedback!
Paul.