IBM Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design 認定 LOT-922 試験問題:
1. Titus has created a JSON string that he will pass to the browser. What method could he use to convert the string to an object?
A) dijit,fromJson()
B) dijit.toJson()
C) dojo.fromJson()
D) dojo.toJson()
2. Jeremy wants all of the dijit.Dialog boxes in his application to call a client side JavaScript function called "validateForm" whenever they are hidden. What is the best solution?
A) Create a custom Dojo control and use that instead of the standard dijit.Dialog in the application
using the following code:
/**
*Custom Dojo Control
*/
dojo.provide('com.myco.widget.Dialog');
dojo.require('dijit.Dialog');
(function(){
dojo.declare("com.myco.widget.Dialog", dijit.Dialog, {
onHide: validateForm
})
}());
/**
*Initialization code
*/
var dialog = new com.myco.widget.Dialog();
B) Whenever he initializes a new dijit.Dialog, add an onHide event like so:
var dialog = new dijit.Dialog({
onHide: validateForm
}
);
C) Create a custom Dojo control and use that instead of the standard dijit.Dialog in the application
using the following code:
/**
*Custom Dojo Control
*/
dojo.provide('com.myco.widget.Dialog');
dojo.require('dijit.Dialog');
(function(){
dojo.declare("com.myco.widget.Dialog", dijit.Dialog, {
onHide: validateForm
})
}());
/**
*Initialization code
*/
var dialog = new com.myco.widget.Dialog();
D) Create a custom Dojo control and use that instead of the standard dijit.Dialog in the application
using the following code:
/**
*Custom Dojo Control
*/
dojo.provide('com.myco.widget.Dialog');
dojo.require('dijit.Dialog');
(function(){
dojo.declare("com.myco.widget.Dialog", dijit.Dialog, {
onHide: validateForm
})
}());
/**
*Initialization code
*/
var dialog = new dijit.Dialog();
E) Create a custom Dojo control and use that instead of the standard dijit.Dialog in the application
using the following code:
/**
*Custom Dojo Control
*/
dojo.provide('com.myco.widget.Dialog');
dojo.require('dijit.Dialog');
(function(){
dojo.declare("com.myco.widget.Dialog", dijit.Dialog, {
onHide: validateForm
})
}());
/**
*Initialization code
*/
var dialog = new com.myco.widget.Dialog();
F) Create a custom Dojo control and use that instead of the standard dijit.Dialog in the application
using the following code:
/**
*Custom Dojo Control
*/
dojo.provide('com.myco.widget.Dialog');
dojo.require('dijit.Dialog');
(function(){
dojo.declare("com.myco.widget.Dialog", dijit.Dialog, {
onHide: validateForm
})
}());
/**
*Initialization code
*/
var dialog = new com.myco.widget.Dialog();
G) In the "Close" or "Cancel" button of each dialog add a call to validateForm in the onClick event.
3. 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
4. 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 "none" framework like this:
<theme extends="none">
</theme>
B) Create a new Theme which extends the "webstandard" framework like this:
<theme extends="webstandard">
</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
5. Liz must do a code review of a third party XPages application in order to optimize performance wherever possible. She has come up with a shortlist of things to do. Each of the following can be used to improve performance EXCEPT which one?
A) Setting the dataCache property on Domino view data sources to "full" wherever possible
B) Using partial refresh wherever possible.
C) Using viewScope variables to manage application state wherever possible
D) Replacing post-based requests with get-based requests wherever possible
質問と回答:
質問 # 1 正解: C | 質問 # 2 正解: A、C、E、F | 質問 # 3 正解: B | 質問 # 4 正解: C | 質問 # 5 正解: A |