Certbus > IBM > IBM Certified Application Developer > C2040-951 > C2040-951 Online Practice Questions and Answers

C2040-951 Online Practice Questions and Answers

Questions 4

Darren is working with the Outline view on a new XPage. He drags a button control so that it is above an edit box control. What effect does this have on the XPage in the Design editor?

A. The button control will move above and to the left of edit box control.

B. There will be no effect until Darren saves the Xpage, then the button control will move above and to the left of edit box control.

C. There will be no effect until Darren clicks the Synchronize Navigator with Editor tab in the application navigator, then the button control willmove above and to the left of edit box control.

D. There will be no effect until Darren clicks the Synchronize Navigator with Editor tab in the Outline view, then the button control will moveabove and to the left of edit box control.

Browse 94 Q&As
Questions 5

Devin has been developing an application that includes an XPage. When he opened the application in Designer this morning, he noticed a small "x" icon by the XPages listing in the Applications view. He had closed several of the Eclipse views yesterday, and does not see any errors displayed in the remaining views. How can Devin locate the problems in the source code?

A. Right-click the "x" icon from the Applications view and select Go To Error. The Problems view displays with the cursor at the first error.

B. Display the Problems view by selecting Window > Show Eclipse Views > Problems. Right-click a displayed error and select Go To. The Source view opens to the line with the error.

C. Click to expand the XPages listing. A small "x" icon displays by the XPage with the errors. Double-click the name of the XPage and the Sourceview opens to the line with the error.

D. Click to expand the XPages listing. A small "x" icon displays by the XPage with the errors. Double-click the name of the XPage. The Sourcetab opens with the cursor at the first error line.

Browse 94 Q&As
Questions 6

Elizabeth is modifying the Customers composite application. She needs to add code to determine if the RecentOrders component can be repositioned. What is a function she could use for this purpose?

A. @IsMoveable("RecentOrders")

B. @GetComponentProperty(MOVEABLE)

C. @ComponentProperty("RecentOrders"; MOVEABLE)

D. @GetComponentViewPreference(com.ibm.rcp.moveable)

Browse 94 Q&As
Questions 7

Tara is writing an agent that allows users to reset their password on their ID file from the ID vault. What method listed below would need to be used in the agent to accomplish this task?

A. notesSession.ResetUserPassword

B. notesuiworkspace.ResetUserPassword

C. notesDatabase.ResetVaultIDPassword

D. notesAdministrationProcess.ResetIDPassword

Browse 94 Q&As
Questions 8

Fiona would like to create an XPage that would switch into edit mode. In order to allow users to edit the page she would like to add a button to do this. How should she set up the button to perform this action?

A. XPages cannot be opened in edit mode.

B. No button needs to be added, XPages are opened in edit mode by default.

C. In the Properties tab, select "simple action", click "add action"; in the dialog, select Document for Category, select "Change document mode"in the "action" field, and then select "auto edit" in the "Document mode" field.

D. In the Event tab, select "simple action", click "add action"; in the dialog, select Document for Category, select "Change document mode" inthe "action" field, and then select "auto edit" in the "Document mode" field.

Browse 94 Q&As
Questions 9

Sawyer wants to display the contents of the family members field, which contains multiple values, as a list on his contacts XPage. Which control would allow Sawyer to display multiple values in a field as a list?

A. Use the repeat control

B. Use the table control

C. Use the panel control

D. Use the database control

Browse 94 Q&As
Questions 10

Sheldon has created an XPage for a grocery application that once submitted will redirect the user to the confirmation XPage. Which method of the context object can Sheldon use to perform the redirect?

A. setRedirect(page:string)

B. redirectToPage(page:string)

C. redirectToXPage(page:string)

D. setXPageRedirect(page:string)

Browse 94 Q&As
Questions 11

Lenni added a style sheet to an XPage using a URL link. The style sheet contains a class to format text to be red and bold. She applied the class to a label control; however, when she previews the XPage in a web browser, the label text is bold but the font is black.

Which of the following could be causing the label font to be black?

A. A color style cannot be applied to label text.

B. Black is selected in the font color properties of the label.

C. The style sheet must be imported into the XPage application.

D. The style applied to the table cell where the label resides is overriding the label style.

Browse 94 Q&As
Questions 12

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. 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.

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. 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.

Browse 94 Q&As
Questions 13

Zachary is creating a new theme for his XPage. How is the theme file formatted in the Resources area of the application?

A. XML

B. CSS

C. HTML

D. JavaScript

Browse 94 Q&As
Questions 14

Kyle has been asked to add a agent in his Customer Management application that will create a contact file for the current user in the vCard format. The information for the vCard is contained in the Domino directory. Kyle writes the following agent: Dim session As New NotesSession Dim dbThis As NotesDatabase Dim dbNAB As NotesDatabase Dim docThis As NotesDocument Dim docNAB As NotesDocument Dim dcThis As NotesDocumentCollection Dim viewNAB As NotesView Set dbThis = session.CurrentDatabase Set dbNAB = session.GetDatabase("SVR01/ ACME", "names.nsf", False) Set viewNAB = dbNAB.GetView("($Users)") Set dcThis = dbThis.UnprocessedDocuments() Set docNAB = viewNAB.GetDocumentByKey(session.CommonUserName, True) Set docThis = dcThis.GetFirstDocument Do While Not (docThis Is Nothing) *** Missing Line Of Code *** Call docThis.Save(True, False) Set docThis = dcThis.GetNextDocument(docThis) Loop What missing line of code accomplishes this task?

A. Call dbNAB.AttachVCard(docNAB)

B. Call docThis.AttachVCard(dbNAB)

C. Call docThis.AttachVCard(docNAB)

D. Call docNAB.AttachVCard(docThis)

Browse 94 Q&As
Questions 15

Marta needs to store a value and reuse it throughout the life of each Web user's interaction with her XPages application. How should she set the property named itle to enior Project Manager?

A. sessionScope.Title= "Senior Project Manager"

B. applicationScope.Title= "Senior Project Manager"

C. sessionScope.setValue("Title", "Senior Project Manager")

D. applicationScope.setValue("Title", "Senior Project Manager")

Browse 94 Q&As
Questions 16

Dina has created a tabbed panel on her XPage and she needs to add an additional tab.

How can she do this?

A. Within the Outline, right-click the Tabbed Panel and select Insert or Append Tab.

B. Within the Outline, select one of the Tab panels, and use CTRL+C and CTRL+V to paste in a new copy.

C. Select the Tabbed Panel in the XPage editor, select the Tabbed Panel menu, and select either Insert or Append Tab.

D. Select the Tabbed Panel in the XPage editor, select All Properties in the Properties View, and edit the tabEntries property to add anothertab.

Browse 94 Q&As
Questions 17

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 rights assigned to Sean are Author rather than Editor.

B. The OnClick Event of the button does not have "Edit" associated with "Change Document Mode" in the "Document Mode" field.

C. The OnClick Event of the button does not have "Auto Edit" associated with "Change Document Mode" in the "Document Mode" field.

D. 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.

Browse 94 Q&As
Questions 18

Henry is using a requestScope scoped variable (rSa) in an XPage called XPageA to make it available in XPageB. John is testing XPageB, but rSa is still empty. Which of the following is causing this behavior?

A. Henry has not defined the variable yet.

B. rSa is not defined on the server.

C. Henry needs to test XPageB from the action set on XPageA.

D. John mistakenly typed: requestScope.get(rSa) instead of requestScope.get("rSa").

Browse 94 Q&As
Exam Code: C2040-951
Exam Name: IBM Lotus Notes Domino 8.5 Application Development Update
Last Update: May 02, 2024
Questions: 94 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99