Brandon wants to extend Dojo's dijit.Dialog box to add some extra functionality. How would Brandon declare the new Dojo class?
A. dijit.declare("brandons.Dialog", "dijit.Dialog", { // added functionality });
B. dojo.declare("brandons.Dialog", "dijit.Dialog", { // added functionality });
C. dojo.declare("brandons.Dialog", dijit.Dialog, { // added functionality });
D. dijit.declare("brandons.Dialog", dijit.Dialog, { // added functionality });
正解:C
質問 2:
Tamsin is building an XPages application for use on mobile devices. She finds the font and row height on View Panel controls too small and difficult to navigate on a touch screen. Which View Panel property should she add her CSS class to?
A. captionStyleClass
B. dataTableStyleClass
C. viewStyleClass
D. viewPanelStyleClass
正解:B
質問 3:
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. 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".
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. 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".
正解:A
質問 4:
John needs to access data which is in a relational database from his XPages application. What is the best option for accessing the data?
A. As long as there is a JDBC driver available for the database then John can write Java to access the database
B. As long as there is a JDBC driver available for the database then John can write Java or Server Side Javascript to access the database.
C. The relational data source would need to have a web service added to it to allow access to the data.
D. It is not possible to access relational data from an XPage
正解:B
質問 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. "[ { vA: 'one', vB: 'two' },{ vA: 'three', vB: 'four' },{ vA: 'five', vB: 'six' } ]"
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. new Array(new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }), new Object({ vA: 'one', vB: 'two' }));
正解:A
質問 6:
Pat wishes to create a new XPages UI control which will take user input. At a MINIMUM which of the following does he need to do?
A. Create a UI Component extension Java Class that extends UIInputComponent, create an xspconfig file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup.
B. Create a UI Component extension Java Class that extends UIInput, create an xsp-config file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup.
C. Create a UI Component extension Java Class that extends UIInputComponent, create an xspconfig file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup. Then create a managed bean definition in faces-config.xml.
D. Create a custom control with an edit box and reuse the custom control within the XPages
正解:B
質問 7:
John has a JavaScript function in a Client Side JavaScript library which he wrote to parse some JSON data and loop through the resulting objects. If he wanted to perform the same task in Server Side JavaScript what would be the most efficient action?
A. write a new function in Server Side JavaScript to perform the same task
B. copy the Client Side function into a Server Side JavaScript library, add the script library to his XPage and call the function from his Server Side JavaScript
C. Server Side JavaScript does not work with JSON data
D. add the Client Side JavaScript library to his XPage and call the function from his server side JavaScript
正解:B
樋口** -
有難いPass4Testさんに出会って本当に感謝しかありません!A2040-922の試験、見事にごうかくしておるんじゃ