Pass4itsure > Oracle > Middleware > 1Z0-151 > 1Z0-151 Online Practice Questions and Answers

1Z0-151 Online Practice Questions and Answers

Questions 4

The Orders form is sometimes run automatically and sometimes run from the Customers form, when it is

run from the Customers form, any queries should be restricted to the customer that is currently selected.

The Customers form button that runs the Orders form sets a global variable to the current customer ID.

The Orders form has a button labeled Execute Query with the following When-Button Pressed trigger:

DEFAULT_VALUE (NULL, 'GLOBAL.Customer_id');

IF: GLOBAL.customer_id IS NOT NULL

THEN

SET_BLOCK_PROPERTY ('orders', DEFAULT_WHERE, 'orders.customer_id = ' | |

:GLOBAL.CUSTOMER_id);

END IF;

EXECUTE_QUERY

You want to duplicate that functionality in a menu item for the Summit menu that is attached To the Orders

form.

What changes must you make to the code so that the menu code functions as it does in the form?

A. Change both occurrence of :GLOBAL.customer_id to 'GLOBAL.customer_id'.

B. Change 'GLOBAL.customer_id' in line 1 to :GLOBAL.customer_id.

C. Change both occurrence of :GLOBAL.customer_id to NAME_IN ('GLOBAL.customer_id').

D. You do not need to change anything; the code compiles and functions correctly in the menu item.

E. You cannot add this type of code in the menu because it refers to the items on the form that cannot be referenced from a menu.

Buy Now
Questions 5

You are coding a When-Checkbox-Changed trigger.

Which statements are available for use in your code?

A. unrestricted built-ins only

B. restricted and unrestricted built-ins only

C. PL/SQL statements and unrestricted built-ins only

D. PL/SQL statement-, and any built-ins

Buy Now
Questions 6

The Employees database table contains more columns than can be displayed at one time in a form. You create a data block that uses all the columns. How can you enable users to interact with all the items and switch between them without scrolling or closing anything?

A. Define multiple content canvases and display them in multiple modeless windows.

B. Define multiple content canvases and display them in the same modeless window.

C. Define multiple content canvases and display them in multiple modal windows.

D. Define multiple content canvases; display one in a modeless window and the others in modal windows.

E. This is not possible because items from a single block must be displayed on the same canvas and window.

Buy Now
Questions 7

View the Exhibit.

The DBA has added a 30-character Cust_Middle_Name field to the Customers table and wants you to add it to the Customers form. It should be on the same line as the as the first and last names, which are on the Name tab page of the Tab_Customer canvas that appears in the Layout Editor as shown in the Exhibit. The Tab_Customer tabbed canvas is displayed on the Customer_CV content canvas as shown in the Exhibit.

What must you do to accommodate the additional label and text item and to display the middle name?

A. increase the Width property of the Customer_CV canvas only.

B. increase the Width property of the Tab_Customer canvas only.

C. increase the Width properties of only the Customer_CV canvas and the Tab_Customer canvas.

D. increase the Width properties of the Customer_CV canvas, the Tab_Customer canvas, and the name tab page.

Buy Now
Questions 8

The Orders application enables the Orders form to be opened from the Customers form. Users are confused because when they save a new or changed order, they sometimes receive an error message that indicates that no changes have been made.

What could be the possible cause of this problem?

A. The Orders form is Opened in the same session as the Customers form.

B. The Orders form is opened in a different session from the Customers form.

C. The Orders form is opened in ACTIVATE mode.

D. The Orders form is opened in NO_ACTIVATE mode.

E. The trigger that opens the Orders form calls COMMIT_FORM after open form.

Buy Now
Questions 9

Which two actions are always necessary when deploying Forms applications that were developed on Windows platform to a UNIX middle tier server?

A. moving the forms executable files from the development machine to the middle-tier machine

B. compiling the Forms modules on the middle tier machine

C. creating a menu module for the application

D. compiling the Forms modules on the development machine

E. moving the Forms source files from the development machine to the middle tier machine

F. creating a Forms PL/SQL library file to contain the application logic

G. installing forms Builder on the middle-tier machine

Buy Now
Questions 10

You have written a Forms application that your users log in to with their database login. Which Forms component is utilized first when a user runs the application?

A. Forms Client (applet)

B. Forms Runtime

C. Forms Servlet

D. Forms Listener Servlet

Buy Now
Questions 11

The Orders form, whose properties have not been changed from the default, has two non-base table text items to display the sales representative's first and last names.

You want to ensure that entries made in these Items correspond to an existing employee, so you write a When-Validate-Item trigger for the Sales_Rep_First_Name text item:

SELECT LAST_NAME Into :last_name FROM employees WHERE first_name = :first_name; EXCEPTION WHEN NO_DATA_FOUND THEN MESSAGE ('There is no sales rep by this name');

When you test the form and enter a first name that does not exist in the database, the message that you specified appears, but the cursor goes to the Sales_Rep_Last_Name item. You want the cursor to remain in the Sales_Rep__First Name item until a correct first name is entered.

Also, as you continue to test the form, at times, the cursor does not leave the Sales_Rep_First_Name item after you enter a name, but no error message appears.

Which two things can you do to correct these problems?

A. Add the code to handle the FORM_TRIGGER_FAILURE exception.

B. Raise the FORM_TRIGGER_FAILURE exception.

C. Add code to handle the TOO_MANY_ROWS exception.

D. Raise the TOO_MANY_ROWS exception.

E. Code an On-Error trigger.

F. Code an On-Message trigger.

G. Write a When-Validate-Item trigger for the Sales_Rep_Last_Name item.

H. Move the code to a form-level When-Validate-Item trigger.

I. Change the form's validation Unit property to Record.

Buy Now
Questions 12

View the Exhibit.

What four facts can you determine by examining the Object Navigator?

A. The Orders block is a detail block.

B. The Order_Items block is a detail block.

C. An order can be deleted only if it has no order items.

D. If an order is deleted, all of its order items are deleted.

E. You cannot delete order items without deleting the order.

F. You can delete an order without deleting its order items.

G. The Orders block is a master block.

H. The Order_Items block is a master block.

I. If you delete an order item, all of its associated inventory items are deleted.

J. The inventories block is a master block.

Buy Now
Questions 13

An LOV must be displayed several times in your form; therefore, good performance when displaying LOV is essential. In a When-New-Form-instance trigger, you want to save the ID of the LOV in a global variable so that you can use it in any code to display the LOV.

Which built-in would you use to get the ID of the LOV?

A. SHOW_LOV

B. FIND_LOV

C. GET_ITEM_PROPERTY

D. GET_LOV_PROPERTY

E. GET_APPLICATION_PROPERTY

Buy Now
Exam Code: 1Z0-151
Exam Name: Oracle Fusion Middleware 11g: Build Applications with Oracle Forms
Last Update: Apr 15, 2024
Questions: 90
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99