Skip to main content

C2040-951 Real Exam Questions

IBM Lotus Notes Domino 8.5 Application Development Update

94 questions available · Page 1 of 10

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Ashley is writing a server-side script to process the request parameters that are passed in her Registration XPage.

What global object should she use to access the parameters that she's interested in?

  1. A

    param

  2. B

    header

  3. C

    cookie

  4. D

    requestScope

Show answer and explanation

Correct answer: A

Question 2 Single choice

Michael is creating an XPage for his company's satellite tracking application. The XPage is bound to the satinfo form as a data source that contains basic information about the requested satellite. There is also a

custom control on the XPage that is bound to the maintenance form as a data source, which displays information about the satellite's maintenance history. When Michael adds a submit button to the XPage, he wants the data entered into either section to be saved to the appropriate form.

What does Michael need to do to accomplish this?

  1. A

    Click the submit button, then select the events view. Next select the onclick mouse event, and click
    "Add Action". Select "Save Data Sources".

  2. B

    Click the submit button, then select the actions view. Next select the onclick mouse event, and
    click"Add Action". Select "Save DataSources".

  3. C

    Click the submit button, then select thedata view. Next select the onclick mouse event, and click "Add Action". Select "Save Data Sources".

  4. D

    Click the submit button, then select the properties view. Next select the onclick mouse event, and
    click"Add Action". Select "Save DataSources".

Show answer and explanation

Correct answer: A

Question 3 Single choice

Percy has written a LotusScript agent that creates a vCard and attaches it to a selected Person record in the Domino directory. His agent runs to completion, but when he opens the document it does not have the vCard attached. Given the following LotusScript code, what is the cause of the problem? Dim session As New NotesSession Dim dbNAB As NotesDatabase Dim docNAB As NotesDocument Dim dcNAB As NotesDocumentCollection Set dbNAB = session.CurrentDatabase Set dcNAB=dbNAB.UnprocessedDocuments Set docNAB = dcNAB.GetFirstDocument Do While Not (docNAB
Is Nothing) Call docNAB.AttachVCard(docNAB) Set docNAB = dcNAB.GetNextDocument(docNAB) Loop

  1. A

    The agent doesn't save docNAB after attaching the vCard.

  2. B

    The AttachVCard method cannot use the same document object as both source and target documents.

  3. C

    The AttachVCard method requires an additional parameter, specifically a ForceDocumentSave boolean value.

  4. D

    The AttachVCard method can only be used with mail memo documents as the target, so the agent would have to call docNAB.Send to attachthe vCard.

Show answer and explanation

Correct answer: A

Question 4 Single choice

Priscilla has used the Set Value simple action to define the value of the Author field on her XPage.

Which of the following is a valid binding in the Expression Language?

  1. A

    [dominoDocument1.Author]

  2. B

    "dominoDocument1.Author"

  3. C

    {dominoDocument1.Author}

  4. D

    #{dominoDocument1.Author}

Show answer and explanation

Correct answer: D

Question 5 Single choice

Odette is designing the index XPage that is used for navigation for her Domino application.
For what purpose might Odette use the Outline view in Domino Designer in Eclipse while working with the index XPage?

  1. A

    To drag elements to rearrange sections and change the sequence of elements on the XPage.

  2. B

    To drag controls from the controls palette onto a hierarchical representation of the XML source code, typically during the initial design of the XPage.

  3. C

    Aside from the expand and collapse icons, nothing in an Outline view is clickable. Nonetheless, the Outline view provides an extremely usefulmeans to browse the XML elements of an XPage.

  4. D

    The Outline view provides a hierarchical representation of the XML source code in XPages.
    The developer can quickly update varioussettings from within the Outline view using right-click menu options for each element.

Show answer and explanation

Correct answer: A

Question 6 Single choice

Alexis has a PostalCode XPage in her application. When the Lookup button is clicked, control is redirected to the PostalCodeData XPage.

What global object would allow her to pass the postal code value from the PostalCode form to the PostalCodeData form, making sure that the data continues to be available until users close their browser?

  1. A

    context

  2. B

    sessionScope

  3. C

    requestScope

  4. D

    applicationScope

Show answer and explanation

Correct answer: B

Question 7 Single choice

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?

  1. A

    Call dbNAB.AttachVCard(docNAB)

  2. B

    Call docThis.AttachVCard(dbNAB)

  3. C

    Call docThis.AttachVCard(docNAB)

  4. D

    Call docNAB.AttachVCard(docThis)

Show answer and explanation

Correct answer: C

Question 8 Single choice

Daniel has an XPage design element that shows a view. The view has hundreds of entries, ten of which display at one time.

What core control can Daniel add to the XPage to allow the user to navigate through the view?

  1. A

    View control

  2. B

    Pager control

  3. C

    Repeat control

  4. D

    Navigator control

Show answer and explanation

Correct answer: B

Question 9 Single choice

Eric is using Peter's Lotus Domino Designer. He is developing an XPage component. When launching the Lotus Domino Designer help through Help/Help - Contents, anything he is searching on XPages is not found by the Eclipse help system.

Which option has Peter set that does not find any XPage help information?

  1. A

    XPage help is available only from the main topic or directly from an XPage element.

  2. B

    Peter search scope is limited to the LotusScript languagePeter? search scope is limited to the LotusScript language

  3. C

    The HTTP proxy parameters that Peter has defined are incorrectly set; Eric needs to correct them.

  4. D

    For XPage help Eric needs to open an XPage component directly in Lotus Domino Designer. If not, the option will not be available.

Show answer and explanation

Correct answer: B

Question 10 Single choice

Jack needs to display the release version of the Sales application on the top of each XPage of the site. He has created a computed field at the top of the 'home' XPage, and is using this field to set the release version. Jack also needs to create a computed field that is placed at the top of each linked Xpage.

What code should he provide for Computed Field of each linked page to display the release version?

  1. A

    environment("relVersion");

  2. B

    applicationScope("relVersion");

  3. C

    var strVersion = "Release: ";
    strVersion += environment.get("relVersion");
    strVersion

  4. D

    var strVersion = "Release: ";
    strVersion += applicationScope.get("relVersion");
    strVersion

Show answer and explanation

Correct answer: D