[Free] 2017(Nov) EnsurePass Braindumps IBM C2040-922 Dumps with VCE and PDF Download 1-10

EnsurePass 2017 Nov IBM Official New Released C2040-922
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/C2040-922.html

Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design

Question No: 1 – (Topic 1)

Ernie wants to add the Dojo theme quot;soriaquot; to the other styling on his XPage. Which theme code will add the appropriate class to the body tag of the outputted HTML?

  1. lt;controlgt;

    lt;namegt;ViewRootlt;/namegt;

    lt;property mode=quot;overridequot;gt;

    lt;namegt;styleClasslt;/namegt;

    lt;valuegt;sorialt;/valuegt;

    lt;/propertygt;

    lt;controlgt;

  2. lt;controlgt;

    lt;namegt;ViewBodylt;/namegt;

    lt;property mode=quot;overridequot;gt;

    lt;namegt;styleClasslt;/namegt;

    lt;valuegt;sorialt;/valuegt;

    lt;/propertygt;

    lt;controlgt;

  3. lt;controlgt;

    lt;namegt;ViewRootlt;/namegt;

    lt;property mode=quot;concatquot;gt;

    lt;namegt;styleClasslt;/namegt;

    lt;valuegt;sorialt;/valuegt;

    lt;/propertygt;

    lt;controlgt;

  4. lt;controlgt;

lt;namegt;ViewBodylt;/namegt;

lt;property mode=quot;concatquot;gt;

lt;namegt;styleClasslt;/namegt;

lt;valuegt;sorialt;/valuegt;

lt;/propertygt;

lt;controlgt;

Answer: C

Question No: 2 – (Topic 1)

Lydia wants to create a JSON string to represent an array with three objects. Each object

has two variables, vA and vB, set to different string values of quot;onequot;, quot;twoquot;, quot;threequot;, quot;fourquot;, quot;fivequot;,and quot;sixquot;. What is the proper syntax for the JSON string?

  1. [ { vA: #39;one#39;, vB: #39;two#39; },{ vA: #39;three#39;, vB: #39;four#39; },{ vA: #39;five#39;, vB: #39;six#39; } ]

  2. quot;[ { vA: #39;one#39;, vB: #39;two#39; },{ vA: #39;three#39;, vB: #39;four#39; },{ vA: #39;five#39;, vB: #39;six#39; } ]quot;

  3. quot;[ { vA: one, vB:two },{ vA: three, vB: four },{ vA: five, vB: six } ]quot;

  4. new Array(new Object({ vA: #39;one#39;, vB: #39;two#39; }), new Object({ vA: #39;one#39;, vB: #39;two#39; }), new Object({ vA: #39;one#39;, vB: #39;two#39; }));

Answer: B

Question No: 3 – (Topic 1)

Tim has an XPage containing an Edit Box. He has read that it ispossible to use the Dojo Toolkit NumberSpinner control in XPages, and he wishes to modify his XPage so that the Edit Box will appear as a Number Spinner in the browser. What would the steps be to accomplish this?

  1. From the Dojo Tollkit Website, get theURL to the most recent version of the NumberSpinner.js control (where the URL begins with http://).

    In the XPage, in the Resources tab of the Properties view, add a JavaScript Library using that URL.

    Configure the Edit Box to set the dojoType to quot;dijit.form.NumberSpinnerquot;.

  2. Import the NumberSpinner.js file from Dojo into the application as a JavaScript Library. In the XPage, in the Resources tab of the Properties view, add a JavaScript Library resource for that NumberSpinner.js file to the XPage.

    Configure the Edit Box to set the dojoType to quot;dijit.form.NumberSpinnerquot;.

  3. Import the NumberSpinner.js file from Dojo into the application as a Dojo Module.

    In the XPage, in the Resources tab of the Properties view, add that Dojo Module resource for that NumberSpinner.js file to the XPage.

    Configure the Edit Box to set the dojoType to quot;dijit.form.NumberSpinnerquot;.

  4. In the XPage, in the Resources tab of the Properties view, add a Dojo Module resource for quot;dijit.form.NumberSpinnerquot; to the XPage.

Configure the EditBox to set the dojoType to quot;dijit.form.NumberSpinnerquot;.

Answer: D

Question No: 4 – (Topic 1)

Dominic wants to implement the open source CSS framework called Blueprint in his

XPages application. He does not want to include any other CSS framework resources which may exist on the Domino server. What is the best way to include all of the required CSS files in the XPages in his application?

  1. In each XPage in the application add the required CSS files to the Resources section

  2. Create a new theme which extends webstandard and then add each Blueprint CSS file via a resource definition

  3. Create a new theme which extends oneui and then add each Blueprint CSS file via a resource definition

  4. Create a new theme which doesnot have an extension property and then add each Blueprint CSS file via a resource definition

Answer: D

Question No: 5 – (Topic 1)

Tamsin is building an XPages application for use on mobile devices. She finds the font and row height on View Panel controls too small and difficult to navigate on a touch screen.

Which View Panel property should she add her CSS class to?

  1. dataTableStyleClass

  2. viewStyleClass

  3. viewPanelStyleClass

  4. captionStyleClass

Answer: A

Question No: 6 – (Topic 1)

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?

  1. Create a common Client-Side JavaScript Library for the XPages to share that the user interface can use to execute the business logic

  2. Use a series of Custom Controls to hold the business logic and share them amongst the XPages

  3. Create a common Server-Side JavaScript Libraryfor the XPages to share that the user interface can use to execute the business logic

  4. The user interface and the business logic in an XPage can not easily be separated and must be maintained in each XPage

Answer: C

Question No: 7 – (Topic 1)

Liz wants to make the user confirm their action when they try and delete a document from the application using a delete button. The confirmation message needs to display the title of the document in it. What is the best way to compute this message?

  1. In theclient side event of the delete button use the following code: if (confirm(quot;Are you sure you want to delete the document quot; document1.getItemValueString(#39;title#39;))){

    return true;

    }else{

    return false;

    }

  2. In the client side event of the delete button use the following code: if (confirm(quot;Are you sure you want to delete the document quot; quot;#{javascript:document1.getItemValueString(#39;title#39;)}quot;)){

    return true;

    }else{

    return false;

    }

  3. In the server side event of the delete button use the following code: if (confirm(quot;Are you sure you want to delete the document quot; document1.getItemValueString(#39;title#39;))){

    return true;

    }else{

    return false;

    }

  4. In the server side event of the delete button use the following code: if (confirm(quot;Are you sure you want to delete thedocument quot; quot;#{javascript:document1.getItemValueString(#39;title#39;)}quot;){

return true;

}else{

return false;

}

Answer: B

Question No: 8 – (Topic 1)

Jo wants to make a configurable list of countries availableto the client side JavaScript of her XPage for use in various different fields on the web page. What would be the most efficient approach?

  1. Add an @DbColumn to a server side script library to look up the country list in each place it is required

  2. Perform an AJAX request to get the country list from another XPage when it is required using dojo.xhrGet

  3. Use the Output Script control to create a global Client Side JavaScript object to reference when the list is required

  4. Add a @Decorum to a client side script library to look up the country list in each place it is required

Answer: C

Question No: 9 – (Topic 1)

Peter wants to enhancethe view controls used in his application so that they can display rich content from the underlying document collection. He wants to do this in an efficient manner as the application has thousands of documents and is accessed by hundreds of concurrent users. Which of the following approaches should John take to add this enhancement to his application most efficiently?

  1. Modify the Domino view to include the rich text field and add a new column to his view controls that automatically binds to this field.

  2. Add a computed column to the view control that opens each document, set the column content type to HTML, and bind the rich text content

    from each document using JavaScript code.

  3. Add an action to each column that will retrieve the rich text content from the underlying document when clicked, assign it to a computed field

    with content type set to HTML, and then display that field.

  4. Nothing – XPages view controls cannot display rich content.

Answer: C

Question No: 10 – (Topic 1)

Elaine wants to use the quot;webkitquot; stylesheet for webkit browsers. Which object will enable her to do this?

  1. facesContext.getExternalContext().getRequest().getHeader(quot;User-Agentquot;)

  2. facesContext.getExternalContext().getContext().getHeader(quot;User-Agentquot;)

  3. facesContext.getRequest().getHeader(quot;User-Agentquot;)

  4. facesContext.getExternalContext().getHeader(quot;User-Agentquot;)

Answer: A

100% Free Download!
Download Free Demo:C2040-922 Demo PDF
100% Pass Guaranteed!
Download 2017 EnsurePass C2040-922 Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

2017 EnsurePass IT Certification PDF and VCE