Oracle Forms Practice Questions Set 2

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 42 multiple-choice questions, each with a short explanation (set 2 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 42 questions with answers

  1. which of them are valid forms triggers
    1. post query
    2. after query
    3. before query
    4. None
    Show answer

    Answer: A. post query

    POST-QUERY is a real Forms trigger. There are no AFTER QUERY or BEFORE QUERY triggers.

  2. Which of the following is true about a property class in oracle forms
    1. set of common properties for the objects to inherir
    2. inheritance
    3. can be changes dynamically
    4. All the above
    Show answer

    Answer: A. set of common properties for the objects to inherir

    A property class is a named set of properties that objects can inherit.

  3. Can a record group be created dynamically in Oracle Forms
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    CREATE_GROUP or CREATE_GROUP_FROM_QUERY builds a record group at runtime.

  4. Can a LOV created in Oracle Forms dynamically
    1. No
    2. Yes
    Show answer

    Answer: A. No

    An LOV must be created at design time. At runtime you can only change its record group and properties.

  5. How many basetable blocks can a form have?
    1. 1
    2. 2
    3. 5
    4. no restriction
    Show answer

    Answer: D. no restriction

    A form can have any number of base table blocks.

  6. How many triggers can a form have?
    1. 5
    2. 10
    3. 12
    4. no restriction
    Show answer

    Answer: D. no restriction

    There is no fixed limit on the number of triggers in a form.

  7. How many stacked canvases can a forms have?
    1. 5
    2. 10
    3. No Restriction
    4. 1
    Show answer

    Answer: C. No Restriction

    There is no fixed limit on stacked canvases in a form.

  8. How many items can a form have?
    1. 5
    2. 10
    3. No Restriction
    4. 1
    Show answer

    Answer: C. No Restriction

    There is no fixed limit on the number of items in a form.

  9. What type of canvases are available in Oracle Forms
    1. tabbed
    2. stack
    3. content
    4. all the above
    Show answer

    Answer: D. all the above

    Forms canvases are content, stacked, tab and toolbar canvases.

  10. Which built-in is used to change item property at run time
    1. set_property
    2. set_item_property
    3. set_item
    4. All the above
    Show answer

    Answer: B. set_item_property

    SET_ITEM_PROPERTY changes item properties at runtime.

  11. In Oracle forms can you check whether an object exists or not
    1. Yes
    2. No
    3. Not applicable
    Show answer

    Answer: A. Yes

    FIND_ITEM, FIND_BLOCK and the other FIND_ built-ins, used with ID_NULL, tell you whether an object exists.

  12. Can you attach a library to more than one form
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    A PL/SQL library (.pll) can be attached to many forms.

  13. In Oracle forms which of the following items can be used as input items
    1. Check Box
    2. Radio button
    3. A&B
    4. None
    Show answer

    Answer: C. A&B

    Check boxes and radio groups both accept user input, just like text items and lists.

  14. Is the statement true “No of records displayed property of block can be set programmatically in Oracle forms”?
    1. TRUE
    2. false
    Show answer

    Answer: B. false

    The Number of Records Displayed property is fixed at design time and cannot be changed in code.

  15. Which of the following are valid extension in Oracle Forms
    1. fmb
    2. fmt
    3. A&B
    4. None
    Show answer

    Answer: C. A&B

    FMB is the binary source, FMT is the text version and FMX is the compiled runtime file.

  16. Can a block be created in oracle forms without a base table?
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    A control block has no base table.

  17. Which of the following are valid styles of alert in Oracle forms?
    1. error
    2. new
    3. Stop
    4. None
    Show answer

    Answer: C. Stop

    Alert styles are Stop, Caution and Note.

  18. How to invoke a alert in oracle forms?
    1. subroutine
    2. trigger
    3. A& B
    4. None
    Show answer

    Answer: C. A& B

    SHOW_ALERT can be called from any trigger or program unit.

  19. Which of the following is not a valid oracle forms object?
    1. Group
    2. Text item
    3. block
    4. trigger
    Show answer

    Answer: A. Group

    Text items, blocks and triggers are Forms objects. ‘Group’ on its own is not; Forms has record groups and object groups.

  20. In Oracle Forms, how many buttons are created on an alert?
    1. 1
    2. 0
    3. 2
    4. 3
    Show answer

    Answer: D. 3

    An alert can have up to three buttons.

  21. Which sub-routine is used to invoke alert in oracle forms
    1. Show_alert
    2. show_view
    3. show_block
    4. show_record
    Show answer

    Answer: A. Show_alert

    SHOW_ALERT displays an alert and returns the button the user pressed.

  22. How many times a pre-query trigger executed for a block of 10 records in oracle forms?
    1. 1
    2. 11
    3. 10
    4. 9
    Show answer

    Answer: A. 1

    PRE-QUERY fires once per query, not once per record.

  23. How to display message to user at runtime in Oracle Forms?
    1. message
    2. show_message
    3. show_text
    4. flash
    Show answer

    Answer: A. message

    MESSAGE shows text on the status line. Use an alert when you need a pop-up.

  24. Can window property be changed at runtime in Oracle forms?
    1. yes
    2. No
    Show answer

    Answer: A. yes

    SET_WINDOW_PROPERTY changes a window’s size, position, title and more at runtime.

  25. What are valid program units in Oracle Forms?
    1. procedure
    2. function
    3. package
    4. all the above
    Show answer

    Answer: D. all the above

    Procedures, functions and packages can all be program units in a form.

  26. How are the font, colour are set for an object in oracle forms?
    1. visual attributes
    2. Property Class
    3. sub-routine
    4. none
    Show answer

    Answer: A. visual attributes

    Visual attributes hold font, color and pattern settings that you apply to objects.

  27. How to query data in a block at runtime in oracle forms
    1. execute_query
    2. execute_block
    3. execute_form
    4. none
    Show answer

    Answer: A. execute_query

    EXECUTE_QUERY runs the query for the current block.

  28. Can you have more item then the columns of a table in a base table block
    1. yes
    2. No
    Show answer

    Answer: A. yes

    A base table block can include non-database items, so it can have more items than the table has columns.

  29. can you query data in a control block
    1. No
    2. Yes
    Show answer

    Answer: A. No

    A control block has no data source, so there is nothing for EXECUTE_QUERY to query. Populate it in code instead.

  30. How do you group objects to copy to another module?
    1. object group
    2. record group
    3. sub class
    4. none
    Show answer

    Answer: A. object group

    An object group bundles objects so they can be copied or subclassed into another module.

  31. which of the following are valid object in oracle forms
    1. text item
    2. display item
    3. check box
    4. all the above
    Show answer

    Answer: D. all the above

    Text items, display items and check boxes are all valid Forms objects.

  32. How to display a message in the status bar when the cursor moved to the items
    1. hint
    2. tool tip
    3. popup
    4. prompt
    Show answer

    Answer: A. hint

    The item’s Hint property shows text on the status bar. Tooltip shows a pop-up on hover.

  33. How to enforce the user to enter value in text item in oracle forms?
    1. set required property to true
    2. set mandatory property to true
    3. all text items are required
    4. none
    Show answer

    Answer: A. set required property to true

    Set the item’s Required property to Yes to force the user to enter a value.

  34. How is value defaulted in a text item in Oracle forms?
    1. set initial value property to the constant value
    2. cannot set default values for text item
    3. set default value property
    4. none
    Show answer

    Answer: A. set initial value property to the constant value

    The Initial Value property sets a default value for a text item.

  35. Can text item value be defaulted in oracle forms
    1. yes
    2. No
    Show answer

    Answer: A. yes

    A text item can be defaulted with its Initial Value property.

  36. Toolbar is not a valid canvas type in oracle forms?
    1. False
    2. TRUE
    Show answer

    Answer: A. False

    Toolbar is a valid canvas type, either horizontal or vertical.

  37. A tab canvas can contain more than one page?
    1. true
    2. FALSE
    Show answer

    Answer: A. true

    A tab canvas holds one or more tab pages.

  38. Can you call a database procedure from trigger in Oracle forms?
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    Form triggers can call stored procedures in the database.

  39. How many types of canvas are there in a form?
    1. 4
    2. 5
    3. 3
    4. 6
    Show answer

    Answer: B. 5

    Forms has five canvas types: content, stacked, tab, horizontal toolbar and vertical toolbar.

  40. A _______ class is a named object that contains a list of properties and their settings
    1. Base
    2. Property
    3. Visual attribute
    4. None of the above
    Show answer

    Answer: B. Property

    A property class is a named object with a list of properties and their values.

  41. What different status of forms ?
    1. New,Query,Changed
    2. Latest,Query,Changed
    3. New,Query,Modified
    4. New,Queried ,Modified
    Show answer

    Answer: A. New,Query,Changed

    Form and block status values are NEW, QUERY and CHANGED.

  42. Can one issue DDL statements in oracle forms
    1. Yes, by using FORMS_DDL
    2. No
    3. Sometime
    4. May be
    Show answer

    Answer: A. Yes, by using FORMS_DDL

    FORMS_DDL runs DDL statements or dynamic SQL from a form.

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.