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

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: 11 – (Topic 1)

John has a page with an edit box and a submit button and decides he wants to use a Dojo NumberSpinner dijit. He adds the dojoType dijit.form.NumberSpinner to the edit box. The submit button stops working. What is the reason for the submit button not working?

  1. John needs to check the check box quot;Enable Dojoquot; on the submit button

  2. John needs to add adojo module to the XPage.

  3. John needs to add a server side JavaScript library to the XPage

  4. John needs to configure themes to include a dojo theme like tundra

Answer: B

Question No: 12 – (Topic 1)

Marion wants to use the Dojo mobile controls in an application she is building for deployment on a Domino 8.5.2 server. Which of the following statements best describes the steps she must take?

  1. Marion just has to use the relevant Dojo modules that are installed by default on the server.

  2. Marion must use modules from at least Dojo 1.5.0.

  3. Marion must use modules from at least Dojo 1.6.0.

  4. Dojo does not have any mobile controls.

Answer: B

Question No: 13 – (Topic 1)

John wishes to add a managed bean to his application. In order to do this he must do which of the following:

  1. Create a file called xpages-config.xml within his application and define the managed bean within the file using the appropriate syntax.

  2. Create a JavaBean class and add the Java class as a page resource to the XPage where the managed bean is to be used.

  3. Open the pre-existing faces-config.xml file located at WebContent\WEB-INF\faces- config.xml and add the appropriate markup to the file.

  4. Open the pre-existing xpages-config.xml file located at WebContent\WEB-INF\xpages- config.xml and add the appropriate markup to the file.

Answer: C

Question No: 14 – (Topic 1)

John has a JavaScript function in a Client Side JavaScript library which he wrote to parse some JSON data and loop through the resulting objects. If he wanted to perform thesame task in Server Side JavaScript what would be the most efficient action?

  1. write a new function in Server Side JavaScript to perform the same task

  2. copy the Client Side function into a Server Side JavaScript library, add the script library to his XPage and call the function from his Server Side

    JavaScript

  3. add the Client Side JavaScript library to his XPage and call the function from his server side JavaScript

  4. Server Side JavaScript does not work with JSON data

Answer: B

Question No: 15 – (Topic 1)

Per wants to connect to a datasource using JDBC. What is the best way to do 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-installed withDomino. 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

Question No: 16 – (Topic 1)

Patwishes to create a new XPages UI control which will take user input. At a MINIMUM which of the following does he need to do?

  1. Create a UI Component extension Java Class that extends UIInputComponent, create an xsp-config file to define the tag, create aJava Class which will serve as a renderer, in order to render the tag as HTML markup.

  2. Create a UI Component extension Java Class that extends UIInput, create an xsp-config file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup.

  3. Create a custom control with an edit box and reuse the custom control within the XPages

  4. Create a UI Component extension Java Class that extends UIInputComponent, create an xsp-config file to define the tag, create a Java Class which will serve as a renderer, in order to render the tag as HTML markup. Then create a managed bean definition in faces- config.xml.

Answer: B

Question No: 17 – (Topic 1)

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, navigateto 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 Source Folder 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: 18 – (Topic 1)

Frank is attempting to add some functionality to an existing XPage: ?The XPage has a Date Time Picker edit box named quot;graduationDatequot; where users must enter their graduation date. ?Frank looks at the HTML source of the XPage and sees that the edit box has the HTML attribute: dojoType=quot;ibm.xsp.widget.layout.DateTimeTextBoxContainerquot;

?Frank has added a combo box where users should choose their type of Job, from the options quot;Internquot;, quot;Graduatequot; or quot;Experiencedquot;. ?Frank wants to add an onchange listener to the combo box, that checks the value of thegraduation date and gives a browser alert popup dialog like quot;Intern and Graduate positions only available in the first 2 years after graduationquot;. ?Frank has looked at the HTML source of the XPage and sees that the Date Time Picker edit box has a dojoType attribute. Which of the following code snippets should Frank use to retrieve the graduation date before triggering the alert dialog:

  1. var graduationDate = getComponent(quot;graduationDatequot;).getValue();

  2. var graduationDate = XSP.getElementById(quot;#{id:graduationDate}quot;).value;

  3. var graduationDate = dojo.byId(quot;#{id:graduationDate}quot;).value;

  4. var graduationDate = dijit.byId(quot;#{id:graduationDate}quot;).getValue();

Answer: D

Question No: 19 – (Topic 1)

Wayne needs to debug some client side JavaScript code in an XPage to find why a feature is not working as expected. Which of the following actions would be the best option to determine the problem?

  1. Wayne can activate the Source pane for the XPage in Domino Designer, set breakpoint(s) on the JavaScript code by double-clicking in the

    side-gutter and then preview the application

  2. Wayne can install FireBug or FireBug lite in the browser,set breakpoints in the JavaScript code and then run and debug the application

  3. Wayne can insert print() and _dump() statements directly in the JavaScript code and use the information sent to the console window to help

    debug the problem

  4. Wayne can openthe Java perspective in Domino Designer, find the Java code for the XPage in the quot;local\xspquot; source folder, set breakpoint(s)

in the code using the standard Java tooling and then preview the application

Answer: B

Question No: 20 – (Topic 1)

John wishes to create a component that is capable of saving its state as the JSF component tree isbeing 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

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