Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > IBM > IBM Certifications > C2040-911 > C2040-911 Online Practice Questions and Answers

C2040-911 Online Practice Questions and Answers

Questions 4

Chris wants to do performance tuning in his mobile theme. What would be the first step he should take to achieve this task?

A. Apply caching rules to the HTTP server.

B. Use a third-party minification tool to compress the JavaScript files.

C. Change dynacache settings.

D. Configure cache manifest file.

Buy Now

Correct Answer: D

Questions 5

MegaCorp is working on integrating one of their applications existing in non-IBM WebSphere Portal environments into WebSphere Portal. Which of the following options should they use for this purpose?

A. WebClipping Portlet International Edition

B. IntegrationPortlet

C. WebClipping Portlet

D. IntegrationPortlet_jsEnabled

Buy Now

Correct Answer: C

Questions 6

Which of the following statements is true when using a resource URL in AJAX?

A. Changing state of the portlet is not allowed during the serveResource() method.

B. The portlet mode and window state can be changed during the serveResource() method.

C. New render parameters can be set during the serveResource() method.

D. Portlet preferences can be set during the serveResource() method.

Buy Now

Correct Answer: D

Questions 7

When creating and registering a custom portlet service, it is possible to set initialization parameters. What code would Adrienne use to access a parameter with the name sample.portletservice.HelloServiceImpl2.message?

A. public void init(Preferences servicePreferences) { String message = servicePreferences.get("message", "Hello"); }

B. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getAttribute("message"); }

C. public void init(Preferences servicePreferences) { String message = servicePreferences.getInitParam("message", "Hello"); }

D. public void sayHello(RenderRequest request, RenderResponse response) { String message = request.getParameter("message"); }

Buy Now

Correct Answer: A

Questions 8

What does the collaborative services API allow the portlet developer to do?

A. The API gives the user access to Microsoft Exchange and IBM Lotus Notes inboxes when developing custom portlets.

B. The API allows the user to connect to social services such as Twitter and Facebook for custom portlets.

C. The API provides person tags to custom portlets.

D. The API provides the IBM Connections business cards capability to a custom portlet.

Buy Now

Correct Answer: C

Questions 9

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?

A. PumaProfile p = service.getProfile( (javax.portlet.ActionRequest) request);

B. PumaProfile p = service.getProfile( (javax.portlet.PortletRequest) request);

C. PumaController p = service getController( (javax.portlet.ActionRequest) request);

D. PumaController p = service getController( (javax.portlet.PortletRequest) request);

Buy Now

Correct Answer: C

Questions 10

Rafael needs to create a way for non-administrator users to change the look of the Portal 8.0 theme. Which solution will provide the simplest answer?

A. Use multiple custom themes.

B. Create new dynamic content spots to serve multiple CSS files.

C. Use the new module and profile features to define and load different CSS.

D. Create a custom theme style to be deployed in the theme's CSS directory, and modify styles.json to include the style.

Buy Now

Correct Answer: D

Questions 11

Quinn is creating a module that adds a customized Dojo lightbox for a disclaimer to overlay the screen as soon as the page loads using dojo.addOnLoad. She has already created myLightBox.css and intends to write the JavaScript event triggering the lightbox inline. What must Quinn do to ensure she gets the desired functionality at minimal performance cost?

A. Quinn should add all this code right after the theme's tag to ensure the functionality happens as soon as the body markup is loading.

B. Quinn must add the tag pointing to myLightBox.css into the block. The JavaScript can be added anywhere therein as long asthe page uses the nondeferred profile and the event is added to the event handler

C. Quinn must create a CSS sub-contribution type in her module pointing to myLightBox.css. The JavaScript can be added anywhere therein aslong as the page uses the default deferred profile and the event is added to the event handler.

D. Quinn should really write all CSS and JavaScript inline for performance reasons so secondary requests to the server are never made.

Buy Now

Correct Answer: C

Questions 12

Usha has developed a JSR 286 compliant portlet. She wants to use it on a WSRP producer so that it can be consumed by a remote IBM WebSphere Portal server. What changes if any should be made?

A. She must set the enable WSRP portlet initialization parameter to true in the portlet.xml file.

B. She should change her portlet class to implement ServiceDescription and Markup interface.

C. She does not have to make any changes.

D. She should change her portlet class to implement ServiceDescription, Markup, Registration and PortletManagement interface.

Buy Now

Correct Answer: C

Questions 13

Ted is developing a module that will provide content to the Markup sub-contribution type. This Markup sub-contribution will contain some inline JavaScript. What will happen if Ted makes this module deferred rather than non-deferred?

A. The script code inside the markup will not be evaluated and run when the deferred module is loaded.

B. The script code inside the markup will be evaluated and run. However, it will throw an exception since its being loaded from a different domain.

C. The script code inside the markup will be evaluated and run without error when the deferred module is loaded.

D. The server-side combiner framework will not allow JavaScript inside of the Markup contribution type.

Buy Now

Correct Answer: A

Exam Code: C2040-911
Exam Name: IBM WebSphere Portal 8.0 Solution Development
Last Update: Jul 07, 2025
Questions: 65

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.