IBM Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design (C2040-922) Free Practice Test
Question 1
John has a managed bean which is defined as follows: <faces-config> <managed-bean> <managed-bean-name>distanceConverter</managed-bean-name> <managed-beanclass>bean.MyBean</managed-bean-class> <managed-bean-scope>view</managed-beanscope> </managed-bean> </faces-config> The bean has a property called 'miles' which allows a distance in miles to be entered and converted to kilometers. John wishes to have a user enter a value via an edit box and use the managed bean to convert the value from miles to kilometers. What should the value of the edit box's value attribute be in order to utilize the managed bean?
Correct Answer: D
Question 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?
Correct Answer: B,C,D,E
Question 3
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?
Correct Answer: D
Question 4
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?
Correct Answer: B
Question 5
Eric has added the Dojo Module "dijit.form.FilteringSelect" to his XPage and set the dojoType on his Combo Box to "dijit.form.FilteringSelect". However, when he previews his XPage he is not seeing the FilteringSelect? What has he done wrong?
Correct Answer: B
Question 6
Marco has built an XPage that has increased in complexity over time and now contains several hundred lines of XSP markup, with many postback actions that conditionalize the display of the page. He feels that the page does not perform well and is looking to improve the responsiveness for the end-user. He is considering the following actions to improve performance. All of the following actions may improve performance EXCEPT which one:
Correct Answer: B
Question 7
Eric is writing an XPages in the Notes Client (XPinC) application and has a data type problem in a Server Side JavaScript function. How can he find out more information about the objects in his code?
Correct Answer: C