000-349 · Question #20
Refer to the Exhibit. The Exhibit shows the group view for an input type tree that defines a purchase order (PO) file. The component rule on the Record component:
The correct answer is D. identifies the beginning of a new PO. A component rule on a repeating Record component can use a conditional expression to detect when a new instance of that component begins, guiding the parser to correctly segment each purchase order. The question tests understanding of component rule behavior in type trees.
Question
Refer to the Exhibit. The Exhibit shows the group view for an input type tree that defines a purchase order (PO) file. The component rule on the Record component:
Options
- Aselects the last PO record
- Bidentifies the end of the PO file
- Ccounts the number of PO records
- Didentifies the beginning of a new PO
How the community answered
(22 responses)- B5% (1)
- C9% (2)
- D86% (19)
Why each option
A component rule on a repeating Record component can use a conditional expression to detect when a new instance of that component begins, guiding the parser to correctly segment each purchase order. The question tests understanding of component rule behavior in type trees.
Selecting only the last PO record requires a terminal or end-of-group condition, which is the opposite of a rule that fires at the beginning of each new record.
Identifying the end of the PO file is handled by a terminator property or a rule defined at the File type level, not by a component rule scoped to the Record type.
Counting PO records is an occurrence or quantifier function, not the role of a component rule that evaluates positional or content-based conditions to identify structural boundaries.
In a type tree, a component rule on the Record type uses a lookahead or match condition to signal that a new PO record is starting, telling the parser to begin a fresh instance of the Record component when the condition is satisfied. This pattern is standard for handling repeating records where a leading field value or marker distinguishes the start of each new entry in the file.
Concept tested: Type tree component rule identifying new record start
Topics
Community Discussion
No community discussion yet for this question.