Oracle 1z0-151 Exam Practice Questions (P. 5)
- Full Access (90 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 #21
View the Exhibit.

You have placed the following code in a Post insert trigger on the Orders block:
SELECT orders_seq.NEXTVAL -
INTO :orders.order_id -
FORM SYS.dual;
You have also set Item properties for the Order_Id Item in the form so that users cannot directly enter an Order ID.
As the SUMMIT user, you run the form to test it. Yon are able to insert a record in the block, but when you click Save, you have a database error as shown in the
Exhibit.
What is the probable cause of this error?

You have placed the following code in a Post insert trigger on the Orders block:
SELECT orders_seq.NEXTVAL -
INTO :orders.order_id -
FORM SYS.dual;
You have also set Item properties for the Order_Id Item in the form so that users cannot directly enter an Order ID.
As the SUMMIT user, you run the form to test it. Yon are able to insert a record in the block, but when you click Save, you have a database error as shown in the
Exhibit.
What is the probable cause of this error?
- AThe code should be in Pre_insert trigger instead
- BThe code should be in a database trigger instead
- CYou should change the code to select the sequence number from SUMMIT.dual instead.
- DYou should create the sequence in the database, because the runtime error is an indication that is does not exist.
- EYou should assign a temporary value to the Order_Id item before saving the form.
Correct Answer:
A
A
send
light_mode
delete
Question #22
You are coding a When-Checkbox-Changed trigger.
Which statements are available for use in your code?
Which statements are available for use in your code?
- Aunrestricted built-ins only
- Brestricted and unrestricted built-ins only
- CPL/SQL statements and unrestricted built-ins only
- DPL/SQL statement-, and any built-ins
Correct Answer:
D
When-Checkbox-Changed trigger -
Description -
Fires when an operator changes the state of a check box, either by clicking with the mouse, or using the keyboard.
Definition Level: form, block, or item
Legal Commands:
SELECT statements, unrestricted built-ins, restricted built-ins
Reference: Oracle Forms Developer, When-Checkbox-Changed trigger
D
When-Checkbox-Changed trigger -
Description -
Fires when an operator changes the state of a check box, either by clicking with the mouse, or using the keyboard.
Definition Level: form, block, or item
Legal Commands:
SELECT statements, unrestricted built-ins, restricted built-ins
Reference: Oracle Forms Developer, When-Checkbox-Changed trigger
send
light_mode
delete
Question #23
On the Employees form, you do not want the cursor to enter the Employee_Id text item, which is the first item in the first block on the form. You code a Pre-Text- item trigger for that item that uses the GO_ITEM built-in to navigate to the next item.
What happens when you run the form from Forms Builder?
What happens when you run the form from Forms Builder?
- AYou receive a compilation error.
- BThe form starts to run, but immediately closes. So If an error message Is displayed, you are unable to see it.
- CThe form runs, but as soon as it appears, you receive a runtime error.
- DThe form runs, but as soon as you perform any navigation, a runtime error occurs.
- EThe form runs with no problem.
Correct Answer:
C
C
send
light_mode
delete
Question #24
Yon have created a list item for the Credit__Rating field in the Customers form, the Finance department usually determines a range of scores that pertain to the customer, the values in the list are Excellent, Good, Fair, and Poor, corresponding to the ranges provided by Finance. The default value Fair, because that is the range that applies to most customers.
Sometimes, Finance can provide an exact credit score; so users must be able to enter the exact numerical value if it is known. Often clerks enter the customer data before the performance of a credit check, so they must be able to enter a blank value if the credit rating is not yet determined.
Users want to be able to select a blank value from the list, but the list does not display a blank line for them to select. How can you meet this requirement without changing the default value of the list item?
Sometimes, Finance can provide an exact credit score; so users must be able to enter the exact numerical value if it is known. Often clerks enter the customer data before the performance of a credit check, so they must be able to enter a blank value if the credit rating is not yet determined.
Users want to be able to select a blank value from the list, but the list does not display a blank line for them to select. How can you meet this requirement without changing the default value of the list item?
- AAdd a blank line to the list item when you define the static values.
- BSet Mapping of other Values for the Credit_Rating Item to NULL.
- CSet the Required property of the Credit_Rating item to No.
- DDelete the NOT NULL constraint for the Credit_Rating Column in the database.
- EYou cannot change this type of list item to display a blank value; users must delete the default value records if the credit rating is not known.
Correct Answer:
A
A
send
light_mode
delete
Question #25
A clerk is using the Human Resources form, which displays a department and its associated employees on the same canvas. Only two Items in the form are enabled.
Possible navigation units that can occur during navigation of this form are:
1. Outside the form
2. The Human Resources form
3. The Departments block
4. The Employees block
5. The current Departments record
6. The current Employees record
7. The Department_Id item
8. The Employee_Id item
With the cursor in : Departments.Department_Id, the clerk clicks the :Employees.Employee_Id item.
What is the sequence of navigational unit movement that occurs?
Possible navigation units that can occur during navigation of this form are:
1. Outside the form
2. The Human Resources form
3. The Departments block
4. The Employees block
5. The current Departments record
6. The current Employees record
7. The Department_Id item
8. The Employee_Id item
With the cursor in : Departments.Department_Id, the clerk clicks the :Employees.Employee_Id item.
What is the sequence of navigational unit movement that occurs?
- A1, 2, 3, 4, 5, 6, 7, and 8
- B7, 5, 3, 2, 4, 6, and 8
- C7, 5, 3, 2, 4, 6, and 8 only
- D7, 5, 3, 4, 6, and 8 only
- E7 and 8 only
Correct Answer:
D
D
send
light_mode
delete
All Pages