Oracle Forms Practice Questions Set 3

Oracle Forms (Forms Builder / D2K) practice questions on triggers and their firing order, blocks, items, canvases, windows, LOVs, record groups, alerts and multi-form navigation. This set has 40 multiple-choice questions, each with a short explanation (set 3 of 3). Click Start quiz to answer one question at a time and get instant feedback, or use Study mode to read every question with its answer.

All 40 questions with answers

  1. Can one move FMX file from one Operating system to another operating system
    1. Yes
    2. No as fmx files are machine dependent files while FMB files are not
    3. Depends on the Version
    4. None of the Above
    Show answer

    Answer: B. No as fmx files are machine dependent files while FMB files are not

    An FMX is compiled for a specific platform. Copy the FMB and regenerate the FMX on the target operating system.

  2. Which Triggers are created when Master-Detail relationship is established.
    1. on-clear-details(form level) and on-populate-details(master block level)
    2. on-check-delete-master fires whenever u r deleting the master records
    3. on-check-delete-master(master block level)
    4. All the above
    Show answer

    Answer: D. All the above

    Depending on Delete Record Behavior, Forms creates ON-CLEAR-DETAILS, ON-POPULATE-DETAILS and ON-CHECK-DELETE-MASTER triggers.

  3. How are images stored in database
    1. long raw datatype
    2. long
    3. double
    4. byte
    Show answer

    Answer: A. long raw datatype

    Older Forms image items were stored in LONG RAW columns. New designs should use BLOB.

  4. How many times a post query and pre query trigger gets fired in fetching 10 records
    1. pre -10 post -10
    2. pre – 1 post -10
    3. pre – 1 post – 1
    4. None of the Above
    Show answer

    Answer: B. pre – 1 post -10

    PRE-QUERY fires once for the query and POST-QUERY fires once for each of the 10 records.

  5. How many times a pre query and post query trigger gets fired for detail block in Master-Detail relationship
    1. pre -10 post -number of records in details block
    2. pre – 1 post -number of records in detail block
    3. post – 1 pre – number of records in detail block
    4. None of the Above
    Show answer

    Answer: B. pre – 1 post -number of records in detail block

    For each master record the detail block runs PRE-QUERY once and POST-QUERY once per detail row fetched.

  6. what is the built-in used to show alert at run time
    1. show_alert
    2. show.alert
    3. display_alert
    4. None of the Above
    Show answer

    Answer: A. show_alert

    SHOW_ALERT displays an alert at runtime.

  7. system variable :system.effective_date is read-only
    1. TRUE
    2. FALSE
    Show answer

    Answer: B. FALSE

    You can set :SYSTEM.EFFECTIVE_DATE to change the date Forms uses, so it is not read-only.

  8. Which is the predefined exception available in form 6i
    1. Raise form_failure
    2. Raise form_error
    3. Raise form_trigger_failure
    4. None of the Above
    Show answer

    Answer: C. Raise form_trigger_failure

    RAISE FORM_TRIGGER_FAILURE stops the current trigger and the action that fired it.

  9. what is the difference between key startup and pre-form triggers
    1. key startup trigger fires after successful navigation into the form and pre-form trigger fires before enter into the form
    2. key startup triggers fires after successful navigation into the form and pre-form trigger fires before leaving the form
    3. key startup triggers fires after successful navigation on the first item of the form and pre-form trigger fires before leaving the form
    4. None of the Above
    Show answer

    Answer: A. key startup trigger fires after successful navigation into the form and pre-form trigger fires before enter into the form

    PRE-FORM fires before the form is displayed. KEY-STARTUP fires after the form opens and navigation into it succeeds.

  10. what is the difference between name_in and copy built-ins
    1. copy is the package procedure and writes values into the field and name_in is a package functions and returns the content of the variable to which it is applied
    2. copy is the package functions and writes values into the filed and return 0 when success and name_in is a package procedure that write the content of the variable to which it is applied
    3. copy is the package functions and writes values into the filed and return 1 when success and name_in is a package procedure that write the content of the variable to which it is applied
    4. None of the Above
    Show answer

    Answer: A. copy is the package procedure and writes values into the field and name_in is a package functions and returns the content of the variable to which it is applied

    COPY is a procedure that writes a value into a field. NAME_IN is a function that returns the value of the named item or variable.

  11. Can one convert/reverse engineer a FMX back to FMB?
    1. Yes
    2. No
    3. NA
    Show answer

    Answer: B. No

    There is no way to rebuild an FMB from an FMX, so always keep your source files safe.

  12. Formula fields,summary fields are availble in forms
    1. Yes
    2. No
    3. NA
    Show answer

    Answer: A. Yes

    Forms supports calculated items with Calculation Mode set to Formula or Summary.

  13. Can an forms FMX move from one OS to another OS?
    1. Yes
    2. No
    3. NA
    Show answer

    Answer: B. No

    FMX files are platform-specific. Move the FMB and recompile on the new OS.

  14. We can create LOV by using
    1. Manually
    2. Wizard
    3. Both
    Show answer

    Answer: C. Both

    You can create an LOV manually or with the LOV Wizard.

  15. In the run time if we want to navigate from one record to another record by using_______ statement
    1. NEXT_FIELD
    2. NEXT_ITEM
    3. NEXT_RECORD
    4. NA
    Show answer

    Answer: C. NEXT_RECORD

    NEXT_RECORD moves to the next record. NEXT_ITEM moves to the next item.

  16. To minimize and Maximize the window by using ______ property.
    1. Window_Size
    2. Window_Max_Min
    3. SET_WINDOW_PROPERTY
    4. ALL
    Show answer

    Answer: C. SET_WINDOW_PROPERTY

    SET_WINDOW_PROPERTY(win, WINDOW_STATE, MAXIMIZE or MINIMIZE) changes the window state.

  17. In CALL_FORM
    1. start a new form and pass control to it. The parent form will be suspended until the called form is terminated.
    2. terminate the current form and replace it with the indicated new form. The old form’s resources (like cursors and locks) will be released.
    3. Opens the indicated new form without suspending or replacing the parent form.
    4. ALL
    Show answer

    Answer: A. start a new form and pass control to it. The parent form will be suspended until the called form is terminated.

    CALL_FORM opens a new form and suspends the calling form until the called form exits.

  18. Form Builder supports ___________application partitioning by using stored PL/SQL subprograms
    1. Drag and drop
    2. select
    3. copy
    4. None of the Above
    Show answer

    Answer: A. Drag and drop

    In Form Builder you can drag program units between the form and the database to move code to the server.

  19. Can an Forms fmx be moved from one operating system to another?
    1. Yes
    2. No
    3. Can’t say
    4. Not applicable
    Show answer

    Answer: B. No

    FMX files are compiled for one platform and cannot be moved to another OS.

  20. Can an Forms fmb be moved from one operating system to another?
    1. Yes
    2. No
    3. Can’t say
    4. Not applicable
    Show answer

    Answer: A. Yes

    FMB files are portable; recompile them on the target platform.

  21. Can one bypass the Oracle login screen in Oracle Forms?
    1. Yes
    2. No
    3. Can’t say
    4. Not applicable
    Show answer

    Answer: A. Yes

    Pass userid on the command line, or write an ON-LOGON trigger, to skip the login screen.

  22. What is command for forms compile
    1. f60gen apps/apps <form name>
    2. form60gen apps/apps <form name>
    Show answer

    Answer: A. f60gen apps/apps <form name>

    Forms 6i used f60gen to compile. Forms 10g and later use frmcmp or frmcmp_batch.

  23. __________ start a new form and pass control to it.The parent form will be suspended until the called form is terminated.
    1. Call_form
    2. New_form
    3. Open_form
    4. None of the above
    Show answer

    Answer: A. Call_form

    CALL_FORM starts a new form and suspends the parent until the called form ends.

  24. _________ terminate the current form and replace it with the indicated new form.The old forms resources like cursors and locks will be released
    1. Call_form
    2. New_form
    3. Open_form
    4. None of the above
    Show answer

    Answer: B. New_form

    NEW_FORM closes the current form, releasing its resources, and opens the new one.

  25. _________ opens the indicated new form without suspending or replacing the parent form.
    1. Call_form
    2. New_form
    3. Open_form
    4. None of the above
    Show answer

    Answer: C. Open_form

    OPEN_FORM opens another form without suspending or replacing the current one.

  26. Can one execute dynamic SQL from forms?
    1. Yes
    2. No
    3. Not applicable
    Show answer

    Answer: A. Yes

    FORMS_DDL runs dynamic SQL from Forms; EXEC_SQL is another option.

  27. The mouse pointer in Forms can be changed by __________
    1. Set_Mouse_Property
    2. Set_Application_Property
    3. Set_Custom_Property
    4. Set_Custom_Item_Property
    Show answer

    Answer: B. Set_Application_Property

    SET_APPLICATION_PROPERTY(CURSOR_STYLE, ‘BUSY’) changes the mouse pointer.

  28. How can you read/write OS files from forms?
    1. Tool_IO package
    2. Text_IO Package
    3. Read/Write_IO Package
    4. Tool_IO
    Show answer

    Answer: B. Text_IO Package

    TEXT_IO reads and writes files on the client machine. On the web, use CLIENT_TEXT_IO (WebUtil) or UTL_FILE on the server.

  29. _________ is an internal Form Builder object that belongs to the form module in which it is defined.
    1. Record Group
    2. Data Group
    3. Query Group
    4. None of the above
    Show answer

    Answer: A. Record Group

    A record group is an internal Forms object that belongs to the form module where it is defined.

  30. _________ built-in function can be used to replace the default record group of a LOV
    1. SET_RECORD_GROUP_PROPERTY
    2. SET_APPLICATION_PROPERTY
    3. SET_LOV_PROPERTY
    4. None of the above
    Show answer

    Answer: C. SET_LOV_PROPERTY

    SET_LOV_PROPERTY(lov, GROUP_NAME, ‘new_rg’) swaps the LOV’s record group.

  31. Which of the following is not a record group type
    1. Query record group
    2. Nonquery record group
    3. Static record group
    4. Nonstatic record group
    Show answer

    Answer: D. Nonstatic record group

    Record groups are query, non-query or static. ‘Nonstatic’ is not a type.

  32. A __________ property is one that has a modified value even though it is inherited from the property class associated with the object.
    1. Inherited
    2. Variant
    3. Default
    4. Changed
    Show answer

    Answer: B. Variant

    A variant property has been changed on the object even though the object inherits from a property class.

  33. _______ trigger fire once for each record placed on the block list of records.
    1. Pre-Query
    2. On-Query
    3. Post-Query
    4. None of the above
    Show answer

    Answer: C. Post-Query

    POST-QUERY fires once for each record placed in the block.

  34. PL/SQL libraries support ________
    1. Dynamic Loading
    2. Static Loading
    3. Can’t say
    4. None of the Above
    Show answer

    Answer: A. Dynamic Loading

    Program units in an attached library are loaded at runtime only when first called.

  35. The _______________ Servlet is a Java servlet that runs in a web servlet equipped with a servlet engine
    1. Forms Listener
    2. Forms Client
    3. Java Applet
    4. None of the Above
    Show answer

    Answer: A. Forms Listener

    The Forms Listener Servlet runs in the web server’s servlet engine and manages Forms sessions.

  36. The ____________ is a generic Java Applet
    1. Forms Listener
    2. Forms Client
    3. Java Applet
    4. None of the Above
    Show answer

    Answer: B. Forms Client

    The Forms client is a generic Java applet that renders any form in the browser.

  37. At run time, a form can have only ____ menu modules active
    1. One
    2. Two
    3. Three
    4. Four
    Show answer

    Answer: A. One

    Only one menu module can be active in a form at a time.

  38. Bind references may not be referenced in _________ clause or in place of reserved words or clauses
    1. Select
    2. Is
    3. From
    4. Where
    Show answer

    Answer: C. From

    Bind references cannot stand in for table names in a FROM clause or for SQL keywords. In Reports, use lexical references for that.

  39. The_________ trigger property allows you to code your own PL/SQL functions to perform conditional formatting
    1. Format Trigger
    2. When-Button-Pressed
    3. When-Window-Closed
    4. None of the Above
    Show answer

    Answer: A. Format Trigger

    A format trigger lets you write PL/SQL to format or hide a layout object conditionally.

  40. Valid layouts of the block in Oracle forms are
    1. Tabular
    2. Form
    3. A&B
    4. none
    Show answer

    Answer: C. A&B

    Block layout styles are Form and Tabular.

More Oracle practice questions

These questions come from interview and training material collected over years of Oracle EBS project work by Amol Jadhav. They are not copied from Oracle certification exams.