New Updated 1Z0-151 Exam Dumps Free Download

New Updated 1Z0-151 Exam Dumps Free Download

pass your 1Z0-151 exam in 1 day with passitdump.com. passitdump.com – 1Z0-151 certification with money back assurance. get 1Z0-151 certification with passitdump.com study materials and practice tests. passitdump.com – your reliable partner and professional 1Z0-151 certification exam material provider. passitdump.com – best 1Z0-151 training and certification computer-based-training online resources.

If you need to check sample questions of the 1Z0-151 free dumps, go through the Q and As from 1Z0-151 dumps below.

Question 1:

The Credit_Rating item in the Customers block of an Order Entry form must be restricted to three possible values: Good, Poor, or Null (the latter value indicates that the credit rating has not been determined). Order entry clerks must be able to update this item to any of the preceding three values.

You want to change the item to a check box labeled “Credit Risk” that should be selected if the customer has poor credit, the check box should not be selected if the customer\’s credit rating is good or undetermined.

You change the item type to Checkbox, set other properties as shown in the Exhibit, and then run your form and insert three records: two with good credit and the check box deselected, and one with poor credit and the check box selected. You commit the data and query the records, with the following result set:

The first two records show an undetermined credit rating, although your intention was to set the value to Good for these customers. What change must you make in the properties of the Credit_Ratinq item to enable values of Good, Poor, and Null to be entered?

A. Change the initial Value property to Good.

B. Change the Check Box Mapping of Other Values property to Not Allowed.

C. Change the initial Value property to Good and the Value When Unchecked property to Null.

D. Change the initial Value property to Good and the Chock Box Mapping of Other Valued property to Null.

E. Change the initial Value property to Good and the Check Box Mapping of Other Values property to checked.

F. Change the item type. It is not appropriate to use a check box to enable entry and update of more than two values in an item.

Correct Answer: E

Incorrect answers:

F: A check box is not limited to two values.


Question 2:

When tabbing through items in the Employees form, users should not be able to navigate to the Salary text item. If they need to update the item, they will have to explicitly navigate to it by using the mouse.

Which property setting accomplishes this requirement?

A. Enabled = Yes; Keyboard Navigable = No

B. Enabled = No; Keyboard Navigable = Yes

C. Enabled = Yes; Keyboard Navigable = Yes

D. Enabled = No; Keyboard Navigable = No

E. Automatic Skip = Yes

Correct Answer: C

*

Keyboard Navigable property Description Determines whether the end user or the application can place the input focus in the item during default navigation. When set to Yes for an item, the item is navigable. When set to No, Form Builder skips over the item and enters the next navigable item in the default navigation sequence. The default navigation

sequence for items is defined by the order of items in the Object Navigator. Applies to all items except chart items and display items

*

Default Yes Usage Notes If Enabled or Visible is set to No (PROPERTY_FALSE for runtime), then the items\’ or item instance\’s Keyboard navigable property is effectively false. At runtime, when the Enabled property is set to PROPERTY_FALSE, the Keyboard_Navigable property is also set to PROPERTY_FALSE. However, if the Enabled property is subsequently set back to PROPERTY_TRUE, the keyboard Navigable property is NOT set to PROPERTY_TRUE, and must be changed explicitly.


Question 3:

You have a text item in your form named Object1. You want to create Object2 as an exact duplicate of Object1. You want to be able to change the properties of Object2. However if you change Object1, you do not want Object2 to change.

Which method of reusing Object1 would be best for these requirements?

A. Copying Object1

B. Subclassing Object1

C. Creating a property class from Object1

D. Putting Object1 in an Object library

E. Referencing Object1 in a PL/SQL library

Correct Answer: A

When you copy an object, a separate, unique version of that object is created in the target module. Any objects owned by the copied object also get copied. Changes made to a copied object in the source module do not affect the copied object in the target module.

Incorrect answers:

B: With subclassing you can make an exact copy, and then alter the properties of some objects if desired.

If you change the parent class, the changes also apply to the properties of the subclassed object that you

have not altered. However, any properties that you override remain overridden.

This provides a powerful object inheritance model.


Question 4:

The Orders form has four blocks. The Orders and Order_items block are on the CV_Order content canvas;

the inventories block items are on the CV_inventories content canvas; and Control block buttons are on the

CV_Buttons toolbar canvas. All buttons have mouse Navigate set to No.

The Order_Items block is a detail of Orders. The inventories block is a detail of Order_Items, showing the

stock of the selected product.

There is a button in the Control block with a When-Button-Pressed trigger:

IF GET_CANVAS_PROPERTY(:SYSTEM.cursor_item, item_canvas) = \’CV_ORDER\’ THEN GO_BLOCK

(\’inventories\’)

ELSE

GO_BLOCK(\’orders\’);

END IF;

When you run the form and click the button, navigation does not occur, and the form displays the runtime

error “FRM-41053: Cannot find Canvas: invalid ID.” What should you do to correct this problem?

A. Change the sequence of blocks in the Object Navigator

B. Chang the Mouse Navigator property of the button to yes

C. in the first line of code, change the built-in to GET_ITEM_PROPERTY

D. in the first line of code, change the system variable to: SYSTEM.CURSOR_CANVAS.

E. in the first line of code, change the CV_ORDER to lowercase

F. Chang the argument to the GO_BLOCK built-ins to uppercase

Correct Answer: D

Note: GET_CANVAS_PROPERTY built-in Description Returns the given canvas property for the given canvas. . Syntax FUNCTION GET_CANVAS_PROPERTY( canvas_id Canvas ,property NUMBER);FUNCTION GET_CANVAS_PROPERTY( canvas_name VARCHAR2 ,property NUMBER)


Question 5:

Which four types of variables must have their names preceded by a colon when they are referenced in trigger code?

A. PL/SQL variables

B. Form items

C. global variables

D. system variables

E. parameters

Correct Answer: ABCD

D: Example:

On calling the

raiseEvent method, a trigger named WHEN-CUSTOM-JAVASCRIPT-EVENT is fired on the server side.

declare

event_val varchar2(300):= :system.javascript_event_value; begin

if (:system.javascript_event_name=\’show\’) then

handleShowEvent(event_val);

elsif(:system.javascript_event_name=\’grab\’) then

handleGrabEvent(event_val);

else

null;

end if;

end;


Question 6:

The Order Entry application contains several forms. The inventories form uses an LOV that is based on a record group that queries the Warehouses table to return a warehouse ID. Several of the forms use LOVs that are based on the same query. You decide to centralize the creation of the record group to the entry form of the application, which opens all the other forms, for example, to open the inventories form, there is a When-Button Pressed trigger on the inventories button with the following code;

OPEN _FORM (\’inventories\’);

in a When-New-Form-instance trigger for the entry form, you create the warehouse_rg record group by

using the CREATE_GROUP_QUERY built in with the following arguments:

(\’warehouse_rg\’ , \’SELECT ALL WAREHOUSE.WAREHOUSE_ID, WAREHOUSE.WAREHOUSE_NAME FORM WAREHOUSE order by warehouse_name);

You also populate the record group in this trigger.

What must you do to make this record group available to the inventories form and the other forms?

A. in the When-New-Form-instance trigger for the entry form, add a values for the SCOPE argument of CREATE_GROUP_QUERY.

B. in the entry form, move the record group code to the end of the When-Button-Pressed triggers for the buttons that open other forms, so that the record group is created and populated immediately after OPEN_FORM is called.

C. in the entry form, move the record group code to the beginning of the When-Button-Pressed triggers for the button that open other forms, so that the record group is created and populated just before OPEN_FORM is called.

D. in the When-Button_Pressed triggers of the entry from the buttons that open other forms, add a value for the SESSION argument of OPEN_FORM.

E. in the other forms, refer to the record group as: global.warehouse_rg.

Correct Answer: A

Note: The CREATE_GROUP_FROM_QUERY built-in is a function and must be invoked as part of an

expression. For example:

DECLARE

rg_id RecordGroup;

BEGIN

rg_id := CREATE_GROUP_FROM_QUERY (\’employee_rg\’, \’SELECT id,first_name,last_name,sal FROM

employee\’);

END;


Question 7:

View the Exhibit.

Iin the Human Resources form shown in the Exhibit, you want to modify the prompts, heights, and widths of the Department Id, Manager Id, and Location Id Holds in the Departments data block.

What must you select before invoking the Layout Wizard in reentrant mode to modify these item properties?

A. Frame5

B. Frames

C. Canvas4

D. the Departments block

E. the DEPARTMENT_ID, MANAGER_ID and LOCATION_ID items

Correct Answer: C

From the exhibit we see that Department Id, Manager Id, and Location Id are all present on Canvas4.


Question 8:

The Orders database table uses Order_id as its primary key. You have written the following code to use in the Orders block of a form:

SELECT orders_seq.NEXTVAL INTO :orders.order_id FROM SYS.dual;

Which statement is true about this code?

A. If you place this Code in a trigger that fires when the record is inserted into the database, you will likely have more gaps in Order IDs than if you use the sequence as a default value for the item.

B. If you place this code in a trigger, you should ensure that Order_Id has its required property set to Yes.

C. If you place this code in a trigger, you should ensure that Order_Id has its Database Item property set to No.

D. If the named sequence does not exist, it is automatically created the first time the code is called.

E. You should place this code a in a database trigger to minimize the gaps in Order IDs.

F. You should place this code in Pre-insert trigger to minimize the gaps in Order IDs.

G. You should place this code in a Post_insert trigger to minimize the gaps in Order IDs.

Correct Answer: F

Assigning Sequence Numbers to Records You will recall that you can assign default values for items from an Oracle sequence, to automatically provide unique keys for records on their creation. However, if the user does not complete a record, the assigned sequence number is “wasted.” An alternative method is to assign unique keys to records from a Pre-Insert trigger, just before their insertion in the base table, by which time the user has completed the record and issued the Save. Assigning unique keys in the posting phase can:

*

Reduce gaps in the assigned numbers

*

Reduce data traffic on record creation, especially if records are discarded before saving

Example

This Pre-Insert trigger on the ORDERS block assigns an Order ID from the sequence ORDERS_SEQ,

which will be written to the ORDER_ID column when the row is subsequently inserted.

SELECT ORDERS_SEQ.nextval

INTO :ORDERS.order_id

FROM SYS.dual;


Question 9:

In Forms Builder, the iconic buttons on the form are blank, but when you click Run Form the form appears in the browser with Images in the iconic buttons.

What are two things that you can check to track the source of this problem?

A. forms Builder runtime preferences

B. the UI_ICON setting in the operating system

C. the iconpath setting in the Forms registry file

D. the UI_ICOM_EXTENSION setting in the operating system

E. the iconextension setting in the Forms registry file

F. the FORMS_PATH setting in the Forms environment file

G. the classpath setting in the operating system

Correct Answer: BC

C: assume you put your gif in a directory /icon under your /forms on server, then in the registry.dat file, find the section containing sth below

xxx.xxx.iconpath=

xxx.xxx.iconextension =,

set above iconpath=/icon

iconextension =gif


Question 10:

You want to display employee records in tabular format, but the form is not wide enough to display all the items in the Employees block. The employee IDs and names of displayed records should always be visible, but you want to scroll the additional information as users tab through the Items, the form should look like a spreadsheet with the first two columns frozen.

Which canvas types would be most appropriate in this scenario?

A. content canvas in a window with a horizontal scroll bar

B. content canvas and multiple tab canvases

C. content canvas and a tab canvas with multiple tab pages

D. content canvas and a stacked canvas with a horizontal scroll bar

E. multiple content canvases

Correct Answer: C

After an entity is divided into groups, if all groups cannot be displayed simultaneously, it becomes necessary for two or more regions to be displayed in the exact same space, one at a time, using a Tab control. The user can jump to a specific region by selecting a tab or by progressing continuously through all fields of all Tab regions. A set of fields, minimally the primary key fields, should remain visible so the user can maintain context at all times. There, “frozen” fields must be placed inside the Tab control on the left side. When best to use Tab regions:

*

When the user must see all fields of a record in a single window, but they do not need to see them all simultaneously.

*

When entire regions need to be hidden from a user due to security restrictions, the current state of data, or other product installations.


Question 11:

You have created a complex menu structure with several types of menu objects. To which objects would you assign menu commands?

A. main menus

B. individual menus

C. submenus

D. menu items

E. all of the above

Correct Answer: E

The Menu Editor is a graphical design facility for laying out, modifying, and viewing menu modules and

their objects. You can use the Menu Editor to carry out all of your menu design work.

Note:

To use the Menu Editor to create a basic structure for your menu, perform the following steps:

1 .

With the SUMMIT_MENU module selected, perform one of the following actions to invoke the Menu Editor:

Double-click the icon to the left of the module Right-click the module and select Menu Editor Select Tools > Menu Editor from the Forms Builder menu

2 .

When you invoke the Menu Editor, it automatically creates the main menu and one menu item. The main menu is the menu whose items, which can be menu items or submenus, show in the menu bar when you run a form.

In the Object Navigator, change the name of the main menu to MAIN_MENU in the same way that you changed the name of the menu module.

3 .

In the Object Navigator, change the name of the menu item to File.

4 .

Note that the item\’s display label in the Menu Editor remains the same.

The label is the text that is displayed for the menu item at run time. The label may differ from the name.

You use the name programmatically, and it must follow PL/SQL naming conventions.

Change the label of the menu item by double-clicking in the Menu Editor and typing the new

label of File.

5 .

Create two menu items under File. In the Menu Editor, select File, then click Create Down twice.

6 .

In the Menu Editor, relabel the menu items to Save and Exit.

Note that creating menu items under the File object creates a FILE_MENU object as a menu with two

items under it. Also, when you relabel the items in the Menu Editor, the names of the items, as shown in

the Object Navigator, also change.

7 .

Create another submenu of the main menu and label it Edit by performing the following steps:

In the Menu Editor, select the File node.

Click Create Right.

Relabel the new menu Edit.

8 .

In a similar fashion to the way you created the File menu items, create two items for the Edit menu labeled

Copy and Paste.

9 .

You can also use the Object Navigator to add a menu item.

Under the Edit_Menu in the Object Navigator, select the Items node and click Create.

10 .

In the same way as you did with other items, relabel the new item in the Menu Editor with the label Cut,

which also renames it in the Object Navigator.

Reference: Creating Oracle Forms Menus


Question 12:

View the Exhibit.

The Departments table in the database contains four columns. In a new form, you use the Data Block Wizard to add all columns to the block, but in the layout Wizard, you choose all columns except Location_Id to add to the canvas. The Object Navigator and layout Editor appear as shown in the Exhibit.

You then decide that you do need to display Location_Id on the canvas. What object must you select before invoking the Layout Editor in re-entrant mode to make this change?

A. the text item tool in the Layout Editor

B. Frame 16 in either the Object Navigator or the layout Editor

C. Canvas4 in either the Object Navigator or the Layout Editor

D. Location_Id in the Object Navigator

E. the Departments data block in the Object Navigator

Correct Answer: D


Question 13:

To avoid overloading the database during busy times, you decide to restrict the queries that are executed on the Orders form so that users query by either Order ID or Customer ID during these times. Which trigger is most appropriate for the code to enforce this restriction?

A. When-New-Form-instance

B. When-New-Block-instance

C. On-Query

D. Pre-Query E. Post-Query

Correct Answer: D

About controlling queries with Pre-Query and Post-Query triggers

The Pre-Query and Post-Query triggers allow control over query processing. They can be defined at the

form or block level. Most often, attach them to specific blocks to control the query functionality of those

blocks.

The Pre-Query trigger fires just before Form Builder issues the SELECT statement to the database, after

the operator has defined the example record by entering query criteria in Enter Query mode.

Inside a Pre-Query trigger, the example record defined by the query criteria is the current record. This

means that trigger code can read and set the values of items in the example record using standard

:block_name.item_name syntax.

A Pre-Query trigger can be used to disallow query conditions that might be invalid. When a form is in Enter

Query mode, normal validation is suspended and no validation triggers fire as they do in Normal mode.

The Pre-Query trigger thus allows you to verify that any values entered by the operator are valid query

conditions.

When invalid query conditions have been entered, you can abort the query by raising the

FORM_TRIGGER_FAILURE built-in exception in the Pre-Query trigger.

You can also call SET_BLOCK_PROPERTY to modify the block\’s WHERE and ORDER BY clauses from

within the Pre-Query trigger, to further restrict or order the records the query will retrieve.


Question 14:

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.

Correct Answer: C

Because you cannot refer directly to form values in menu code, change :GLOBAL.customer_id to the following indirect reference: NAME_IN(\’GLOBAL.customer_id\’)

Note: You could also change the references to the global variable to use the NAME_IN built-in; however, this is not strictly necessary, because global variables are available directly throughout the application.

Reference: Managing Oracle Forms Menu Modules


Question 15:

You are planning the alerts that are needed for your Human Resources application. You wish to display the following in alerts:

*

A message to inform the user about being at the just record

*

A warning about a potential conflict with the data just entered

*

A message to display a validation error to the user

*

A warning that the salary is out of range and that asks whether the user wants to correct it

You want the note symbol ( ) to appear on alerts that display only informative messages, the

warning symbol to appear on messages where you will allow the user to continue despite some data problem, and the alarm boll symbol to appear where the user will not be allowed to continue without correcting the situation that caused the alert to be displayed.

You want to define the minimum number of alerts possible and customize them at run time.

Which alerts should you define?

A. One Note style alert and caution style alert

B. One Note style alert and one Stop style alert

C. On Caution style alert and one stop style alert

D. On Note style alert, one Caution style alert, and one Stop style alert

E. Two Caution style alerts and one Stop style alert

Correct Answer: D

In this scenario we need three different kind of alerts.

How to Create an Alert

Like other objects you create at design-time, alerts are created from the Object Navigator.

1.

Select the Alerts node in the Navigator, and then select Create.

2.

Define the properties of the alert in the Property Palette. Here are the properties that are specific to an alert. This is an abridged list.

Note: Alerts are an alternative method for communicating with the operator. Because they display in a

modal window, alerts provide an effective way of drawing attention and forcing the operator to answer the

message before processing can continue.

Note 2: Potentially, you can create an alert for every separate alert message that you need to display, but

this is usually unnecessary.

You can define a message for an alert at run time, before it is displayed to the operator. This means that a

single alert can be used for displaying many messages, providing that the available buttons are suitable for

responding to each of these messages.

Create an alert for each combination of:

*

Alert style required

*

Set of available buttons (and labels) for operator response For example, an application might require one Note-style alert with a single button (OK) for acknowledgment, one Caution alert with a similar button, and two Stop alerts that each provide a different combination of buttons for a reply. You can then assign a message to the appropriate alert before its display, through the SET_ ALERT_PROPERTY built-in procedure.

Reference: Oracle Forms Student Guide, How to Create an Alert