최신 IBM-Lotus A2040-922 무료샘플문제:
1. John has a page with an edit box and a submit button and decides he wants to use a Dojo NumberSpinner dijit. He adds the dojoType dijit.form.NumberSpinner to the edit box. The submit button stops working. What is the reason for the submit button not working?
A) John needs to add a server side JavaScript library to the XPage
B) John needs to configure themes to include a dojo theme like tundra
C) John needs to check the check box "Enable Dojo" on the submit button
D) John needs to add a dojo module to the XPage.
2. Tim has an XPage containing an Edit Box. He has read that it is possible to use the Dojo Toolkit NumberSpinner control in XPages, and he wishes to modify his XPage so that the Edit Box will appear as a Number Spinner in the browser. What would the steps be to accomplish this?
A) Import the NumberSpinner.js file from Dojo into the application as a JavaScript Library.
In the XPage, in the Resources tab of the Properties view, add a JavaScript Library resource for
that NumberSpinner.js file to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
B) Import the NumberSpinner.js file from Dojo into the application as a Dojo Module.
In the XPage, in the Resources tab of the Properties view, add that Dojo Module resource for that
NumberSpinner.js file to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
C) From the Dojo Tollkit Website, get the URL to the most recent version of the NumberSpinner.js
control (where the URL begins with http://).
In the XPage, in the Resources tab of the Properties view, add a JavaScript Library using that
URL.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
D) In the XPage, in the Resources tab of the Properties view, add a Dojo Module resource for
"dijit.form.NumberSpinner" to the XPage.
Configure the Edit Box to set the dojoType to "dijit.form.NumberSpinner".
3. Fred wants to remove any reference to pre-defined CSS frameworks such as OneUI from his XPages application. How does he achieve this?
A) Create a new Theme which extends the "webstandard" framework like this:
<theme extends="webstandard">
</theme>
B) Create a new Theme which extends the "none" framework like this:
<theme extends="none">
</theme>
C) Create a new Theme which removed the extends property from the theme definition like this:
<theme>
</theme>
D) It is not possible to remove all CSS files from an XPages application
4. Aaron has created an XPages application that has a couple of XPages to surface the same data to two different application roles in two completely different user interfaces. Each role can manipulate parts of the data, but in both cases, the data must adhere to the same business logic and rules. What would be the best way for Aaron to implement the same business logic in each XPage?
A) Use a series of Custom Controls to hold the business logic and share them amongst the XPages
B) Create a common Client-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
C) The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage
D) Create a common Server-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic
5. Lydia wants to create a JSON string to represent an array with three objects. Each object has two variables, vA and vB, set to different string values of "one", "two", "three", "four", "five", and "six". What is the proper syntax for the JSON string?
A) new Array(new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }));
B) [ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]
C) "[ { vA: one, vB: two },{ vA: three, vB: four },{ vA: five, vB: six } ]"
D) "[ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]"
질문과 대답:
질문 # 1 정답: D | 질문 # 2 정답: D | 질문 # 3 정답: C | 질문 # 4 정답: D | 질문 # 5 정답: D |