Liferay lrp-614 practice test

Liferay 6.2 Certified Professional Developer Exam


Question 1

The descriptor liferay-portlet.xml defines:

  • A. Events
  • B. The portlet class
  • C. The CSS class wrapper
  • D. Resource bundles
Answer:

C

Discussions

Question 2

The Classic theme is built using:

  • A. HTML 4
  • B. XHTML
  • C. HTML 5
  • D. HTML 6
  • E. WML
Answer:

C

Discussions

Question 3

The recommended way to escape text is:

  • A. StringUtil.escape()
  • B. HtmlUtiI.escape()
  • C. DisplayUtil.escape()
  • D. JSPUtil.escape()
  • E. FormUtil.escape()
  • F. GetterUtil.escape()
Answer:

B

Discussions

Question 4

The service() method in GenericPortlet handles all requests for a particular portlet and dispatches to
the appropriate method based on the portlet mode.

  • A. True
  • B. False
Answer:

B

Discussions

Question 5

Portlet application security roles are mapped to Liferay roles in:

  • A. portlet.xml
  • B. liferay-portlet.xml
  • C. liferay-role.xml
  • D. liferay-display.xml
Answer:

B

Discussions

Question 6

The method to retrieve a list of users that have been added directly to a site is:

  • A. SiteLocalServiceUtil.getSiteUsers()
  • B. UserLocalServiceUtil.getSiteUsers()
  • C. UserLocalServiceUtil.getGroupUsers()
  • D. SiteLocalServiceUtil. getGroupUsers ()
Answer:

C

Discussions

Question 7

To define a primary key named ''bookld" in service.xml:

  • A. <primary-column name= bookld" />
  • B. <column name = bookld primary = true" />
  • C. <primary name= "bookld" />
  • D. <column primary="bookId" />
Answer:

B

Discussions

Question 8

If the expiration cache in portlet.xml is set to "-1":

  • A. The finder cache does not expire
  • B. Ehcache does not expire
  • C. The portlet cache does not expire
  • D. All of the above
Answer:

C

Discussions

Question 9

The element that defines a database table in service.xml is:

  • A. <entity>
  • B. <table>
  • C. <db-table>
  • D. <object>
Answer:

A

Discussions

Question 10

The recommended way to modify the Wiki portlet configuration to recognize a new public render
parameter defined in a portlet plugin:

  • A. Create a hook plugin and add the public render parameter definition to portlet-custom.xml
  • B. Create an Ext plugin and add the public render parameter definition to portlet-ext.xml
  • C. Create a portlet plugin and re-implement the logic of the Wiki portlet and define the new public render parameter in portlet.xml
  • D. Create an Ext plugin and add the public render parameter definition to portlet-custom.xml
Answer:

B

Discussions
To page 2