[Free] 2017(Sep) Latesttests Dumpsleader IBM C2040-922 V13 Dumps with VCE and PDF 31-40

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

Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design

Question No: 31 – (Topic 1)

John has a managed bean which is defined as follows:

Latesttests 2017 PDF and VCE

The bean has a property called #39;miles#39;which allows a distance in miles to be entered and converted to kilometers. John wishes to have a user enter a value via an edit box and use the managed bean to convert the value from miles to kilometers. What should the value of the edit box#39;s value attribute be in order to utilize the managed bean?

  1. lt;xp:inputText id=quot;inputText1quot; value=quot;#{view.distanceConverter.miles}quot;gt;lt;/xp:inputTextgt;

  2. lt;xp:inputText id=quot;inputText1quot; value=quot;#{bean.MyBean.setMiles()}quot;gt;lt;/xp:inputTextgt;

  3. lt;xp:inputText id=quot;inputText1quot; value=quot;distanceConverter.milesquot;gt;lt;/xp:inputTextgt;

  4. lt;xp:inputText id=quot;inputText1quot; value=quot;#{distanceConverter.miles}quot;gt;lt;/xp:inputTextgt;

Answer: D

Question No: 32 – (Topic 1)

John needs to access data which is in a relational database from his XPages application. What is the best option for accessing the data?

  1. As long as there is a JDBC driver available for the database then John can write Java to access the database

  2. As long as there is a JDBC driver available for the database then John can write Java or Server Side Javascript to access the database.

  3. The relational data source would need to have a web service added to it to allow access to the data.

  4. It is not possible to access relational data froman XPage

Answer: B

Question No: 33 – (Topic 1)

Rick creates a Server-Side JavaScript library, and defines afew global variables at the beginning of the library. The JavaScript in his XPage and in the JavaScript library modify those global variables. The server the application runs on is heavily used, and the application settings are set to Keep Pages on Disk for best scalability. When the application executes, what is likely to happen?

  1. The application will perform as expected.

  2. The application will generate an error because you can not declare global Server-Side JavaScript variables

  3. The application will run, but the values of the globally defined variables may be lost when the server#39;s JVM garbage collects variables, causing

    unexpected results.

  4. The application will run, but every partial or full refresh will reset the values of the global variables when it reloads the Server-Side JavaScript

library.

Answer: C

Topic 2, Volume B

Question No: 34 – (Topic 2)

John wishes to create a component that is capable of saving its state as the JSF component tree is being saved and restored. In order to do this, John#39;s component must implement which of the following interfaces:

  1. com.ibm.xpages.component.XPStateHolder

  2. javax.faces.component.StateHolder

  3. javax.faces.component.DataHolder

  4. javax.xpages.component.StateHolder

Answer: B

Question No: 35 – (Topic 2)

Peter wants to enhance the 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 automaticallybinds 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 therich 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: 36 – (Topic 2)

Eric is writing an XPages in the Notes Client (XPinC) application and has a data type problem in a Server Side JavaScript function. How can he find out more information about the objects in his code?

  1. Use print() and _dump statements in his code and look for the output on the server console

  2. Use print() and _dump statements in his code andlook in Help -gt; Support -gt; View Trace for the output

  3. Set up a new debug configuration in the Java perspective in Domino Designer and then set a breakpoint in the code and step through it to

    examine the objects

  4. Add a Firebug Lite control to his XPageand then set a breakpoint in the code using Firebug in the Notes Client

Answer: B

Question No: 37 – (Topic 2)

Elizabeth needs to parse the contents of a web page held on a remote server into an applicationScope variable via the server side onclick event of a button using Server Side JavaScript. How would she do this?

  1. It is not possible to perform network operations from Server Side JavaScript

  2. Create a new Java class to perform the operation in a Java Script Library and callit from the onclick event of the button.

  3. Create a new Java class to perform the operation in a Java Agent and call it from the onclick event of the button.

  4. Create a new Java class to perform the operation in the WebContent\WEB-INF\src folder via thePackage Explorer and call it from the onclick

event of the button.

Answer: D

Question No: 38 – (Topic 2)

John wishes to add a Java Class to his XPages application. How would he do this?

  1. Expand his application in the quot;Applications Navigatorquot; and create a new Java Script Library and place the necessary Java logic within that script

    library?

  2. Switch to the Java Perspective, navigate to the quot;Localquot; Java Source Folder within the application (using the Package Explorer), and create the

    Java Class within that folder

  3. Switch to the Java Perspective and create a new Java SourceFolder within the application (using the Package Explorer), and create the Java

    Class within that folder

  4. Expand his application in the quot;Applications Navigatorquot; and create a new Java Agent, place the necessary Java logic within the agent, and call

the agent from within the XPage

Answer: C

Question No: 39 – (Topic 2)

Marco hasbuilt an XPage that has increased in complexity over time and now contains several hundred lines of XSP markup, with many postback actions that conditionalize the

display of the page. He feels that the page does not perform well and is looking to improve the responsiveness for the end-user. He is considering the following actions to improve performance. All of the following actions may improve performance EXCEPT which one:

  1. Reduce the size of the page by splitting it up into several custom controls wherever possible.

  2. Use Partial Refresh to conditionally redraw only those parts of the page impacted by postback actions.

  3. Conditionally set the quot;loadedquot; property to quot;truequot; for controls and data sources that are displayed, and quot;falsequot; when they are hidden.

  4. Use scoped variables to store/retrieve data that will not change between postback requests.

Answer: A

Question No: 40 – (Topic 2)

Per wants to connect to a datasource using JDBC. What is the best way todo this?

  1. Write a LotusScript or Java agent and call it from Client-Side JavaScript, as he would have done in traditional Domino web applications.

  2. He must use a third-party tool like DECS or LEI.

  3. The necessary JDBC drivers will come pre-installedwith Domino. He just needs to write SSJS or Java to call the required methods.

  4. He will need to download and install the relevant JDBC drivers and write SSJS or Java to call the required methods.

Answer: D

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

Latesttests 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 Latesttests IT Certification PDF and VCE