About Question enthuware.ocpjp.v8.2.1174 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
fomaerkek
Posts: 1
Joined: Wed Jun 10, 2015 6:44 am
Contact:

About Question enthuware.ocpjp.v8.2.1174 :

Post 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'

admin
Site Admin
Posts: 8913
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

ssszzz
Posts: 13
Joined: Wed Jun 14, 2017 1:56 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 8913
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. The explanation has been enhanced to include all the valid ways.

thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests