John is using the new Java editor to create a Java agent that will fill up some items in a Lotus Notes document. During the editing process, John realizes that a specific variable name is not the name of the item he wishes to update, but he used that variable many times in the code already. How will John change the name of the variable in the code?
A. Double-click the variable name to select it, right-click, select Rename from the menu, enter the new variable name, and press Enter.
B. Click on the menu item Edit -> Rename in the dialog box, enter the new variable name, and click replace all.
C. Click the menu item Edit -> Find/Replace in the dialog box, enter the new variable name, and click replace all.
D. Double-click the variable name to select it, right-click, select Refactor from the menu, then select Rename, enter the new variable name, andpress Enter.
正解:D
質問 2:
Ivy is working on an XPage that displays one of 20 different pictures depending on the values of key fields. How should she accomplish this task?
A. Drag the image control onto the XPage, select the first image and set a Hide When formula to control when it displays. Repeat for eachimage.
B. Drag the image control onto the XPage, select the first image and set a visibility formula to control when it displays. Repeat for each image.
C. Drag the image control onto the XPage and select an image placeholder, then add each image to the Images[...] property and assign eachimage a visibility formula.
D. Drag the image control onto the XPage and select an image placeholder, then set the Image Source to be Computed and define it based onthe appropriate formula.
正解:D
質問 3:
Sean is trying to use an XPage application, and he needs to fill some fields located in the XPage. Even if he clicks the edit button located at the bottom of the page, the XPage is not switched into edit mode. What can be the cause of this behavior?
A. The OnClick Event of the button does not have "Edit" associated with "Change Document Mode" in the "Document Mode" field.
B. Sean needs to access the XPage application as "Manager" set in the ACL of the database, which is the only user-level right that allows theediting of documents.
C. The OnClick Event of the button does not have "Auto Edit" associated with "Change Document Mode" in the "Document Mode" field.
D. The rights assigned to Sean are Author rather than Editor.
正解:A
質問 4:
Kimberly has added a submit button to her XPage. Before the document is saved, she wants to make sure that the user actually wants to save the document. What should she do to accomplish this task?
A. Add a Confirm Action simple action on the button onclick event.
B. Add a Save Document core control to the form.
C. Add a Save Document simple action to the button onclick event.
D. Add a Confirm Action core control to the form.
正解:A
質問 5:
Jennifer has to get the IP address of the user who is accessing her Reporting XPage. This information is stored in a CGI variable. What global object can she use to access the IP address and all other CGI variables contained in the incoming request?
A. facesContext
B. headerValues
C. paramValues
D. cookie
正解:A
質問 6:
Nathan is adding the ability to upload files to his XPages application. What can he do to have the files placed in a particular rich text field.
A. The file is uploaded as a V2Attachment and stored outside of the fields. To add it to a particular rich text field, Nathan can write an agent tosave the file to the operating system and reattach using the NotesRichTextItem classes.
B. In the Properties view, on the All Properties tab, under Basics, select the fieldName property and specify a Domino document data sourceand bind to the specific rich text field.
C. In the Properties view, on the File Upload tab, under Options, select the Add File to Field option and specify a Domino document data sourceand bind to the specific rich text field.
D. In the Properties view, on the Data tab, select Simple Data Binding and specify a Domino document data source and bind to the specific richtext field.
正解:D
質問 7:
Ignacio needs to enable rich-text editing in his web application. He would like to take advantage of the Dojo rich-text editing control available in XPages, but he needs to use it on a form instead. How can he do this task?
A. Create a temporary XPage with a rich-text editing control, then go to the Source tab and copy
the XML for the rich-text control and paste itonto the form.
B. Create an otherwise blank XPage with a rich-text editing control and use pass-through HTML to
include that XPage within the form.
C. The only way to do this task is to set up a separate Dojo installation within his application;
Ignacio cannot access the Dojo libraries used in
XPages.
D. Select Using JavaScript Control on the rich-text field's Web Access Display property.
正解:D
Matsuki -
C2040-951合格率はやや高めの試験ですが、読んだだけですが分かりやすく読みやすいです。