Vous êtes sur la page 1sur 10

go to contents

A P P E N D I X A
ANSWERS
TO SELF-REVIEW
QUESTIONS
CHAPTER 1
Lab 1.1 I Self-Review Answers
Question Answer Comments
1) d
2) b PL/SQL is the language used in Forms triggers and pro-
gram units.
3) a The direct result of clicking a button is the Button Pressed
event, which is an interface event. If there is a WHEN-
BUTTON-PRESSED trigger associated with the button, then
this trigger will fire to respond to the Button Pressed event.
4) d
5) c
Lab 1.2 I Self-Review Answers
Question Answer Comments
1) d Blocks are logical containers of items. They are not phy-
sical objects because they do not have properties that
would make them visible to the user.
2) e Modules, like blocks, are logical containers because they
do not have properties that would make them visible to
the user.
3) a
4) a
5) d Frames are graphic objects that are owned by canvases.
6) a All of the objects in a form are owned by the forms mod-
ule. So, while Answers b, c, and d are also true, a is a more
complete answer.
445
7) d At design-time, properties can be manipulated directly in
the Property Palette. Some property values can also be ma-
nipulated in the Layout Editor. For example, if you drag
an item from one place to another, you will be changing
its X Position and Y Position properties. At run-time,
PL/SQL code in triggers can be used to change property
values programmatically.
CHAPTER 2
Lab 2.1 I Self-Review Answers
Question Answer Comments
1) d The Layout Wizard will help you create the first cut or
rough draft of a canvas. You are free to edit this canvas by
reentering the Layout Wizard or by using the Layout Edi-
tor and Property Palette.
2) a The main function of the Data Block Wizard is to create
blocks and associate them with tables in the database. It
also helps you create items in blocks and associate them
with columns in the database.
3) b Reentering the Layout Wizard will allow you to change
the prompt value for an item as well as edit many other
item and canvas properties. While they are not listed as
answers for Question 3, it is also possible to edit item
prompts in the Property Palette and Layout Editor.
4) c Since neither the Data Block Wizard or Layout Wizard
have anything to do with the module level of a form, they
do not affect the module name.
Lab 2.2 I Self-Review Answers
Question Answer Comments
1) d
2) c
3) e Answer c is incorrect because icons are stored in .ico
files, not as modules.
4) c Program Compile All will compile all of the PL/SQL in a
form, but it will not create an .fmx file.
CHAPTER 3
Lab 3.1 I Self-Review Answers
Question Answer Comments
1) c
2) d
446 Appendix A: Answers to Self-Review Questions
go to contents
3) d Only object names can be changed in the Object Naviga-
tor. All other properties must be changed in either the
Property Palette or Layout Editor.
4) a
5) b
6) c
7) b
Lab 3.2 I Self-Review Answers
Question Answer Comments
1) c
2) c
3) d Mass changes to properties can be done by selecting mul-
tiple objects in the Object Navigator and then changing
their properties. It is not possible to delete item properties
as Answer b suggests. However, in Chapter 9, Reusable
Objects, you will learn how to delete properties from ob-
jects called property classes.
Lab 3.3 I Self-Review Answers
Question Answer Comments
1) c
2) a
3) b
4) e
5) b
6) d
CHAPTER 4
Lab 4.1 I Self-Review Answers
Question Answer Comments
1) b
2) d The relation object is a logical object, so it cannot be dis-
played on a canvas.
3) c
4) b
5) e The relation object is always owned by the master block.
The Delete Record Behavior property affects the way
records are deleted.
6) b The Deferred property indicates whether or not the form
should defer (wait) execution of the query for the detail
block. If it is set to No, the query will not be deferred and the
detail block will be populated along with the master block.
7) c
Appendix A: Answers to Self-Review Questions 447
go to contents
CHAPTER 5
Lab 5.1 I Self-Review Answers
Question Answer Comments
1) c
2) c
3) a It also lets you control the format in which information is
entered into the form.
4) d Items can only be seen by the user if their Visible prop-
erty is set to True and they are positioned on a canvas
that is also visible.
5) b
6) d
Lab 5.2 I Self-Review Answers
Question Answer Comments
1) d Answer b is incorrect because while buttons have a
Prompt property, it should not be used to communicate
their function.
2) b
3) a
4) a
5) d
6) d
CHAPTER 6
Lab 6.1 I Self-Review Answers
Question Answer Comments
1) a
2) a Answer c is incorrect because the item-level WHEN-
BUTTON-PRESSED trigger with Override set to Yes will
cause the form to override or ignore WHEN-BUTTON-
PRESSED triggers that are higher up in the hierarchy.
3) d Many item-specific triggers can be set at the block and
form level as well to increase their scope.
4) b Answer c is incorrect because Post triggers do not replace
default processing. They fire after the default processing
has occurred.
5) a Answer c is incorrect because When triggers can also re-
spond to internal processing events as demonstrated with
the Validate Item event and WHEN-VALIDATE-ITEM trigger.
6) b
7) b
8) b WHEN-NEW-FORM-INSTANCE triggers can be created at the
form and block level, but not the item level.
448 Appendix A: Answers to Self-Review Questions
go to contents
Lab 6.2 I Self-Review Answers
Question Answer Comments
1) b Answer c is incorrect because POST-QUERY triggers can
only be attached at the block or form level. Moreover, no
trigger can be attached to a record group or any other ob-
ject that is not an item, block, or form.
2) b None of the other answers are true because POST-QUERY
triggers cannot be attached to items.
3) d Although it was not mentioned in the Lab text, you proba-
bly noticed that the PL/SQL Editor formats your code to
make it easier to read by indenting and coloring key words.
4) d
5) b
6) c
Lab 6.3 I Self-Review Answers
Question Answer Comments
1) c Answer a is only true if the built-in is restricted and the
trigger fires because navigation has occurred.
2) d
3) c
4) d
5) b If you want to pass an item name to a built-in, you must
use the following syntax: 'BLOCK.ITEM'. If you include
the colon and exclude the single quotes as in Answer b,
the built-in will not compile.
6) d If you answered a, you are half right. Up until now, you
have only used FIND_ built-ins to get object IDs. However,
later in the book, you will also use a GET_ built-in to get
the object ID of a parameter list.
CHAPTER 7
Lab 7.1 I Self-Review Answers
Question Answer Comments
1) d
2) b
3) d
4) d
5) b
6) b
7) a
8) b
Appendix A: Answers to Self-Review Questions 449
go to contents
Lab 7.2 I Self-Review Answers
Question Answer Comments
1) c
2) c
3) a
4) c
5) d
6) c
CHAPTER 8
Lab 8.1 I Self-Review Answers
Question Answer Comments
1) c Answer c is incorrect because content is a type of canvas.
2) c Note that the answer says well-suited and not mandatory.
3) d Dialog windows are usually modal, although they do not
have to be.
4) b
5) a
6) d Answer c is incorrect because the MDI window does not
have a Visible property.
7) b
Lab 8.2 I Self-Review Answers
Question Answer Comments
1) a Two content canvases can be assigned to the same win-
dow, but they cannot appear at the same time.
2) d
3) c
4) b A window can be closed with navigation if its Hide on
Exit property is set to Yes.
Lab 8.3 I Self-Review Answers
Question Answer Comments
1) a You can position items on a stacked canvas as you did in
the Exercises for Lab 7.3.
2) a Stacked canvases are always positioned relative to a con-
tent canvas, not relative to a window.
3) a
4) d
5) d
450 Appendix A: Answers to Self-Review Questions
go to contents
Lab 8.4 I Self-Review Answers
Question Answer Comments
1) c Toolbars can only be attached to window objects or the
MDI window.
2) d
3) d
4) d Answer c is incorrect because button items do not have a
window property.
CHAPTER 9
Lab 9.1 I Self-Review Answers
Question Answer Comments
1) d
2) d Answer c is incorrect because copying an object does not
create a subclassed version of that object.
3) b Answer a is incorrect because the Object Navigator only
shows if an object has been subclassed, not what its
source is.
4) c
5) d
Lab 9.2 I Self-Review Answers
Question Answer Comments
1) c Visual attributes only apply font and color properties, not
physical properties like Canvas.
2) d Any object that has font and color properties can inherit
from a visual attribute.
3) a
4) d
5) c
6) d
7) c
8) d Answer c is true because if the same property is set by
both a visual attribute and a property class, the visual at-
tributes setting will take precedence.
Lab 9.3 I Self-Review Answers
Question Answer Comments
1) a
2) c
3) d
4) b Answer a is incorrect because an object group only con-
tains pointers to objects, not actual instances of objects.
Appendix A: Answers to Self-Review Questions 451
go to contents
5) d Answer c is incorrect because an object cannot be opened
or edited in an object library.
6) d
Lab 9.4 I Self-Review Answers
Question Answer Comments
1) a Answer b is incorrect because object libraries should serve
as the source for template forms.
2) d Answer b is incorrect because Forms will automatically re-
name a form that is based on a template form.
3) a
4) b
CHAPTER 10
Lab 10.1 I Self-Review Answers
Question Answer Comments
1) b
2) d
3) a
4) d
Lab 10.2 I Self-Review Answers
Question Answer Comments
1) c Answers a and b are incorrect because PL/SQL Libraries are
separate modules.
2) b
3) b
4) d
5) d The statement :CONTROL.CURDATE directly references a
block and item name, which would make it invalid in a
PL/SQL Library.
Lab 10.3 I Self-Review Answers
Question Answer Comments
1) c
2) a
3) c
4) c
452 Appendix A: Answers to Self-Review Questions
go to contents
CHAPTER 11
Lab 11.1 I Self-Review Answers
Question Answer Comments
1) d
2) c Answer a is incorrect because the NO_ACTIVATE parameter
will not make the calling form invisible. It will open the
called form, but set the focus to the calling form.
3) b
4) d Answer a is incorrect because the value of a system vari-
able only applies to a specific form.
5) b Parameter lists can contain more than one parameter.
CHAPTER 12
Lab 12.1 I Self-Review Answers
Question Answer Comments
1) d Answer a is incorrect because you cannot create reports in
the Form Builder. You must do it in the Report Builder. It
is only possible to invoke the Report Builder from the
Form Builder.
2) a
3) a
4) b Answer a is incorrect because RUN_REPORT_OBJECT can-
not accept report object names. Answer c is incorrect
because RUN_PRODUCT_OBJECT is not a valid built-in.
Answer d is incorrect because the single quotes have been
left off the NULL parameter list value.
Lab 12.2 I Self-Review Answers
Question Answer Comments
1) a
2) d
3) d
4) d SYNCHRONOUS is not a parameter you can pass to RUN_
PRODUCT_OBJECT.
CHAPTER 13
Lab 13.1 I Self-Review Answers
Question Answer Comments
1) d
2) c The switch parameter can sometimes be confusing. A
good way to remember how to set the switch parameter
Appendix A: Answers to Self-Review Questions 453
go to contents
is to think of it as written in the following sentences: I
want to REPLACE the calling forms menu. I do NOT
want to REPLACE the calling forms menu.
3) c
4) b It will make v the hot key.
Lab 13.2 I Self-Review Answers
Question Answer Comments
1) d
2) c
3) d
454 Appendix A: Answers to Self-Review Questions
go to contents

Vous aimerez peut-être aussi