Oracle Reports Practice Questions Set 2

Oracle Reports practice questions on the data model, bind and lexical parameters, formula, summary and placeholder columns, report triggers, frames and layout. This set has 33 multiple-choice questions, each with a short explanation (set 2 of 2). 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 33 questions with answers

  1. How is relative positioning in Oracle reports achieved?
    1. using groups
    2. using triggers
    3. using anchors
    4. None
    Show answer

    Answer: C. using anchors

    Anchors tie one layout object to another so their positions stay relative.

  2. Which of the following are valid layout formats in Oracle reports
    1. mailing label
    2. Form
    3. Tabular
    4. all the above
    Show answer

    Answer: D. all the above

    Report layout styles include tabular, form, mailing label, form letter, group left, group above and matrix.

  3. How to change the format of frame or item programmatically in oracle reports
    1. set_item_property
    2. set_property
    3. format trigger
    4. none
    Show answer

    Answer: C. format trigger

    A format trigger can change or hide a frame or field at runtime.

  4. Valid printing direction in Oracle reports are?
    1. zigzag
    2. down
    3. across
    4. B & C
    Show answer

    Answer: D. B & C

    Repeating frames print Down or Across (or a combination). Zigzag is not an option.

  5. which of the following is not a valid oracle reports object?
    1. LOV
    2. Group
    3. anchor
    4. repeating frame
    Show answer

    Answer: A. LOV

    An LOV is a Forms object. Groups, anchors and repeating frames are Reports objects.

  6. How is debugging message displayed in oracle reports
    1. srw.message
    2. message
    3. show_message
    4. show_Text
    Show answer

    Answer: A. srw.message

    SRW.MESSAGE shows a message while the report runs, which is handy for debugging.

  7. what are valid program units in Oracle Reports?
    1. triggers
    2. Procedure
    3. functions
    4. all the above
    Show answer

    Answer: D. all the above

    Reports program units include report triggers, procedures and functions.

  8. Can a PL/SQL library be attached to a form as well as report?
    1. true
    2. FALSE
    Show answer

    Answer: A. true

    A PL/SQL library (.pll) can be attached to both forms and reports.

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

    Answer: A. Yes

    Report triggers can call stored procedures in the database.

  10. Can you call a Oracle report from an Oracle form?
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    Forms can run a report with RUN_PRODUCT (6i) or RUN_REPORT_OBJECT (9i and later).

  11. Can you call a stored procedure from a formula column in oracle reports?
    1. Yes
    2. No
    Show answer

    Answer: A. Yes

    A formula column can call a stored function or procedure.

  12. A _______ is an argument to pass parameters from oracle reports to oracle applications
    1. Parameter
    2. Profile
    3. Token
    4. None of the above
    Show answer

    Answer: C. Token

    In the concurrent program definition, the Token field maps each parameter to the matching report parameter name.

  13. _______ determines the horizontal and vertical position of an object
    1. Anchor
    2. OLE2 Object
    3. Data Link
    4. Frame
    Show answer

    Answer: A. Anchor

    An anchor fixes the horizontal and vertical position of one object relative to another.

  14. Is it possible to use User Exits in Report builder?
    1. Yes
    2. No
    3. Not applicable
    Show answer

    Answer: A. Yes

    Report Builder supports user exits, such as the FND user exits used in Oracle Apps reports.

  15. Which parameter cannot be used in FROM clause?
    1. Bind Parameter
    2. Data Parameter
    3. Lexical Parameter
    4. All the above
    Show answer

    Answer: A. Bind Parameter

    Bind parameters supply values only, so they cannot name a table in the FROM clause. Use a lexical parameter for that.

  16. How can we execute the query in the report trigger?
    1. SRW.EXEC_SQL
    2. SRW.EXECUTE_SQL
    3. SRW.DO_SQL
    4. All the above
    Show answer

    Answer: C. SRW.DO_SQL

    SRW.DO_SQL runs DDL or DML from a report trigger or program unit.

  17. What is the correct Firing sequence of report triggers?
    1. BEFORE PARAMETER FORM BEFORE REPORT TRIGGER AFTER PARAMETER FORM BETWEEN PAGES AFTER REPORT TRIGGER
    2. BEFORE REPORT TRIGGER BEFORE PARAMETER FORM AFTER PARAMETER FORM BETWEEN PAGES AFTER REPORT TRIGGER
    3. BEFORE REPORT TRIGGER BEFORE PARAMETER FORM BETWEEN PAGES AFTER PARAMETER FORM AFTER REPORT TRIGGER
    4. BEFORE PARAMETER FORM AFTER PARAMETER FORM BEFORE REPORT TRIGGER BETWEEN PAGES AFTER REPORT TRIGGER
    Show answer

    Answer: D. BEFORE PARAMETER FORM AFTER PARAMETER FORM BEFORE REPORT TRIGGER BETWEEN PAGES AFTER REPORT TRIGGER

    The firing order is Before Parameter Form, After Parameter Form, Before Report, Between Pages and After Report.

  18. How many minimum groups are required for a matrix report
    1. 2
    2. 1
    3. 3
    4. 4
    Show answer

    Answer: D. 4

    A matrix report needs at least four groups: two dimension groups, a cross-product group and a cell group.

  19. What are placeholders used for in oracle reports
    1. holding values
    2. holding values at run time
    3. for doing calculations
    4. None of the Above
    Show answer

    Answer: B. holding values at run time

    A placeholder holds a value that is set at runtime by PL/SQL elsewhere in the report.

  20. Which of the following is not used to change the printed value of a field at runtime?
    1. SRW.set_field_char
    2. SRW.set_field_num
    3. SRW.set_field_int
    4. SRW.set_field_date
    Show answer

    Answer: C. SRW.set_field_int

    SRW has SET_FIELD_CHAR, SET_FIELD_NUM and SET_FIELD_DATE (plus SET_FIELD). SET_FIELD_INT does not exist.

  21. If a parameter is used as a lexical reference in a query, its data type must be________
    1. Character
    2. Number
    3. Date
    4. None of the Above
    Show answer

    Answer: A. Character

    A lexical parameter is substituted as text, so its data type must be Character.

  22. _______ is a form of representation which can visibly show all the information in a compact version
    1. Form
    2. Table
    3. Graph
    4. None of the Above
    Show answer

    Answer: C. Graph

    A graph shows a lot of information in a compact visual form.

  23. ___________ is used to compare the ratios or percentage of parts of a whole
    1. Pie Chart
    2. Bar chart
    3. Line
    4. None of the Above
    Show answer

    Answer: A. Pie Chart

    A pie chart shows how parts make up a whole, as ratios or percentages.

  24. A ______ define common characteristics and objects that you want to apply to multiple reports.
    1. Template
    2. Query Builder
    3. Wizard
    4. None of the Above
    Show answer

    Answer: A. Template

    A template defines common objects and formatting you can apply to many reports.

  25. Use a pre-defined template to create a report and modify the report in the ____________
    1. Live Previewer
    2. Data Previewer
    3. Data Model
    4. None of the Above
    Show answer

    Answer: A. Live Previewer

    The Live Previewer shows the report with real data and lets you edit the layout there.

  26. _________has its value set from another object at run time
    1. aSummary Columns
    2. Formula Columns
    3. Placeholder Columns
    4. None of the above
    Show answer

    Answer: C. Placeholder Columns

    A placeholder column gets its value from another object at runtime.

  27. _____________report is used when you want the repeating values for the columns to be printed only once.
    1. Tabular Report
    2. Master-Detail report
    3. Break Report
    4. None of the Above
    Show answer

    Answer: C. Break Report

    A break report prints repeating values of the break column only once per group.

  28. A query can be based on ref cursor when you want to___________________
    1. Decrease the control and security
    2. Avoid the use of the lexical parameters in your reports.
    3. Revealing the logic within a subprogram
    4. None of the above
    Show answer

    Answer: B. Avoid the use of the lexical parameters in your reports.

    A REF CURSOR query moves the SQL into a package, cutting the need for lexical parameters and keeping logic in the database.

  29. The ___________________ dialog box allows you to specify multiple conditions and formatting attributes for a selected layout object.
    1. Format Trigger
    2. Report Wizard
    3. Conditional Formatting
    4. None of the Above
    Show answer

    Answer: C. Conditional Formatting

    The Conditional Formatting dialog lets you set several conditions and formats for a layout object.

  30. A _____________report contains database values embedded into any text that is entered or imported into the Report Builder.
    1. Form-Letter
    2. Tabular
    3. Mailing Label
    4. None of the above
    Show answer

    Answer: A. Form-Letter

    A form-letter report embeds database values in free text, like a mail merge.

  31. __________ triggers on most paper layout objects fire as the layout object is processed.
    1. Format Triggers
    2. Layout Triggers
    3. Data Model Triggers
    4. None of the Above
    Show answer

    Answer: A. Format Triggers

    Format triggers fire as each layout object is formatted.

  32. ________ triggers affect the way in which objects are formatted.
    1. Format Triggers
    2. Layout Triggers
    3. Data Model Triggers
    4. None of the Above
    Show answer

    Answer: B. Layout Triggers

    Layout triggers work on layout objects and control how they are formatted and printed.

  33. ________ triggers can affect which records are processed and how they are processed
    1. Format Triggers
    2. Layout Triggers
    3. Data Model Triggers
    4. None of the Above
    Show answer

    Answer: C. Data Model Triggers

    Data model triggers, such as group filters and formula columns, decide which records are processed and how.

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.