IBM WebSphere Portal 8.0 Solution Development (C2040-911) Free Practice Test
Question 1
Frances is debugging an iWidget that should show a loader bar until markup is generated and shown, leveraging only lifecycle functions. Right now, she can only see the loader bar, but nothing else happens in the iWidget. She has verified that all dependencies have loaded properly and that the elements have rendered. What should she verify next?
Correct Answer: D
Question 2
Hershel wants to programmatically check if specific users have access to his company's new portlet application, in order to show a message in another portlet asking them to purchase a subscription. He is trying to do so with the least amount of performance overhead. What would be the best way for Hershel to accomplish this?
Correct Answer: B
Question 3
In the case of a processAction or serveResource call, what is the expected behavior if an action or resource parameter has the same name as a public render parameter?
Correct Answer: A
Question 4
Corrie needs to create several iWidgets that will interact with each other. She is evaluating the mechanisms that she can use to share state information between the iWidgets. Which one of the following options is the best way to accomplish this?
Correct Answer: A
Question 5
Given the following code in the portlet.xml file, what line of code returns the value of the "test" initparam. <portlet-class>MyPortlet</portlet-class> <init-param> <name>test</name> <value>test_init_parameter</value> </init-param>
Correct Answer: D
Question 6
Roger has been discussing iWidgets with a prospective client and has been highlighting certain aspects of the specification. Which of the following statements is false and thus ill-advised?
Correct Answer: B
Question 7
What does the collaborative services API allow the portlet developer to do?
Correct Answer: B