Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window...

44
http://www.gratisexam.com/ 1Z0-151 Passing Score : 800 Time Limit : 0 min http://www.gratisexam.com/

Transcript of Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window...

Page 1: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

1Z0-151

Passing Score: 800Time Limit: 0 min

http://www.gratisexam.com/

Page 2: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Exam A

QUESTION 1You 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 andnames 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 aspreadsheet with the first two columns frozen.Which canvas types would be most appropriate in this scenario?

http://www.gratisexam.com/

A. content canvas in a window with a horizontal scroll barB. content canvas and multiple tab canvasesC. content canvas and a tab canvas with multiple tab pagesD. content canvas and a stacked canvas with a horizontal scroll barE. multiple content canvases

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: 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 atab 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 maintaincontext at all times. There, "frozen" fields must be placed inside the Tab control on theleft side.When best to use Tab regions:* When the user must see all fields of a record in a single window, but they do notneed to see them all simultaneously.* When entire regions need to be hidden from a user due to security restrictions, thecurrent state of data, or other product installations.

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

Page 3: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

A. main menusB. individual menusC. submenusD. menu itemsE. all of the above

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Explanation: 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 ofyour 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 moduleRight-click the module and select Menu EditorSelect Tools > Menu Editor from the Forms Builder menu2 .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 itemsor 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 <New_Item> 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 MenuEditor, 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:

Page 4: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

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 3View 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 layoutWizard, 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 makethis change?

A. the text item tool in the Layout EditorB. Frame 16 in either the Object Navigator or the layout EditorC. Canvas4 in either the Object Navigator or the Layout EditorD. Location_Id in the Object NavigatorE. the Departments data block in the Object Navigator

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 4To 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 IDor Customer ID during these times. Which trigger is most appropriate for the code to enforce this restriction?

A. When-New-Form-instanceB. When-New-Block-instanceC. On-Query

Page 5: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

D. Pre-QueryE. Post-Query

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: About controlling queries with Pre-Query and Post-Query triggersThe 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 specificblocks 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 enteringquery 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 itemsin 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 novalidation 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 therecords the query will retrieve.

QUESTION 5You have created an editor named MyEditor, and you want it to be available to edit the text item Product_Description. You can associate the editor with the text itemby setting the Editor property of Product_Description to MyEditor.

A. TrueB. False

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 6The Orders form is sometimes run automatically and sometimes run from the Customers form, when it is run from the Customers form, any queries should berestricted 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');

Page 6: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

IF: GLOBAL.customer_id IS NOT NULLTHENSET_BLOCK_PROPERTY ('orders', DEFAULT_WHERE, 'orders.customer_id =' | | :GLOBAL.CUSTOMER_id);END IF;EXECUTE_QUERYYou 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?

http://www.gratisexam.com/

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: DSection: (none)Explanation

Explanation/Reference:

QUESTION 7You 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 itYou 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 userto 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 thatcaused 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?

Page 7: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

A. One Note style alert and caution style alertB. One Note style alert and one Stop style alertC. On Caution style alert and one stop style alertD. On Note style alert, one Caution style alert, and one Stop style alertE. Two Caution style alerts and one Stop style alert

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: In this scenario we need three different kind of alerts.How to Create an AlertLike 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 drawingattention 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 thesemessages.Create an alert for each combination of:* Alert style required* Set of available buttons (and labels) for operator responseFor 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 Stopalerts 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

QUESTION 8You have installed WebLogic and Forms with a default configuration, which has been tested and determined to be correct.After creating a basic form in the Forms Builder, you click Run Form to test it. Forms Builder displays an error dialog box with the following message:FRM-10142: The HTTP Listener is not running on <host> at port 9001.Please start the listener or check your runtime preferences.What is one action that you can take to resolve this error?

A. Start the Web Logic Administration server.

Page 8: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

B. Start the WLS_FORMS managed server.C. Change the serverURL parameter in formsweb.cfgD. Start the Oracle HTTP server.E. Start WebCache.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation: The WLS managed server WLS_FORMS must be started.

QUESTION 9Which statement is always true about using OPEN_FORM to open multiple forms in an application?

A. Database transactions are always continued across forms.B. Code is always shared among forms.C. A calling form must pass data to a called form.D. A global record group is always created.E. Only A and B are true.F. Only B and C are true.G. Only C and D are true.H. None of the statements above are true.

Correct Answer: HSection: (none)Explanation

Explanation/Reference:Explanation: OPEN_FORMOpens the indicated form. Use OPEN_FORM to create multiple-form applications, that is, applications that open more than one form at the same time.OPEN_FORM can be instructed for the two forms to share the same database session and/or library data.Note:CALL_FORMRuns an indicated form while keeping the parent form active. Oracle Forms runs the called form with the same Run form preferences as the parent form. When thecalled form is exited Oracle Forms processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.CALL_FORM can beinstructed to hide or not hide the calling form, replace or not replace the menu, open the new form in query only mode, share or not share library data.

Page 9: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

NEW_FORMExits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, OracleForms keeps the higher call active and treats it as a call to the new form.Incorrect answers:A: session_mode:NO_SESSION (The default.): Specifies that the opened form should share the same database session as the current form.SESSION: Specifies that a new, separate database session should be created for the opened form.C: data_modeNO_SHARE_LIBRARY_DATA (The default.):At runtime, Oracle Forms will not share data between forms that have identical libraries attached (at design time).SHARE_LIBRARY_DATA: At runtime, Oracle Forms will share data between forms that have identical libraries attached (at design time).Reference: Difference between call_form, new_form and open_form

QUESTION 10You put some code in a Post_Update trigger and raise the FORM_TRIGGER_FAILURE under certain conditions. Does a rollback take place if the trigger falls?

A. Yes. Although the update has been applied to the database, the old column values are retained as rollback data; so a failure of this trigger automaticallyreinstates the original values.

B. No. It is too late to perform a rollback at this stage because the update has already been applied.C. The value have already been applied, so you must programmatically save the old values in the global variables or PL/SQL variables if you want to reinstall the

original values.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 11View the Exhibit. You have placed the following code in a Post insert trigger on the Orders block:SELECT orders_seq.NEXTVALINTO :orders.order_idFORM 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 theExhibit.What is the probable cause of this error?

A. The code should be in Pre_insert trigger instead

Page 10: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

B. The code should be in a database trigger insteadC. You should change the code to select the sequence number from SUMMIT.dual instead.D. You should create the sequence in the database, because the runtime error is an indication that is does not exist.E. You should assign a temporary value to the Order_Id item before saving the form.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 12You are coding a When-Checkbox-Changed trigger.Which statements are available for use in your code?

http://www.gratisexam.com/

A. unrestricted built-ins onlyB. restricted and unrestricted built-ins onlyC. PL/SQL statements and unrestricted built-ins onlyD. PL/SQL statement-, and any built-ins

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: When-Checkbox-Changed triggerDescriptionFires when an operator changes the state of a check box, either by clicking with the mouse, or using thekeyboard.Definition Level: form, block, or itemLegal Commands:SELECT statements, unrestricted built-ins, restricted built-insReference: Oracle Forms Developer, When-Checkbox-Changed trigger

Page 11: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

QUESTION 13On 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?

A. You receive a compilation error.B. The form starts to run, but immediately closes. So If an error message Is displayed, you are unable to see it.C. The form runs, but as soon as it appears, you receive a runtime error.D. The form runs, but as soon as you perform any navigation, a runtime error occurs.E. The form runs with no problem.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 14Yon 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 thecustomer, 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 therange 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 databefore 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 withoutchanging the default value of the list item?

A. Add a blank line to the list item when you define the static values.B. Set Mapping of other Values for the Credit_Rating Item to NULL.C. Set the Required property of the Credit_Rating item to No.D. Delete the NOT NULL constraint for the Credit_Rating Column in the database.E. You 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: ASection: (none)Explanation

Explanation/Reference:

Page 12: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

QUESTION 15A 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 areenabled.Possible navigation units that can occur during navigation of this form are:1. Outside the form2. The Human Resources form3. The Departments block4. The Employees block5. The current Departments record6. The current Employees record7. The Department_Id item8. The Employee_Id itemWith the cursor in : Departments.Department_Id, the clerk clicks the :Employees.Employee_Id item.What is the sequence of navigational unit movement that occurs?

A. 1, 2, 3, 4, 5, 6, 7, and 8B. 7, 5, 3, 2, 4, 6, and 8C. 7, 5, 3, 2, 4, 6, and 8 onlyD. 7, 5, 3, 4, 6, and 8 onlyE. 7 and 8 only

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 16You want to use WebUtil functionality in the Orders form. What three things must you do to integrate WebUtil into the Orders Form?

A. Copy the WebUtil object group from the WebUtil object library into a separate object library.B. Subclass the WebUtil object group from the WebUtil object library into the Orders form.C. Ensure that the WebUtil block is the last block under the Data Blocks node in the Object Navigator.D. Ensure that the WebUtil block is the first block under the Data Blocks node in the Object Navigator.E. Attach the WebUtil library to the Orders form.F. Copy the WebUtil library to the same directory as the Orders form.G. in the When-New-Form-instance trigger, register the WebUtil javaBeans.

Page 13: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

H. Set the Implementation Class Property for any items that will implement WebUtil JavaBeans.

Correct Answer: BCESection: (none)Explanation

Explanation/Reference:Explanation: Integrating WebUtil into a FormStep 1: Attaching the WebUtil Library (E) To use the functions of WebUtil in a Forms application, you mustfirst attach thewebutil.pll library to any module that will use the WebUtil PL/SQL API. Select theAttached Libraries node in the Orders form and click Create. This invokes theAttach Librarydialog box, in which you can browse to the location of webutil.pllStep 2: Subclassing WebUtil Forms Objects (B)Part of the WebUtil utility is a set of Forms objects contained in webutil.olb. This object library contains an object group called WebUtil, which you can subclass into your form.C: A data block named WEBUTIL; ensure that this is the last block in the Navigator.Reference: Oracle Fusion Middleware 11g, Build Applications with Oracle Forms, Integrating WebUtil into a Form

QUESTION 17Iin an Order Entry form, the Order_Items block has a text item called Shipping Date, which is of the Date data type. The Lowest Allowed Value and the HighestAllowed Value properties are not defined for this item.Assuming that the following are defined, which three are valid settings for the initial Value = property of the Shipping_Date Item?

A. $$DBDATE$$B. :Orders.Order_Date + 3C. SYSDATED. :GLOBAL.SHIP_DATEE. :PARAMETER.SHIPF. ORDER_ITEMS_SEQ

Correct Answer: ADESection: (none)Explanation

Explanation/Reference:

QUESTION 18The 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

Page 14: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

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.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 19You have designed a form with two content canvases. The window for the first canvas was created implicitly, and you have not changed its default properties.You want users to be able to navigate between the canvases easily while viewing both simultaneously. Therefore, you create a second window, changing only itsname from the default properties.However, when you test the form, you find that you are unable to close either window. What must you do to provide this functionality?

http://www.gratisexam.com/

A. Change the second window to a modal window.B. Code a When-Window-Closed trigger for each window.C. Set Close Allowed to Yes for both windows.D. Set Hide on Exit to Yes for both windows.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 15: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

QUESTION 20Identify a function of the Forms Servlet.

A. It creates a dynamic HTML file.B. It starts a Forms runtime session.C. It manages network requests from the Forms Client.D. It connects to and communicates with the database server.E. It renders the Forms Services application display for the user.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 21Your company applies three different interest rates for customers based on their credit rating, which is classified as being Excellent, Fair, Poor or Unknown.In the years past, clerks entered credit ratings manually, which resulted in some of them being mistyped. To improve data entry accuracy you modify the Customersform so that the Credit_Rating item is a static list item that allows only those four values.

Users report to you that some of the customer records can no longer be accessed when they use the modified Customers form. How can you fix this problem?

A. Ensure that required is set to No for the list item so that a blank line appears in the list.B. Set the Mapping of Other Values property for the list item.C. Set the Default Value property for the list item.D. Set the Query Allowed Property for the list Item.E. Users must re-enter the records for those customers that cannot be accessed.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation: The important property is the "mapping of other values." This property tells Oracle Forms how to handle values that are not expected.

QUESTION 22A user at a remote location reports a problem that occurs when the Orders; form runs and the user clicks the invoice button. You are not able to reproduce theproblem, so you decide to use remote debugging.

Page 16: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

The steps involved in diagnosing the problem are listed below, but they are ordered incorrectly. What is the correct sequence of Steps?1. You set a breakpoint in the When Button-Pressed trigger for the invoice button.2. The user's screen goes blank.3. The user reports the host and port to you.4. You uses the debugger to step through the code.5. The user clicks a button that calls DEBUG.ATTACH.6. You attach to the user's process.7. You open the Orders.fmb file from which the running .fmx was generated.8. The user clicks the invoice button.

A. 5, 3, 6, 7, 1, 8, 2, 4B. 8, 3, 6, 5, 4, 7, 1, 2C. 7, 1, 3, 6, 5, 1, 8, 4D. 3, 6, 5, 7, 8, 1, 2, 4

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 23View the Exhibit. You are attempting to drag the Control and CV_Order objects to an object group as shown in the Exhibit, but you are unable to release them in the Object GroupChildren node of the object group.What is the reason for this?

A. You cannot drag a canvas to an object group.B. You cannot drag a block to an object group.C. You need separate object groups for different types of objects.D. You cannot drag multiple types of objects to an object group at the same time.E. You should drag them to the ObjectGroup96 node, not to its Object Group Children node.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

Page 17: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

QUESTION 24You wish to use a javaBean in a form. This javaBean has no visible component.You use the Layout Editor to create a bean area item that implements this JavaBean. You want to be able to see the bean area item in the Layout Editor so that youcan easily interact with it at design time.What can you do to ensure that the bean area item does not appear on the form at run time?

http://www.gratisexam.com/

A. Set its Visible property to No.B. Set its Height and Width properties to 1.C. Set its Implementation class programmatically at run time.D. You do not have to do anything; if Implementation Class does not display a visible component, the bean area does not show at run time.E. You cannot avoid displaying the Bean area at run time.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 25You have a form that called a database stored procedure. You do not want processing to continue, so immediately after the call to the stored procedure, you add thefollowing code:IF NOT FORM_SUCCESS THENMESSAGE ('Stored Procedure failure');RAISE FORM_TRIGGER_FAILURE;END IF;You test the code and input some data that intentionally causes the stored procedure to fail. However, the message that you defined does not appear. What are twopossible reasons for this?

A. You must handle database errors in an exception clause of the trigger.B. You must test for FORM_FAILURE when testing for failure of a stored procedure.C. You must test for FORM_FATAL when testing for failure of a stored procedure.

Page 18: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

D. FORM_SUCCESS tests for failure of Forms built-ins, not stored procedures.E. You cannot test for failure of a stored procedure, because database errors are transparent to Forms.

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:Explanation: A: You should use DBMS_ERROR_CODE and DBMS_ERROR_TEXT in an ON-ERROR trigger to trap errors propagated from Oracle server from Forms.Note: FORM_SUCCESS and FORM_TRIGGER_FAILUREEither the FORM_SUCCESS built-in or the FORM_TRIGGER_FAILURE exception must be used to handle all Forms errors. FORM_SUCCESS is a Booleanfunction that evaluates to TRUE or FALSE depending on the success or failure of a Forms built-in. FORM_TRIGGER_FAILURE is an exception that has to beraised to stop further processing whenever an error occurs or FORM_SUCCESS evaluates to FALSE. The following sections describe their use in error-messagehandling.

QUESTION 26You want to use the Forms Debugger to diagnose a problem with the RAISE_STATUS program unit that is stored in the database.Forms Builder, you set a breakpoint in the stored code, and then run the Human Resources form in debug mode. You click the Raise_Salaries button, which has aWhen Button Pressed trigger that calls RAISE_SALARIES.However, you are unable to see the RAISE_SALARIES procedure when you step through the code, and it does not appear in the stack frame. What could be thereason for this problem?

A. You are not connected to the database.B. The stored program unit was not compiled with the debug information included.C. The breakpoint should have been set in the When-Button-Pressed trigger, not in the stored program unit.D. You cannot use the Forms Debugger to diagnose problems with stored program units.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: The Forms debugger can only step through Forms side code, not database side code. If you Form calls a database procedure, you will not be able to see what itdoes through the Forms debugger.

QUESTION 27View the Exhibit. You have integrated the WebUtil utility into the Orders form. You code a When-Button-Pressed trigger to call some WebUtil functionality, and then run the form to

Page 19: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

test it. Everything works as it should.You then write some other triggers and test the form again. Before the form appears, you receive several errors that are similar to the one shown in the Exhibit.What is a probable cause of this error?

A. You have invoked WebUtil functionality from a trigger that does not accept restricted built-ins.B. You have invoked WebUtil functionality from a Pre-form trigger.C. You did not recompile the WebUtil library after adding new triggers.D. You did not enable the GetClientinfo JavaBean.E. Java is not installed on the client machine, so SET_JAVA_VERSION returns an error.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 28View 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 lineas 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. TheTab_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.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 29View the Exhibit.

Page 20: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

The Summit menu is attached to the Orders form. The Toggle Autoquery menu item is a check box that toggles whether a query is automatically performed whenthe Orders form is first invoked. If the check box is deselected, users must manually query.In addition to using the menu, users want to be able to toggle the autoquery preference directly from the form. You add a button named Toggle Autoquery with thefollowing When-Button-Pressed trigger:DECLAREmi_id MENUITEMS;BEGINmi_id ;=FIND_ITEM ('Preferences.AutoQuery')/* Determine the current checked static of the AutoCommit menu checkbox itemAnd toggle the checked state*/IF GET_ITEM_PROPERTY (mi_id, CHECKED) = 'TRUE' THENSET_ITEM_PROPERTY (mi_id, CHECKED, PROPERTY_FALSE);ELSESET_ITEM_PROPERTY (mi_id, CHECKED, PROPERTY_TRUE);END IF;END;However, the trigger does not compile. What three changes must you make so that the trigger compiles successfully?

A. Change FIND_ITEM to FIND_MENU_ITEM.B. Change 'preferences.AutoQuery' to 'orders.preferences.AutoQuery'.C. Change 'preferences.AutoQuery' to 'AutoQuery'.D. Change 'preferences.AutoQuery' to 'ORDERS.PREFERENCES>AUTOQUERY'.E. Change 'preferences.AutoQuery' to 'AUTOQUERY'.F. Change GET_ITEM_PROPERTY to GET_MENU_ITEM_PROPERTYG. Change SET_ITEM_PROPERTY to SET_MENU_ITEM_PROPERTYH. Change PROPERTY_FALSE to 'FALSE'.I. Change PROPERTY_TRUE to 'TRUE'.

Correct Answer: AFGSection: (none)Explanation

Explanation/Reference:Explanation: A: Note: FIND_MENU_ITEM built-inDescriptionSearches the list of menu items and returns a menu item ID when it finds a valid menu item with the given name. You must define an appropriately typed variable toaccept the return value. Define the variable with a type of MenuItem.Note 2:FIND_ITEM built-in

Page 21: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

DescriptionSearches the list of items in a given block and returns an item ID when it finds a valid item with the givenname. You must define an appropriately typed variable to accept the return value. Define the variablewith a type of Item.Example (with FIND_MENU_ITEM, GET_MENU_ITEM_PROPERTY, SET_MENU_ITEM_PROPERTY)FIND_MENU_ITEM examples/* ** Built-in: FIND_MENU_ITEM** Example: Find the id of a menu item before setting** multiple properties*/PROCEDURE Toggle_AutoCommit_Mode IS mi_id MenuItem; val VARCHAR2(10);BEGIN mi_id := Find_Menu_Item(’Preferences.AutoCommit’); /* ** Determine the current checked state of the AutoCommit ** menu checkbox item */ val := Get_Menu_Item_Property(mi_id,CHECKED); /* ** Toggle the checked state */ IF val = ’TRUE’ THEN Set_Menu_Item_Property(mi_id,CHECKED,PROPERTY_FALSE); ELSE Set_Menu_Item_Property(mi_id,CHECKED,PROPERTY_TRUE); END IF;END;

QUESTION 30The Orders form has the following triggers defined:1. Post-Text-Item on Customer_Id2. Pre-Text-Item on Sales_Rep_Id3. When-New-Item-instance on Sales_Rep_IdThe form's Validation Unit property is set to Record.When the user navigates from Customer_Id to Sales_Rep_Id, which triggers fire and what is the sequence?

A. 1, 2, and 3B. 1, 3, and 2C. 1 and 2 only

Page 22: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

D. 2 and 3 onlyE. 3 only

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 31Which statement is always true about a visual indicator that a text item has a list of values associated with it?

http://www.gratisexam.com/

A. An iconic list button appears next to the text item.B. A list of values lamp appears as a tool tip when the cursor is placed over the text item.C. A list of values lamp appears next to the text item.D. A list of values lamp appears on the status line when the cursor enters the text item.E. A button with an ellipsis appears in the text Item when the cursor enters the text item.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 32You create a Customers form by using wizards. When you test the form, you notice that you cannot the complete name that is displayed in the Customer_Name textitem. Which three tools can you use to correct this problem?

A. Layout EditorB. Property PaletteC. Data Block wizard

Page 23: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

D. Layout wizardE. Object NavigatorF. Object Library

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:

QUESTION 33If a display item has a Calculation Mode of Formula, you can call a program unit to perform the calculation.

A. TrueB. False

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 34You add a display item named Quantity to the Order items block of your Orders form to display the quantity on hand for each product. Quantity is a non-base tableitem that should reflect the count of an ordered product from the inventories table.What is the best way to populate the Order_Iterns.Quantity item?

A. Post-Query triggerB. Pre Query triggerC. When-New-Form-instance triggerD. When New-Item-instance triggerE. You need to define a master-detail relation so that the item is populated automatically.

Correct Answer: ASection: (none)Explanation

Page 24: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Explanation/Reference:

QUESTION 35View the exhibit. In the OrderItemsForm, you have a control with a button that users can click to navigate to the first record in the block. The button has keyboard Navigable andMouse Navigable set to No.You are coding a When-Button-Pressed trigger for the First Record button with the following code:SCROLL_UP;WHILE FORM_SUCCESS LOOPSCROLL_UP;END LOOP;What happens when the user clicks First Record with the cursor in the 72nd record in the block, as shown in the Exhibit?

A. The cursor successfully navigates to the first record.B. A runtime error is encountered because there is no scroll bar for the block.C. The display scrolls so that the first record is visible, bur the cursor stays on the last visible record, which should be record 10.D. The form goes into an infinite loop and has to be killed by using operating system commands.E. internal navigation to the first record occurs, but the visible cursor remains on record 72. You should add the SYNCHRONIZE command to synchronize the

display with the internal state of the form.F. Because there is no scroll bar, the cursor navigates only as far as the first visible record, which is record 63.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation: SCROLL_UP built-inDescriptionScrolls the current block’s list of records so that previously hidden records with lower sequence numbers are displayed. This action displays records that were"above" the block’s display.SCROLL_UP puts the input focus in the instance of the current item in the displayed record that has thehighest sequence number.

QUESTION 36Immediately after creating a button in the Layout Editor, what is true about the button?

A. It is an iconic button.B. It has no functionality.C. It is not mouse navigable.

Page 25: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

D. It is not keyboard navigable.E. It is in the control block by default.F. It is not enabled.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 37The Enforce Primary Key property of a data block ensures that the primary key of a new record exists in the database.

A. TrueB. False

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 38Users do not want to see the "Working" message while a long query completes.You are designing a form with a query that takes o long time to execute. What can you do to stop the "Working" message from appearing?

A. Before the line of code that executes the query, add the line::SYSTEM.MESSAGE_LEVEL := '10';

B. Before the line of code that executes the query, add the line::SYSTEM.SUPPRESS_WORKING : = 'TRUE';

C. Use the SET_APPLICATION_PROPERTY built-in to set the message level in a When-New-Form-instance trigger.D. You do not need to do anything, the default behavior of Forms is to display the "Working" message only if you add code to do so.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 26: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Explanation: You can turn the 'Working...' message off with system.suppress_working command.SYSTEM.SUPPRESS_WORKING examplesAssume that you want to have the form filled with data when the operator enters the form. The followingWhen-New-Form-Instance trigger will prevent the unwanted updates that would normally occur whenyou fill the blocks with data.:System.Suppress_Working := 'TRUE';Go_Block ('DEPT');Execute_Query;Go_Block ('EMP');Execute_Query;Go_Block ('DEPT');:System.Suppress_Working := 'FALSE';

QUESTION 39What happens when you click Run Form Debug in Forms Builder?

http://www.gratisexam.com/

A. The form runs on your local machine by using a debug executable client.B. The form runs in a three-tier environment by using the application server URL that you specify in runtime preferences.C. The form runs in a three tier environment by using the [debug] configuration in the FORMSWEB.CFG file.D. The form runs in a simulated three-tier environment by using an applet viewer that is included with the product to enable debugging.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation: Directly from the class materials from Oracle: As in the case when you run a form from Forms Builder with the Run Form button, the Run Form Debug button runsthe form in a three-tier environment. It takes its settings from the Preferences window that you access by selecting Edit > Preferences from the main menu andclicking the Runtime tab.

QUESTION 40View the Exhibit.

Page 27: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

You have begun the process of integrating WebUtil into the Ordes form. What two additional steps must be completed yet?

A. Write a Pre Form trigger to register WebUtil JavaBeans.B. Attach the WebUtil PL/SQL library to the form.C. Subclass the webUtilConfig parameter from the WebUtil object library into the form.D. Define WebUtil events that the form listens and responds to.E. Move the WebUtil data block to the last position under the Data Blocks node in the Object Navigator.F. Move the WebUtil data block to the first position under the Data Blocks node in the Object Navigator.

Correct Answer: BESection: (none)Explanation

Explanation/Reference:Explanation: Integrating WebUtil into a FormStep 1: Attaching the WebUtil Library (This has already been done in this scenario – not B) To use the functions of WebUtil in a Forms application, you mustfirst attach thewebutil.pll library to any module that will use the WebUtil PL/SQL API. Select theAttached Libraries node in the Orders form and click Create. This invokes theAttach Librarydialog box, in which you can browse to the location of webutil.pllStep 2: Subclassing WebUtil Forms Objects (C)Part of the WebUtil utility is a set of Forms objects contained in webutil.olb. This object library contains an object group called WebUtil, which you can subclass into your form.E: A data block named WEBUTIL; ensure that this is the last block in the Navigator.Reference: Oracle Fusion Middleware 11g, Build Applications with Oracle Forms, Integrating WebUtil into a Form

QUESTION 41You do not want users to execute queries while in the Order_Items block, so you write the following key-Exeqry trigger for the Order_Items block:GO_BLOCK('orders');EXECUTE_QUERY;This works fine except that in the Order_Items block, when you click Enter Query first, and then click Execute Query, you get the error message “FRM-41009:Function key not allowed.” What can you do correct this?

A. Set the Fire in Enter-Query Mode property of the Key-Exeqry trigger to Yes.B. Add the following as the first of the key-Exqry trigger to Yes.

SYSTEM.mode := 'NORMAL';C. Delete the Key-Exqry trigger and define the following Key-Entqry trigger for the Order_Items block:

GO_BLOCK ('orders');ENTER_QUERY;

D. Delete the Key-Exqry trigger and define the following Key-Entqry trigger for the Order_Items block:

Page 28: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

ENTER_QUERY;GO_BLOCK ('orders');

E. Change the key-Exqry trigger to:IF : SYSTEM.MODE := 'ENTER-QUERY' THENGO_BLOCK ('orders');EXECUTE_QUERY;ELSEMESSAGE ('you cannot execute a query for the Order_Items block'):END IF;Define the following Key-Entqry trigger for the Order_Items block:GO_BLOCK ('orders');ENTER_QUERY

F. Change the Key-Exeqry trigger to:IF :SYSTEM.MODE != 'ENTER-QUERY' THENGO_BLOCK('orders');EXECUTE_QUERY;ELSEMESSAGE ('You cannot execute a query in this block');ENTER_QUERY;GO_BLOCK ('orders');

G. You cannot change this behavior, but you should use the On-Message trigger to display a more meaningful message.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 42You have the Orders form open in Forms Builder. You create an object group in the Orders form and try to drag various components in the Object Navigator to theobject group.Which two components will you be unable to place in the object group?

A. the Orders block of the Orders formB. the Order_CV canvas of the Orders formC. the When-New-Item- instance trigger of the Order_Items.Quantity item in the Orders formD. the When-New Form-instance trigger of the Orders formE. the Product_id item in the Order_Items block of the Orders form

Page 29: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Correct Answer: CESection: (none)Explanation

Explanation/Reference:Explanation: C: Object libraries can contain individual items; for example, iconic buttons. The smallest unit accepted in an object group is a block.E: Including a block in an object group also includes its items, the item-level triggers, the block-level triggers and the relations. You cannot use any of these objectsin an object group without the block.Incorrect answers:A: Including a block in an object group also includes its items, the item-level triggers, the block-level triggers and the relationsNote: An object group is a logical container for a set of Forms Builder objects.You need to define an object group when you want to package related objects for copying or subclassing in another module or if you want to bundle numerousobjects into higher-level building blocks that you can use again in another application. You can package the various objects in an object group and copy the entirebundle in one operation.

QUESTION 43In the Orders form, users often have a need to return to the first record. Because there are many employee records, it may take a long time for them to scroll up tothe first record, so you create a button with the label First Record.When users click the first Record button, you want to display your own custom message instead of the system message "FRM-40100: At first record."The system message should be displayed in other cases when users attempt to scroll above the first record.You code the following When-Button-Pressed trigger::SYSTEM.mesage_level := '5'UP;WHILE FORM_SUCCESS LOOPUP;END LOOP;MESSAGE ('This is the first Order');The button works perfectly to return to the first record and display your custom message instead of the system message. However, users report that as theycontinue to use the form after clicking the button, no longer see other helpful messages. For example, the message "FRM 40102: Record must be entered ordeleted first" no longer appears when they attempt to scroll past the last record.How can you resolve this Issue so that all system messages continue to be displayed after the trigger code runs?

A. instead of setting the system message level to 5 in the code, set it to 50.B. instead of setting the system message level to 5 in the code, set it to 25.C. Add the line of code just before the end of the loop to reset the system message level.D. Add a line of code just after the end of the loop to reset the system message level.E. Instead of setting the system message level in the When-Button-Pressed trigger, use an On-Error trigger to customize the message.F. Set the system message level in a When-New-Form-Instance trigger, so that all system messages appear except when in the scope of the trigger.

Correct Answer: D

Page 30: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:

QUESTION 44When you plan to use a toolbar canvas, you should allow room for it on the content canvas so that items on the canvas are not obscured.

A. TrueB. False

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation: Note: Toolbar canvases can contain buttons and other GUI elements, and allow you to provide a common interface for all canvases displayed within a window. Youcan associate the toolbar canvas with the window shared by the content canvases, and it will display. The location at which the toolbar displays can be controlled bythe type of toolbar canvas used. A vertical toolbar canvas is used to display the toolbar along the left or right edge of the window.

QUESTION 45View the Exhibits. The hierarchical tree shown at run time in Exhibit 1 is populated programmatically. Default hierarchical tree properties are shown in Exhibit? Which properties of the hierarchical tree shown in Exhibit 1 have been changed from the default?

A. Allow Empty Branches and Multi Selection onlyB. Allow Empty Branches and Show Symbols onlyC. Multi Selection and Show Symbols onlyD. Allow Empty Branches, Multi Selection, and Show Symbols

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

Page 31: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Both Chen and Popp are selected, so Multi-selection is set to Yes (not B).+ and – symbols are displayed, so Show Symbols is yes (not B, C, D).Allow Empty Branches is set to Yes (so A is ok), see note below.Note: Setting Hierarchical Tree Item PropertiesHierarchical Tree properties include the following:* Item Type: Must be set to Hierarchical Tree* Allow Empty Branches:Yes / No. No is the default.If set to Yes, all leaf nodes will initially display in the tree with theplus sign (+) next to it, indicating that expansion is possible, evenwhen there is nothing to expand. If set to Yes, the Show Symbolsproperty must also be set to Yes.If set to No, leaf nodes will not have an expand/collapse symbol* Multi Selection: Whether multiple nodes may be selected at one timeNo is the default.* Show Lines: Whether a hierarchical tree displays lines leading up to each nodeYes is the default.* Show Symbols: Whether a hierarchical tree should display + or - symbols in front of each branch node* Record Group: Name of the record group from which the hierarchical tree derives its values* Data Query: Specifies the query-based data source

QUESTION 46View the Exhibit. The orders form contains two canvases. Orders_CV displays one order and all of its order items.Help-CV displays context-sensitive help.When users invoke the help screen for the Customer_Id item, the help information obscures the Custormer_Id item, as shown in the Exhibit. Users would like to beable to see both the item and its help information simultaneously.How can you move the help information to the right so that the Customer_Id item is visible?

A. increase the Viewport X Position on the Help_CV canvas.B. increase the Viewport X Position on Canvas on the Orders_CV canvas.C. Decrease the Width on the Help_CV canvas.D. in the Layout Editor for the Orders_CV canvas, select View > Stacked Views, and then select the Help_CV canvas. Drag the Help_CV canvas to the right of the

Customer_Id item.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

Page 32: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Explanation: Note: Viewport X Position on Canvas, Viewport Y Position on Canvas propertyDescriptionSpecifies the location of the view's upper left corner relative to the upper left corner of the canvas. The size and location of the viewport define the view; that is, the part of the canvas that is actually visible in the window to which the canvas is assigned.Applies to canvas

QUESTION 47View the Exhibit to examine the form. The text items (Field1, Field2, and Field3) and the button (Check_Values) are in the CONTROL block. The Mouse Navigate property of the button has been set toNo.The following code as been written in a When-Button-Pressed trigger on the Check_Values button:MESSAGE(:field1| | ' - ' | | :SYSTEM.cursor_item | |' - ' | | :SYSTEM.trigger_item);With the focus in Field1 and the values 1, 2, and 3 in the text items, what message will be displayed when the button is clicked.

A. -4B. 1 -2 -3C. 1 –field1 –Check ValuesD. Field1 -1 – Check ValuesE. 1 – CONTROL.FIELD1 – CONTROL.FIELD1F. 1 – CONTROL.FIELD1 – CONTROL.CHECK_VALUESG. :field1 - :SYSTEM.cursor_item - :SYSTEM.trigger_item

Correct Answer: FSection: (none)Explanation

Explanation/Reference:Explanation: * SYSTEM.CURSOR_ITEMRepresents the name of the block and item, block.item, where the input focus (cursor) is located.The value is always a character string.In this scenario the value is CONTROL.Field1, as the focus is in Field1.* SYSTEM.TRIGGER_ITEMRepresents the item (BLOCK.ITEM) in the scope for which the trigger is currently firing. When referenced in a key trigger, it represents the item where the cursorwas located when the trigger began. The value is always a character string.In this scenario the value is CONTROL.CHECK_VALUES, as the CHECK_VALUES button is being clicked.

QUESTION 48

Page 33: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

There are certain errors that are specific to the Salary item on the Employees form. You want to trap these errors only when the user navigates from the Salary item.You have a form-level On-Error trigger that traps errors that apply to the form in general, but yon additionally code an item-level On-Error trigger for the Salary item.When testing the form, you find that the general errors are not trapped when you navigate from the Salary item. What can you do to correct this problem?

A. Call the form level On-Error trigger from the item-level On-Error trigger.B. Call the item-level On-Error trigger from the form-level On-Error trigger.C. Change the Execution Hierarchy property for the item-level On-Error trigger.D. Change the Execution Hierarchy property for the form-level On-Error trigger.E. Move all the code to a PL/SQL program unit and call it from both the form level and item level On-Error triggers.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation: when you have a WHEN-NEW-ITEM-INSTANCE :

if you create a trigger on item, block and form-level, then only the ITEM-Level will start. If you use the exec-hierarchy Override.

If all trigger use After, then the FORM, BLOCK and ITEM starts in that sequence.

If all trigger use Before, then the ITEM, BLOCK and FORM starts in that sequence.

the execution-hierarchy on FORM-Level is ignored, because there is no higher level than FORM

QUESTION 49View the Exhibit. The Departments form has form level triggers defined as shown in the Exhibit. You have enabled array DML for the Departments block by setting its DML array sizeto 5 and setting the Primary Key property of Department id to Yes. You set runtime preferences for Forms Builder to use array processing.You want to test that array processing is actually occurring, so, as shown in the Exhibit, the On-Update, On-Delete, and on insert triggers have code that:1. Displays a message to indicate which trigger is firing for which record?2. Does the thing (either updates, deletes, or inserts)The other triggers simply display a message, indicating the trigger that is firing.You run the form from Forms Builder, but from the messages, you can tell that array processing is not occurring. What should you change so that array DML getsimplemented?

Page 34: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

http://www.gratisexam.com/

A. Delete the "On-" triggers; these triggers remove default processing, including array processing.B. Set the DML array size to a value of 10 or greater; for array sizes loss than 10, array processing Is inefficient, and so is not performed.C. Use the SYNCHRONIZE built-in after the MESSAGE built-in; otherwise, the message are not displayed until the processing is finished, giving the appearance

that array processing is not taking place.D. Set the Enforce Primary Key property of the Department block to Yes; it is not enough to just set the Department_Id to be the primary key.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 50You have been assigned to maintain the Orders form. Users complain that if the cursor is in the in the Orders block, they cannot navigate to the Order Items blockby clicking a text item in that block. They must click the Next Block button to navigate from the Orders block to the Order Items block.How should you investigate the source of the problem?

A. Check the Pre-Text-Item and Post-Text-Item triggers, because users may be encountering a navigation trap.B. Check the Navigation properties of the Orders block that have non-default values.C. Check the Navigation properties of the Order Items block that have non-default values.D. Check the Navigation properties of the items in the Orders block that have non-default values.E. Check the Navigation properties of the form that have non-default values.F. Check that the items in the Order Items block are enabled.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation: The Navigation Trap

Page 35: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

You have seen that the Pre-and Post-navigation triggers fire during navigation, and when they fail the internal cursor attempts to return to the current item(SYSTEM.CURSOR_ITEM).The diagram below illustrates the navigation trap. This can occur when a Pre-or Post-navigation trigger fails and attempts to return thelogical cursor to its initial item. However, if the initial item has a Pre-Text-Item trigger that also fails the cursor has nowhere to go, and a fatal error occurs.Note:Be sure to code against navigation trigger failure

QUESTION 51You have coded the following When Button Pressed trigger:EXECUTE_QUERY;MESSAGE ('Query executed on block');MESSAGE ('click next to navigate the next record');When the user clicks the button, how is the message "Query executed on block" displayed?

A. as a system message on the status lineB. as a system message in a system alertC. as a system message in an application alertD. as an application message on the status lineE. as an application message in a system alertF. as an application message in an application alert

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 52Which 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 machineB. compiling the Forms modules on the middle tier machineC. creating a menu module for the applicationD. compiling the Forms modules on the development machineE. moving the Forms source files from the development machine to the middle tier machineF. creating a Forms PL/SQL library file to contain the application logicG. installing forms Builder on the middle-tier machine

Correct Answer: BE

Page 36: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:

QUESTION 53You have written a When-Validate-Item trigger. You want this trigger to fire even if the form is in Enter-Query mode. What must you do to achieve this?

A. Use the following code at the start of the When Validate-Item trigger::SYSTEM.mode := 'ENTER-QUERY';

B. Use the following code at the start of the When Validate Item trigger::SYSTEM.mode := 'NORMAL';

C. Set the Fire in Enter Query Mode property of the When-Validate-Item trigger.D. You do not need to do anything, because the default for the When Validate Item trigger is to fire in Enter-Query mode.E. You cannot achieve this, because the When-Validate-Item trigger cannot be set to fire in Enter-Query mode.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Explanation: Coding Triggers for Enter-Query ModeSome triggers that fire when the form is in Normal mode (during data entry and saving) may also be fired in Enter-Query mode. You need to consider the triggertype and actions in these cases.“Fire in Enter-Query Mode”PropertyTo create a trigger that fires in Enter-Query mode, in its Property Palette set the “Fire in Enter-Query Mode”property to Yes. This property determines whetherForms fires a trigger if the associated event occurs in Enter-Query mode. Not all triggers can do this. See last line in note below.By default, the “Fire in Enter-Query Mode”property is set to Yes for triggers that accept this. Set it to No in the Property Palette if you want the trigger to fire only inNormal mode.Note:The following triggers may fire in Enter-Query mode:*Key-* On-Error* On-Message* When-triggers,except:-When-Database-Record-When-Image-Activated-When-New-Block-Instance

Page 37: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

-When-New-Form-Instance-When-Create-Record-When-Remove-Record-When-Validate-Record-When-Validate-Item

QUESTION 54You are using a PL/SQL program unit in the Orders form to display an image for the selected product in the Order Items block. The code is called from severaldifferent triggers in the form. The code (with line numbers added) is:1. PROCEDURE get_image IS2. Product_image_id ITEM := FIND_ITEM ('control.product_image');3. Filename VARCHAR2(250);4. BEGIN5. Filename := TO_CHAR(:order_items.product_id) | | '.jpg';6. READ_IMAGE_FILE (filename, 'jpeg', product_image_id);7. END;Management wants all codes to be in PL/SQL libraries to facilitate reuse. You create a PL/SQL library and drag the program unit from the orders form to theProgram Units node of the library. You then delete the program unit from the Orders form.What three things must you do to compile the PL/SQL library and to use the code in the Orders form?

A. Change line 5 to:filename := to_char(name_in 'order_items.product_id' )) | | '.jpg';.

B. insert the RELEASE keyword between lines 1 and 2.C. Delete the BEGIN and END statements (lines 4 and 7).D. Change product_id to an in parameter and filename to an OUT parameter.E. Save the library.F. Generate the a .plx file.G. Attach the library to the orders form.H. Change the way the program unit is called in the Orders form.

Correct Answer: EGHSection: (none)Explanation

Explanation/Reference:Explanation: E: Save and compile the library.G: select the Attached Libraries node and click Create.In the Attach Library dialog box, click Browse to navigate to the saved library and open it, then answer Yes to the alert that asks if you want to remove the path.H: Modify the to simply call the procedure from the attached library:

Page 38: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

QUESTION 55View the Exhibit. To test how the Orders application works with database triggers, you add to the Orders table the following database trigger that fires before the update ofCustomer_Id:BEGINIf :old.customer_id != : new.customer_id thenRAISE_APPLICATION_ERROR (-20101, 'Database trigger says no!');end if;END;You run the Orders form, change the customer ID, and click Save. You receive the error message "FRM-40509: Oracle error: unable to UPDATE record." Youselect Help > Display Error, and the Database Error dialog box that is shown in the Exhibit appears.Which code would you put in your Form-level On-Error trigger to display the ORA- error message instead of the FRM- error message?

A. IF ERROR_CODE = 40509 THENMESSSAGE (DBMS_ERROR_TEXT);END IF

B. IF ERROR_CODE = 40509 THENMESSSAGE (SQLERRM);END IF;

C. IF ERROR_CODE = 06512 THENMESSSAGE(DBMS_ERROR_TEXT);END IF;

D. IF ERROR_CODE = 06512 THENMESSSAGE (SQLERRM);END IF;

E. IF ERROR-CODE = 20101 THENMESSSAGE (DBMS_ERROR_TEXT);END IF;

F. IF ERROR_CODE = 20101 THENMESSSAGE(SQLERRM);END IF;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 56

Page 39: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

To troubleshoot a problem with a form, you have added a call to the MESSAGE () built-in at the beginning of the When-Validate-Item trigger of the Customer_Idthen in the Orders Block of the Orders form. The message simply states that the trigger is firing.You run the form, make a change in Customer_Id, and then tab out of the item but the message does not appear. What are two possible causes for this problem?

A. The form is in Enter-Query mode.B. The item is using an LOV for validation.C. The validation unit of the form needs to be changed.D. The MESSAGE () built-in is not allowed in validation triggers.E. There is a syntax error in the call to the MESSAGE() built-in.F. Validation for the Customer_Id item failed.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:

QUESTION 57You have just created radio buttons labeled Outstanding, Exceeds, Meets, and Does not Meet for the employee appraisal rating, but you accidentally created it onthe Employee_Training canvas rather than on the Employee_Appraisal canvas. How can you move them to the appropriate canvas?

A. Open the Layout Editor for both canvases; drag the radio buttons from Employee_Training canvas to the Employee_Appraisal canvas.B. Drag the radio button nodes from the Object Navigator to the Employee Appraisal canvas in the Layout Editor.C. Drag the radio group node from the Object Navigator to the Employee__Appraisal canvas in the Layout Editor.D. Set the Canvas property for the radio buttons to Employee_AppraisalE. Set the Canvas property for the radio group to Employee_Appraisal.F. You cannot move existing radio buttons to another canvas; you will need to delete them from the Employee_Training canvas and create new ones on the

Employee_Appraisal canvas.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:Explanation: Note: Example of radio group:Creating radio buttonsWe will now create radio buttons for the Sex item to give the user an option of selecting either Male or Female.28.

Page 40: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

* To do this, right click on the Sexitem in the Layout Editor and go to itsProperty palette.* In the Property Palette, Set:- Item Type : Radio Group- Initial Value : M30.Once you return back to the Layout Editor, you have to insert radio buttons.Select Radio Button icon from the toolbox. Drop the radio button into the form.* A window will appear, prompting you to select the radio group you would liketo attach this radio button to. Select the radio group Sex.

QUESTION 58Which type of variable must be declared before it is used in a trigger?

http://www.gratisexam.com/

A. PL/SQL variableB. Form itemC. global variableD. system variableE. parameter

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation: PL/SQL is the language used in Forms triggers and program units.PL/SQL lets you declare variables and constants, then use them in SQL and procedural statements anywhere an expression can be used. You must declare aconstant or variable before referencing it in any other statements.Variables can have any SQL datatype, such as CHAR, DATE, or NUMBER, or a PL/SQL-only datatype, such as BOOLEAN orPLS_INTEGER.Note: PL/SQL's data types correspond with SQL's column types, making it easy to interchange PL/SQL variables with data inside a table.

QUESTION 59Which statement is true about flexible code?

A. It is designed for reuse.B. It typically includes hard-coded object names.

Page 41: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

C. It is more difficult to maintain.D. It is more difficult to write, so it decreases developer productivity.E. It is specific to a particular module.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

QUESTION 60View the Exhibit. You have defined the window, canvas, and text items shown in the Exhibit. What happens when click Run Form?

A. The form runs with the cursor initially in TEXT_ITEM8.B. The form runs with the cursor initially in TEXT_ITEM9.C. The form does not compile until you move TEXT_ITEM8.D. The form does not compile until you move TEXT_ITEM10.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 61You have a form with a single multi-record block. During a session, a user performs an insert and clicks SaveWhat is the behavior of the record being inserted violates a database constraint?

A. The record is posted to the database but not committed. The form redisplays the record with an error message so that the user can correct the data. Navigationto another record cannot occur until the correct data is committed or the new record is deleted. If the user exits the form without correcting the entry, a databaserollback is performed.

B. The record is committed to the database. The form redisplays the record with an error message so that the user can correct the data. The user is unable to exitthe form or move to another record until the correct data is committed of the new record is deleted.

C. A database rollback is performed. The form redisplays the record with an error message so that the user can correct the entry. The user is able to navigate toanother record or exit the form.

D. A database rollback is performed. The form redisplays the record with an error message so that an correct the entry. Navigation to another record cannot occur

Page 42: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

until the correct data is committed or the record is deleted.E. The record is committed to the database. The form redisplays the record with a warning in case the user would like to correct the entry. The user is able to

navigate to another record or exit the form.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 62You have been assigned to maintain a Forms application that was designed by a developer who has left the company.The CV_Tools canvas contains several buttons. There is limited space on the canvas, but the first button is not quite wide enough to display its complete label. Inthe Layout Editor, you widen the button slightly and find that the width of all the buttons increases so that they now overlap each other.What could have caused this problem?

http://www.gratisexam.com/

A. The buttons inherit their properties from the same property class.B. The buttons were created by dragging them from an object group.C. The buttons were created by using a Smart Class.D. All other buttons were subclassed from the first button.E. All other buttons were copied from the first button.F. The first button was subclassed from another button.G. The first button was copied from another button.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation: D (not F): 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 alsoapply to the properties of the subclassed object that you have not altered. However, any properties that you override remain overridden. This provides a powerfulobject inheritance model.

Page 43: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Incorrect answers:A: A property class is a named object that contains a list of properties and their settings. You can use property classes to increase productivity and improve networkperformance. Here are some of the uses of a property class:* It increases productivity by setting standard or frequently used values for common properties and associates them with several form builder objects.* It defines standard properties not just for one particular object but also for several at a time. This results in increased productivity, because it eliminates the timespent on setting identical properties for several objects.* It improves network performance by increasing the efficiency of message diffing.C: A SmartClass is a special member of an Object Library. It can be used to easily subclass existing objects in a form using the SmartClass option from the rightmouse button popup menu.E, G: 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.

QUESTION 63You 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 RuntimeC. Forms ServletD. Forms Listener Servlet

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 64View the Exhibit. You have just created a new object library as shown in the Exhibit. You want the tabs to have descriptive names.You cannot change the names of the default object library tabs, so you must create new tabs in order to have descriptive names.

A. TrueB. False

Correct Answer: BSection: (none)Explanation

Page 44: Oracle.Pass4sures.1z0-151.v2016-12-08.by.Serhio · 12/8/2016  · A. content canvas in a window with a horizontal scroll bar B. content canvas and multiple tab canvases ... Reference:

http://www.gratisexam.com/

Explanation/Reference:

QUESTION 65Which symbol when used in an object's Property Palette, indicates an inherited property that has been changed?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

http://www.gratisexam.com/