Oracle 1z0-419 Exam Practice Questions (P. 3)
- Full Access (98 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
Your page contains the following code that is invoked on an action by the current user:
<af:setPropertyListener from="#{applicant:surname}" to="#(...)" type="action"/>
To receive the value from the to property of the af:setPropertyListener, you create a managed bean as follows: package view; public class Employee {
String lastName;
public void setLastName(String lastName) { this.lastName = lastName; } public String getLastName() { return lastName;
}
In the adfc-onfig.xml file, the managed bean is configured as:>
<managed-bean>
<managed-bean-name>emp</managed-bean-name>
<managed-bean-class>view. Employee</managed-bean-class>
<managed bean-scope>pageFlowScope</managed-bean-scope>
</managed-bean>
What EL expression would you write in the af:setPropertyListener "to" property to write the value to the lastName string of the Employee class?
(Choose the best answer.)
<af:setPropertyListener from="#{applicant:surname}" to="#(...)" type="action"/>
To receive the value from the to property of the af:setPropertyListener, you create a managed bean as follows: package view; public class Employee {
String lastName;
public void setLastName(String lastName) { this.lastName = lastName; } public String getLastName() { return lastName;
}
In the adfc-onfig.xml file, the managed bean is configured as:>
<managed-bean>
<managed-bean-name>emp</managed-bean-name>
<managed-bean-class>view. Employee</managed-bean-class>
<managed bean-scope>pageFlowScope</managed-bean-scope>
</managed-bean>
What EL expression would you write in the af:setPropertyListener "to" property to write the value to the lastName string of the Employee class?
(Choose the best answer.)
- Ato="#{lastName}"
- Bto="#{LastName}"
- Cto="#{pageFlowScope.emp.lastName)"
- Dto="#{pageFlowScope.Emp.lastName}"
- Eto="#{emp.lastName}"
- Fto="#{pageFlowScope.emp.LastName}"
Correct Answer:
C
For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow might specify #{pageFlowScope.employeeID} as the value of an input parameter definition.
The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the to-value would be #{pageFlowScope.empno}. This enables reuse of both the page definition and bounded task flow because you don't have to redefine parameters for every context in which each is used.
References:
https://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_parameters.htm#ADFFD19858
C
For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow might specify #{pageFlowScope.employeeID} as the value of an input parameter definition.
The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the to-value would be #{pageFlowScope.empno}. This enables reuse of both the page definition and bounded task flow because you don't have to redefine parameters for every context in which each is used.
References:
https://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_parameters.htm#ADFFD19858
send
light_mode
delete
Question #12
Consider the following code:

At run time, a user modifies the value in the af:inputText control, then presses af:commandButton.
Assuming no errors are raised, which option represents the managed bean code invoked in the correct order? (Choose the best answer.)

At run time, a user modifies the value in the af:inputText control, then presses af:commandButton.
Assuming no errors are raised, which option represents the managed bean code invoked in the correct order? (Choose the best answer.)
- AmyBean.handleChange, myBean.doAction, myBean.qetDestination
- BmyBean.doAction, myBean.handleChange, myBean.getDestination
- CmyBean.handleChange, myBean.doAction
- DmyBean.doAction, myBean.handleChange
Correct Answer:
C
C
send
light_mode
delete
Question #13
Which three options does an entity object automatically implement? (Choose three.)
- Aprimary key functionality based on any column in the database that is marked as a primary key
- Bnot-null functionality based on any column in the database that is marked as not null
- Cattribute precision based on column size
- Dall table check constraints
- Eany table triggers
Correct Answer:
ABC
When you create an entity object from an existing table, first JDeveloper interrogates the data dictionary to infer the following information:
✑ The primary and unique key attributes
✑ The mandatory flag on attributes, based on NOT NULL constraints
✑ The length and precision of each attribute
✑ The Java-friendly entity attribute names from the names of the table's columns (for example, USER_ID -> UserId)
✑ The SQL and Java data types of each attribute based on those of the underlying column
✑ The relationships between the new entity object and other entities based on foreign key constraints
References:
http://docs.oracle.com/cd/E48682_01/web.1111/b31974/bcentities.htm
ABC
When you create an entity object from an existing table, first JDeveloper interrogates the data dictionary to infer the following information:
✑ The primary and unique key attributes
✑ The mandatory flag on attributes, based on NOT NULL constraints
✑ The length and precision of each attribute
✑ The Java-friendly entity attribute names from the names of the table's columns (for example, USER_ID -> UserId)
✑ The SQL and Java data types of each attribute based on those of the underlying column
✑ The relationships between the new entity object and other entities based on foreign key constraints
References:
http://docs.oracle.com/cd/E48682_01/web.1111/b31974/bcentities.htm
send
light_mode
delete
Question #14
You create a new ADF Faces page called emp.js and bind some data controls to that page. You notice a file called empPageDef.xml. What is this file for?
(Choose the best answer.)
(Choose the best answer.)
- AIt is the page definition that contains the XML representation of the page layout and the components on that page.
- BIt is a template file into which you can write any managed bean code.
- CIt is the page template definition file that represents the chosen quick start layout.
- DIt is the file that contains the definition of the bindings to your data-bound components.
- EIt defines the binding context for all pages in your application.
Correct Answer:
D
The pageNamePageDef.xml files are created each time you insert a databound component into a web page using the Data Controls Palette or Structure window.
These XML files define the Oracle ADF binding container for each web page in the application. The binding container provides access to the bindings within the page. You will have one XML file for each databound web page.
References:
http://docs.oracle.com/cd/E15586_01/web.1111/b31974/appendixa.htm#CDJCBIGB
D
The pageNamePageDef.xml files are created each time you insert a databound component into a web page using the Data Controls Palette or Structure window.
These XML files define the Oracle ADF binding container for each web page in the application. The binding container provides access to the bindings within the page. You will have one XML file for each databound web page.
References:
http://docs.oracle.com/cd/E15586_01/web.1111/b31974/appendixa.htm#CDJCBIGB
send
light_mode
delete
Question #15
Which three steps would you perform to enable security for an ADF application? (Choose three.)
- ADefine authentication and authorization by using the configure ADF Security wizard.
- BDefine which HTML pages must be secured.
- CGrant roles access rights to bounded task flows.
- DGrant roles access rights to unbounded task flows.
- EDeploy the application to a Java EE Security-enabled server to test the user roles.
- FGrant roles access rights to pagedefs for views in unbounded task flows.
Correct Answer:
ABC
A: The Configure ADF Security wizard allows you to choose to enable authentication and authorization separately.
C: ADF bounded task flow protects the entry point to the task flow, which in turn controls the user's access to the pages contained by the flow.
B: To grant public access to ADF security-aware resources:
1. From the Application menu, choose Secure > Resource Grants.
2. In the Resource Grants page of the jazn-data.xml file overview editor, select one of the following resources from the Resource Types dropdown list:
✑ Task Flow when you want to make a bounded task flow public. The application displays the web pages under the permission you define for the task flow itself.
Thus, all constituent web pages of the bounded task flow will become public.
✑ Web Page when you want to make individual web pages public. Typically, these pages are defined by an unbounded task flow and are top-level pages in the application, such as a home page.
Incorrect Answers:
D, F: The unbounded task flow is not an ADF security-aware component and allows no grants.
References:
https://docs.oracle.com/cd/E21764_01/web.1111/b31974/adding_security.htm#ADFFD19895
ABC
A: The Configure ADF Security wizard allows you to choose to enable authentication and authorization separately.
C: ADF bounded task flow protects the entry point to the task flow, which in turn controls the user's access to the pages contained by the flow.
B: To grant public access to ADF security-aware resources:
1. From the Application menu, choose Secure > Resource Grants.
2. In the Resource Grants page of the jazn-data.xml file overview editor, select one of the following resources from the Resource Types dropdown list:
✑ Task Flow when you want to make a bounded task flow public. The application displays the web pages under the permission you define for the task flow itself.
Thus, all constituent web pages of the bounded task flow will become public.
✑ Web Page when you want to make individual web pages public. Typically, these pages are defined by an unbounded task flow and are top-level pages in the application, such as a home page.
Incorrect Answers:
D, F: The unbounded task flow is not an ADF security-aware component and allows no grants.
References:
https://docs.oracle.com/cd/E21764_01/web.1111/b31974/adding_security.htm#ADFFD19895
send
light_mode
delete
All Pages