C2040-986 Exam Details

  • Exam Code
    :C2040-986
  • Exam Name
    :Creating IBM Lotus Notes and Domino 8.5 Applications with Xpages and Advanced Techniques
  • Certification
    :IBM Certifications
  • Vendor
    :IBM
  • Total Questions
    :164 Q&As
  • Last Updated
    :Jul 11, 2026

IBM C2040-986 Online Questions & Answers

  • Question 111:

    Kaitlyn has been asked to track which browser versions people are using to access the Customers XPage. She wants to add code that writes the browser version to the server log whenever a user opens the XPage. What server-side code can Kaitlyn add to do this task?

    A. Add this code in the beforePageLoad event of the XPage:var req = facesContext.getExternalContext ().getRequest();print(req.getHeader("User-Agent"));
    B. Add this code in the onLoad event of the XPage:var req = facesContext.getExternalContext ().getRequest();print(req.get(HTTP_USER_AGENT));
    C. Add this code in the onLoad event of the XPage:print(headerValues.getHeader(HTTP_USER_AGENT));
    D. Add this code in the beforePageLoad event of the XPage:print(headerValues.getHeader("User- Agent"));

  • Question 112:

    Grace would like to emulate a PostOpen event on her XPage by using the Execute Script simple action. What options can she use to build her script logic?

    A. CSS, HTML, JavaScript
    B. @Formula, LotusScript, Java
    C. Java, JavaScript, LotusScript
    D. JavaScript, Expression Language, Custom

  • Question 113:

    Stefan would like to add a custom control to the department's order processing XPage application that displays the approval routing status. He wants the custom control to only display to certain users. How can Stefan accomplish this task?

    A. From the custom control, select the Properties view and click the All Properties tab. Expand the data > acl > entries > aclEntry[0] property. Addan entry for the person or group that you want to give access to.
    B. From the Xpage, select the Properties view and click the All Properties tab. Expand the data > acl > entries > aclEntry[0] property. Add an entryfor the person or group that you want to give access to.
    C. From the custom control, select the Security view and click the All Properties tab. Expand the data > acl > entries > aclEntry[0] property. Add anentry for the person or group that you want to give access to.
    D. From the Xpage, select the Security view and click the All Properties tab. Expand the data > acl > entries > aclEntry[0] property. Add an entryfor the person or group that you want to give access to.}w selected below is selected and also make sure that Outline is selected.

  • Question 114:

    Monica has bound the view named "Open invoices" into her XPages application, which is accessible as view1. For the convenience of the user, she likes to display the total amount of all invoices. How can she calculate this amount?

    A. var total = view1.getItemSumDouble ('amount');
    B. var allDocs = view1.AllDocuments();var total = allDocs.AddValues('amount');
    C. var total:double = 0;var doc:NotesDocument = view1.getFirstDocument();while(doc != null){total = doc.getItemValueDouble('amount') + total;var tmpdoc:NotesDocument = view1.getNextDocument ();doc.recycle();doc = tmpdoc}
    D. var total:double = 0;var doc:NotesDocument = view1.getFirstDocument();var item:NotesItem;while(doc != null){item = doc.getFirstItem('amount');total = item + total;var tmpdoc:NotesDocument = view1.getNextDocument();doc.recycle();doc = tmpdoc}

  • Question 115:

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

    A. XML
    B. CSS
    C. HTML
    D. JavaScript

  • Question 116:

    Marta must implement a new application for a library. People have asked to use the application from both the Lotus Notes client and a web browser. Asking developers to best implement these requirements, she got different design answers. Each of the following statements is true about XPages, except which one?

    A. XPages can be used to implement both user interfaces at once.
    B. With forms, people are often using different forms for web and Lotus Notes.
    C. Custom controls cannot be used for web and Lotus Notes at the same time.
    D. When implementing the application with XPages, they are built without using framesets.

  • Question 117:

    Winnie is enhancing the interface on the Corporate Phone Book Web application. Ted, the graphics designer who is providing Winnie with the images for her Domino application, has suggested that she use image resource sets. What is a feature that Winnie can incorporate by using image resource sets?

    A. A vertical image set can be used to incorporate effects using the onmouseover, onmouseout, and onclick events of an image on an XPage.
    B. A vertical image set can be used to incorporate effects using the Normal, Mouse-over, Selected, and Mouse-down image states of a Domino Web page image.
    C. A horizontal image set can be used to add effects when a user hovers the mouse over an image. For example, the normal image could be replaced with a larger image when the mouse hovers over it.
    D. A horizontal image set can be used to add effects when a user hovers the mouse over an image. For example the normal image could be replaced with an image with different coloring when the mouse hovers over it.

  • Question 118:

    Jackson is using the FTSearch method of the NotesDatabase class to to return a NotesDocumentCollection. Jackson notices that the NotesDocumentCollection does not contain all the documents that he would expect. What would cause this issue?

    A. Jackson did not set the MaxDocs parameter on the FTSearch method to All to return all valid documents.
    B. Jackson did not set the MaxDocs parameter on the FTSearch method to 0 to return all valid documents.
    C. The maximum number of documents returned by FTSearch is 5,000 documents.
    D. The maximum number of documents returned by FTSearch is 2,000 documents.

  • Question 119:

    Hector is working on an XPages application and wants to let users navigate to particular pages by clicking on images. How can he do this task?

    A. Define the images' onclick events to point to simple actions configured as New Page Actions and select the appropriate page for each image in the Action's Target property.
    B. Define the images' onclick events to point to simple actions configured as New Page Actions and select the appropriate XPage for each image in the Action's Target property.
    C. Define the images' onclick events to point to simple actions configured as Open Page Actions and select the appropriate XPage for each image in the Action's Target property.
    D. Define the images' onclick events to point to simple actions configured as Open XPage Actions and select the appropriate XPage for each image in the Action's Target property.

  • Question 120:

    Hadi is creating a new XPage. His XPage design now shows the company logo and banner. How can Hadi now add fields to the XPage?

    A. Right-click where each field should be placed and select Insert > Field and select the type of field (such as Edit Box, Check Box, Radio Button, and so on).
    B. For each field, drag the associated type of control (such as Edit Box, Check Box, Radio Button, and so on) from the Core Controls to the XPage design.
    C. For each field, drag the associated type of control (such sa Edit Box, Check Box, Radio Button, and so on) from under XPages on the Applications panel to the XPage design.
    D. On the XPage design, click and drag to draw a box to create each field. As the mouse button is released for each field box, select the type of control to associate with the field (such as Edit Box, Check Box, Radio Button, and so on).

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C2040-986 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.