Elizabeth needs to parse the contents of a web page held on a remote server into an applicationScope variable via the server side onclick event of a button using Server Side JavaScript. How would she do this?
A. It is not possible to perform network operations from Server Side JavaScript
B. Create a new Java class to perform the operation in a Java Script Library and call it from the onclick event of the button.
C. Create a new Java class to perform the operation in the WebContent\WEB-INF\src folder via the Package Explorer and call it from the onclick event of the button.
D. Create a new Java class to perform the operation in a Java Agent and call it from the onclick event of the button.
正解:C
質問 2:
Francis wants to add a ClientSide JavaScript library called "loading.js" to his XPages. What is the best method to achieve this?
A. He should add the following code to a theme:
<resource>
<content-type>application/x-javascript</content-type>
<href>loading.js</href>
</resource>
B. He must add the script library as a resource to each XPage.
C. He should add it to a Custom Control, which he should then add to every XPage.
D. He should add the following code to a theme:
<resource>
<content-type>text/javascript</content-type>
<href>loading.js</href>
</resource>
正解:A
質問 3:
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
質問 4:
Per wants to connect to a datasource using JDBC. What is the best way to do this?
A. He must use a third-party tool like DECS or LEI.
B. He will need to download and install the relevant JDBC drivers and write SSJS or Java to call the required methods.
C. The necessary JDBC drivers will come pre-installed with Domino. He just needs to write SSJS or Java to call the required methods.
D. Write a LotusScript or Java agent and call it from Client-Side JavaScript, as he would have done in traditional Domino web applications.
正解: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:
Rick creates a Server-Side JavaScript library, and defines a few global variables at the beginning of the library. The JavaScript in his XPage and in the JavaScript library modify those global variables. The server the application runs on is heavily used, and the application settings are set to Keep Pages on Disk for best scalability. When the application executes, what is likely to happen?
A. The application will generate an error because you can not declare global Server-Side JavaScript variables
B. The application will run, but the values of the globally defined variables may be lost when the server's JVM garbage collects variables, causing unexpected results.
C. The application will run, but every partial or full refresh will reset the values of the global variables when it reloads the Server-Side JavaScript library.
D. The application will perform as expected.
正解:B
質問 7:
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
Ikeuchi -
この度は御社Pass4Testの製品を利用させてもらいますので、
合格できました!かなりのC2040-922的中率でした。ありがとうございました。