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 43 multiple-choice questions, each with a short explanation (set 1 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 43 questions with answers
- What is the difference between Pre-Query and Post Query?
- Post-Query fires only once, Pre-query fires for every record fetched into the block
- Pre-Query fires only once, Post-Query fires for every record fetched into the block
- Both fires only once for every record fetched into the block
- None of above
Show answer
Answer: B. Pre-Query fires only once, Post-Query fires for every record fetched into the block
PRE-QUERY fires once before the query runs. POST-QUERY fires once for each record fetched into the block.
- Select the Sequence of triggers that fire for a Text Item 1) When-New-Item 2) When-Validate 3) Key-Next 4) Pre-Text
- 1,2,3,4
- 4,1,3,2
- 4,1,2,3
- 3,2,1,4
Show answer
Answer: B. 4,1,3,2
Entering the item fires PRE-TEXT-ITEM and then WHEN-NEW-ITEM-INSTANCE. Pressing Tab fires KEY-NEXT-ITEM, and leaving the item fires WHEN-VALIDATE-ITEM.
- A query fetched 10 records How many times does a POST-QUERY Trigger
- POST-QUERY fires once.
- POST -QUERY fires 10 times.
- POST -QUERY fires 2 times.
- None of the above
Show answer
Answer: B. POST -QUERY fires 10 times.
POST-QUERY fires once per fetched record, so 10 records means 10 firings.
- Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the same block level ?
- PRE-INSERT,ON-INSERT & POST-INSERT
- PRE-INSERT, POST-INSERT & ON-INSERT
- ON-INSERT & PRE-INSERT &POST-INSERT
- None of the above
Show answer
Answer: A. PRE-INSERT,ON-INSERT & POST-INSERT
At commit time Forms fires PRE-INSERT, then ON-INSERT (which replaces the default insert), then POST-INSERT.
- Can we use GO-BLOCK package in a pre-field trigger
- Yes
- NO
Show answer
Answer: B. NO
PRE- triggers such as PRE-TEXT-ITEM cannot call restricted built-ins like GO_BLOCK, because navigation is already in progress.
- What is Post-Block?
- Navigational Trigger
- Key trigger
- Transaction Trigger.
- None of the above
Show answer
Answer: A. Navigational Trigger
POST-BLOCK fires when the cursor leaves a block, so it is a navigational trigger.
- Can we use a restricted package procedure in ON-VALIDATE-FIELD Trigger ?
- Yes
- NO
Show answer
Answer: B. NO
Validation triggers cannot call restricted built-ins that cause navigation.
- EXIT_FORM is a restricted package procedure ?
- True
- False
Show answer
Answer: A. True
EXIT_FORM navigates out of the form, so it is a restricted built-in.
- What are the different types of Delete details we can establish in Master-Details?
- Isolate
- Non Isolate
- Both a & b
- None of the above
Show answer
Answer: C. Both a & b
The relation’s Delete Record Behavior can be Non-Isolated, Isolated or Cascading.
- Use the ADD_GROUP_ROW procedure to add a row to a static record group
- TRUE
- False
Show answer
Answer: B. False
ADD_GROUP_ROW works on record groups created at runtime. You cannot add rows to a static record group in code.
- How do you pass values from one form to another form?
- LOV
- Parameters
- Local variables
- None of the above
Show answer
Answer: B. Parameters
Pass values between forms with a parameter list (CREATE_PARAMETER_LIST) or with global variables.
- What is a RADIO GROUP?
- Mutually exclusive
- Select more than one column
- Above all TRUE
- Above all FALSE
Show answer
Answer: A. Mutually exclusive
Radio buttons in a radio group are mutually exclusive: only one can be selected.
- In Oracle Forms, Data blocks can be created from _______ and Stored Procedure
- Table or View
- Editor
- Alert
- None of the above
Show answer
Answer: A. Table or View
A data block can be based on a table, view, stored procedure, REF CURSOR, FROM-clause query or transactional triggers.
- In Oracle Forms, The triggers that must fire when all the records are newly inserted and a commit is done are Pre-Insert, On-Insert and _____.
- Post-Update
- Post-Insert
- Pre-Query
- Post-Query
Show answer
Answer: B. Post-Insert
For newly inserted records the commit fires PRE-INSERT, ON-INSERT and then POST-INSERT.
- In Oracle Forms, The triggers that must fire when all the records are newly inserted and a commit is done are _______, On-Insert and Post-Insert.
- Post-Update
- Pre-Query
- Post-Query
- Pre-Insert
Show answer
Answer: D. Pre-Insert
For newly inserted records the commit fires PRE-INSERT, ON-INSERT and then POST-INSERT.
- In Oracle Forms, the Database item property is set to ‘no’ if the item is not associated with a base table column
- True
- False
Show answer
Answer: A. True
Set Database Item to No for items that are not linked to a base table column.
- Which text item data properties can restrict whether a user can insert new data?
- Primary Key
- Update Allowed
- Query Allowed
- Insert Allowed
Show answer
Answer: D. Insert Allowed
The Insert Allowed property controls whether users can enter a value in a new record.
- In Oracle forms, the block to which form builder should first navigate is set with ________ property of the form module.
- Initial Data block
- First Navigation Data block
- All of the above
- None of the above
Show answer
Answer: B. First Navigation Data block
The form module’s First Navigation Data Block property sets the block Forms enters first.
- In Oracle forms, Stacked and Tab canvasses are always built over a content canvas.
- True
- False
Show answer
Answer: A. True
Stacked and tab canvases are displayed on top of a window’s content canvas.
- In Oracle forms, the _______ block property can be used to sort the records queried from the database
- SORT clause
- ORDER BY clause
- All of the above
- None of the above
Show answer
Answer: B. ORDER BY clause
The block’s ORDER BY Clause property sorts the queried records.
- In Oracle forms, which block property can be set programmatically?
- WHERE clause
- Record Orientation
- No. of Records displayed
- All of the above
Show answer
Answer: A. WHERE clause
SET_BLOCK_PROPERTY can change DEFAULT_WHERE at runtime. Record orientation and the number of records displayed are fixed at design time.
- In Oracle forms, A global variable is active and accessible within a _______
- Form
- Session
- Block
- None of the above
Show answer
Answer: B. Session
Global variables last for the whole Forms session and are shared by every form opened in it.
- In Oracle Forms, If the not null constraint is defined, the _________ property is set to true.
- Datatype
- Required
- Enabled
- Automatic skips.
Show answer
Answer: B. Required
Creating items from a NOT NULL column sets the item’s Required property to Yes.
- In Oracle forms, which information can’t be passed from one form to another form?
- local variables
- Parameters
- Global Variables
- None of the above
Show answer
Answer: A. local variables
Local PL/SQL variables exist only inside their block. Use parameters or globals to pass data between forms.
- In Oracle forms, Name_in is a function which writes values into a field
- TRUE
- False
Show answer
Answer: B. False
NAME_IN reads a value by name. COPY is the built-in that writes a value.
- Can a Block be associated to multiple objects like a Table, View or Synonym?
- TRUE
- False
- Can’t say
- None of the above
Show answer
Answer: B. False
Each data block is based on one data source, such as one table, view or procedure.
- When-Validate-Item trigger can have navigational built-ins in them.
- TRUE
- False
- Can’t say
- None of the above
Show answer
Answer: B. False
When-Validate-Item cannot call restricted built-ins that navigate, such as GO_ITEM.
- Field variables and form System variables can be referenced in the library by
- :Global.<variable name>
- Get_Variable()
- System_Variable()
- None of the above
Show answer
Answer: D. None of the above
A PL/SQL library cannot refer to :block.item or system variables directly. Use NAME_IN to read and COPY to write them.
- Procedures created by forms builder to ensure Master Detail relationship between Master and Detail block are 1)Query_Master_Detail 2)Check_Master_Detail 3) Clear_All_Master_Details 4) Check_Delete_Master
- 1 & 4
- 2 & 3
- 1 & 3
- 3 & 4
Show answer
Answer: C. 1 & 3
Forms generates QUERY_MASTER_DETAILS, CLEAR_ALL_MASTER_DETAILS and CHECK_PACKAGE_FAILURE for a master-detail relation.
- Which of the following property determines the type of an item.
- Form.Item Type
- Block.Item Type
- Item Type
- None
Show answer
Answer: C. Item Type
The Item Type property decides whether an item is a text item, check box, list item, button and so on.
- Which of the following function is used to check if a Parameter List is created or not.
- Get_Parameterlist()
- Find_Parameterlist()
- Id_Null()
- A or B or C
Show answer
Answer: C. Id_Null()
Get the ID with GET_PARAMETER_LIST, then test it with ID_NULL to see whether the list exists.
- Pick the correct sequence in which the trigger fires when a form loads. 1) Post-Logon 2) Pre-Form 3) When-New-Record-Instance 4) Pre-Record
- 1,2,3,4
- 1,2,4,3
- 4,3,1,2
- 2,1,4,3
Show answer
Answer: B. 1,2,4,3
On startup Forms fires PRE-LOGON, ON-LOGON, POST-LOGON, PRE-FORM, PRE-BLOCK, PRE-RECORD and later WHEN-NEW-RECORD-INSTANCE.
- A Data block can be associated with.
- Table or View
- Procedure
- A & B
- None
Show answer
Answer: C. A & B
A data block can be based on a table, view or stored procedure, among other sources.
- What is SECURE property?
- Hides characters that the operator types into the text item. This setting is typically used for password protection
- You can restrict delete option using this property.
- You can secure your form using this option.
- None of the above
Show answer
Answer: A. Hides characters that the operator types into the text item. This setting is typically used for password protection
Conceal Data (called Secure in older versions) hides the characters a user types, for example for passwords.
- If you have property class attached to an item and you have same trigger written for the item. Which will fire first?
- Item level trigger
- Property level trigger
- Form level trigger
- None of the above
Show answer
Answer: A. Item level trigger
A trigger written directly on the item overrides the same trigger inherited from its property class.
- Object group have a block
- Yes
- No
Show answer
Answer: A. Yes
Object groups bundle objects such as blocks, canvases and program units so they can be reused in other modules.
- What is an LOV?
- LOV is a scrollable popup window that provides the use with selection list
- Properties of the item like font, color
- It’s a property class
- None of the above
Show answer
Answer: A. LOV is a scrollable popup window that provides the use with selection list
An LOV is a scrollable pop-up list of values that the user can pick from.
- A control block is not associated with the database
- True
- False
Show answer
Answer: A. True
A control block has no base table, so it is not linked to the database.
- While specifying master/detail relationship between two blocks specifying the join condition is a must ?
- True
- False
Show answer
Answer: A. True
A master-detail relation needs a join condition (or a foreign key) to link detail rows to the master.
- A query fetched 10 records How many times does a PRE-QUERY Trigger
- PRE-QUERY fires once..
- PRE-QUERY fires 10 times.
- PRE-QUERY fires 2 times.
- None of the above
Show answer
Answer: A. PRE-QUERY fires once..
PRE-QUERY fires once for the query, no matter how many records are fetched.
- Key next item trigger is common in form level, block level and item level
- True
- False
Show answer
Answer: A. True
KEY-NEXT-ITEM can be defined at form, block or item level; the lowest level wins.
- What is the fire sequence of between page trigger?
- All the pages
- First Page only
- All pages except the last page
- All pages except the first page.
Show answer
Answer: D. All pages except the first page.
Between Pages is an Oracle Reports trigger. It fires before each page is formatted, except the very first page.
- What is Flex?
- Flex is the property of moving the related fields together by setting the flex property on.
- Flex is the property of moving the selected fields only by setting the flex property on
- None of the above
Show answer
Answer: A. Flex is the property of moving the related fields together by setting the flex property on.
Flex mode moves related layout objects together when one of them grows or shrinks.
More Oracle practice questions
- Oracle Forms Practice Questions Set 2
- Oracle Forms Practice Questions Set 3
- All Oracle practice question sets
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.
