live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

IBM Assessment: IBM WebSphere Portal 8.0 Solution Development - A2040-911 Exam Questions

QUESTION NO: 1
Evan wants to develop a portlet to act as a target using click-to-action. He wants to develop a client-side click-to-action handler. Which best describes the ways that he can get the source data submitted by the source portlet?
Correct Answer: C
QUESTION NO: 2
Jeanelle is advising a client on modular themes in IBM Websphere Portal 8.0. Which of the following statements would be incorrect and therefore not communicated to them?
Correct Answer: C
QUESTION NO: 3
PreferencePortlet is Portlet Specification 2.0-compliant and the system is running IBM WebSphere Portal 8.0. What is the output of the following code? public PreferencePortlet extends GenericPortlet{ protected void processAction(ActionRequest actionRequest, ActionResponse){ actionRequest.getPreferences().setValue("test","ViewModePreferenceValue"); actionRequest.getPreferences().store(); } protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { // Generate action URL }
Correct Answer: B
QUESTION NO: 4
John is developing a portlet that uses the portlet client model API to manipulate a user's profile on the client side. How can he get the object of the PortletWindow that represents the portlet on the client side?
Correct Answer: D
QUESTION NO: 5
Which is not a valid CSS style defined in the JSR 286 Portlet Specification?
Correct Answer: B
QUESTION NO: 6
The following code sample uses the PUMA SPI within a standard portlet.

Sunil needs to retrieve attributes on the current user. Which one of the following lines of code, if inserted at line 6, will provide the functions to retrieve attributes from the User object?
Correct Answer: D
QUESTION NO: 7
Bill is developing a portlet that uses AJAX to retrieve information from the server. In the serveResource() method first he is setting "AdminName" request attribute and then forwarding control to a JSP for generating markup. Using best practices, how should he print the "AdminName" attribute inside the JSP?
Correct Answer: D