Download Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design.C2040-922.ActualTests.2015-04-05.66q.vcex

Vendor: IBM
Exam Code: C2040-922
Exam Name: Developing IBM Lotus Domino 8.5.2 Applications: Advanced XPage Design
Date: Apr 05, 2015
File Size: 103 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 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 open the Java perspective in Domino Designer, find the Java code for the XPage in the "localxsp" source folder, set breakpoint(s) in the code using the standard Java tooling and then preview the application
Correct answer: B
Question 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 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.
Correct answer: C
Explanation:
answer is corrected.
answer is corrected.
Question 3
Liz must do a code review of a third party XPages application in order to optimize performance wherever possible. She has come up with a shortlist of things to do. 
Each of the following can be used to improve performance EXCEPT which one?
  1. Using partial refresh wherever possible.
  2. Replacing post-based requests with get-based requests wherever possible
  3. Setting the dataCache property on Domino view data sources to "full" wherever possible
  4. Using viewScope variables to manage application state wherever possible
Correct answer: C
Question 4
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
Correct answer: A
Question 5
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.
Correct answer: B
Question 6
Elaine wants to use the "webkit" stylesheet for webkit browsers. Which object will enable her to do this?  
  1. facesContext.getExternalContext().getRequest().getHeader("User-Agent")
  2. facesContext.getExternalContext().getContext().getHeader("User-Agent")
  3. facesContext.getRequest().getHeader("User-Agent")
  4. facesContext.getExternalContext().getHeader("User-Agent")
Correct answer: A
Question 7
Joe wishes to retrieve the HttpServletRequest while his XPage is loading. Which of the following is true regarding this activity?
  1. Joe needs to add the following server side JS code to the afterPageLoad event: var request = facesContext.getRequest();
  2. It is not possible to obtain this information as an XPage is loading
  3. Joe needs to add the following server side JS code to the beforePageLoad event: var externalContext = facesContext.getExternalContext(); var request = externalContext.getRequest();
  4. Joe needs to add the following client side JS code to the beforePageLoad event: var clientContext = facesContext.getClientContext(); var request = clientContext.getRequest();
Correct answer: C
Question 8
John has a managed bean which is defined as follows:
  
The bean has a property called 'miles' 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's value attribute be in order to utilize the managed bean?
  1. <xp:inputText id="inputText1" value="#{view.distanceConverter.miles}"></xp:inputText>
  2. <xp:inputText id="inputText1" value="#{bean.MyBean.setMiles()}"></xp:inputText>
  3. <xp:inputText id="inputText1" value="distanceConverter.miles"></xp:inputText>
  4. <xp:inputText id="inputText1" value="#{distanceConverter.miles}"></xp:inputText>
Correct answer: D
Question 9
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'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
Correct answer: B
Question 10
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 WebContentWEB-INFfaces-config.xml and add the appropriate markup to the file.
  4. Open the pre-existing xpages-config.xml file located at WebContentWEB-INFxpages- config.xml and add the appropriate markup to the file.
Correct answer: C
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!