> Question 1: The
logic of a New-style MUMPS cross-reference, which is defined by the programmer,
is executed whenever a field in the cross-reference is edited, and usually
performs some action other than maintaining an
index.
A. True
B. False
> Question 2: The Set
and Kill logic and the Set and Kill conditions of New-style cross-references
can reference the X, X1, and X2 arrays. What does the X(order#) array contain
when a record is edited, and the cross-reference is
fired?
A. The old cross-reference values when the Kill logic
and Kill condition are executed.
B. The new cross-reference
values when the Set logic and Set condition are executed.
C. Both
of the above.
> Question 3: What
does the X1(order#) array contain when a record is edited, and the
cross-reference is fired?
A. The old cross-reference values
when the Set and Kill logic and conditions are executed.
B. The
new cross-reference values when the Set and Kill logic and conditions are
executed.
C. Neither of the above.
> Question 4: What
does the X2(order#) array contain when a record is edited, and the
cross-reference is fired?
A. The old cross-reference values
when the Set and Kill logic and conditions are executed.
B. The
new cross-reference values when the Set and Kill logic and conditions are
executed.
C. Neither of the above.
> Question 5: When a
new record is added to a file, FileMan sets the .01 field and immediately fires
the Set logic of all the cross-references on the .01 field. The X1(order#)
array element that corresponds to the .01 field is null at this
point.
A. True
B. False
> Question 6: When a
record is deleted from a file, the Kill logic of all cross-references for that
record is executed. All X2(order#) array elements are null at this
point.
A. True
B. False
> Question 7: You can
define Set and Kill Conditions on both Regular and MUMPS cross-references to
prevent a cross-reference from firing under conditions you specify. If there is
a Set Condition, the Set Logic will be executed only if the Set Condition sets
X to Boolean true (i.e., after the Set Condition code is executed, the command
IF X evaluates to true).
A. True
B. False
> Question 8: If there
is Kill Condition on a Regular and MUMPS cross-reference, the Kill Logic is
executed only if the Kill Condition sets X to Boolean
false.
A. True
B. False
> Question 9: An
Action-type cross-reference is a cross-reference with Set and Kill logic that
performs some action other than building an index. Most MUMPS cross-references
are Action-type cross-references. An Action-type cross-reference must have a
name that starts with the
letter:
A. "A"
B. "C"
C. Neither
of the above.
Question 1: The logic of
a New-style MUMPS cross-reference, which is defined by the programmer, is
executed whenever a field in the cross-reference is edited, and usually
performs some action other than maintaining an index.
Answer: A. "True."
Question 2: The Set and
Kill logic and the Set and Kill conditions of New-style cross-references can
reference the X, X1, and X2 arrays. What does the X(order#) array contain when
a record is edited, and the cross-reference is fired?
Answer: C. "Both
of the above." (The X(order#) array contains [1] the old cross-reference values
when the Kill Logic and Kill Condition are executed, and [2] the new
cross-reference values when the Set Logic and Set Condition are executed.)
Question 3: What does the
X1(order#) array contain when a record is edited, and the cross-reference is
fired?
Answer: A. "The
old cross-reference values when the Set and Kill logic and conditions are
executed."
Question 4: What does the
X2(order#) array contain when a record is edited, and the cross-reference is
fired?
Answer: B. "The
new cross-reference values when the Set and Kill logic and conditions are
executed."
Question 5: When a new
record is added to a file, FileMan sets the .01 field and immediately fires the
Set logic of all the cross-references on the .01 field. The X1(order#) array
element that corresponds to the .01 field is null at this point.
Answer: A. "True."
Question 6: When a record
is deleted from a file, the Kill logic of all cross-references for that record
is executed. All X2(order#) array elements are null at this point.
Answer: A. "True."
Question 7: You can
define Set and Kill Conditions on both Regular and MUMPS cross-references to
prevent a cross-reference from firing under conditions you specify. If there is
a Set Condition, the Set Logic will be executed only if the Set Condition sets
X to Boolean true (i.e., after the Set Condition code is executed, the command
IF X evaluates to true).
Answer: A. "True."
Question 8: If there is
Kill Condition on a Regular and MUMPS cross-reference, the Kill Logic is
executed only if the Kill Condition sets X to Boolean false.
Answer: B. "False."
(The Kill Logic is executed only if the Kill Condition sets X to Boolean
true.)
Question 9: An
Action-type cross-reference is a cross-reference with Set and Kill logic that
performs some action other than building an index. Most MUMPS cross-references
are Action-type cross-references. An Action-type cross-reference must have a
name that starts with the letter:
Answer: A. "A".
Back to the top
Reviewed/Updated: March 20, 2007