Multiple choice technology mainframe

Data in IDENTIFICATION-TABLE IDENT-ID IDENT-NAME IDENT-AGE ----------------------------- 1234 AAAA 23 2345 BBBB 13 3456 CCCC 25 4567 DDDD 15 5678 EEEE 20 READ IDENTIFICATION-TABLE BY SUPER-ID-NAME-AGE STARTING FROM '1235' THRu '3457' DISPLAY IDENT-ID IDENT-NAME IDENT-AGE LOOP How many number of records will be displayed in the output? * SUPER-ID-NAME-AGE comprises of all the above three fields in the mentioned order

  1. 0

  2. 1

  3. 2

  4. 3

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

SUPER-ID-NAME-AGE comprises IDENT-ID, IDENT-NAME, IDENT-AGE in that order. The READ range '1235' THRU '3457' matches 2 records: 2345 BBBB 13 (starts with 2345) and 3456 CCCC 25 (starts with 3456). Record 1234 AAAA 23 is excluded (1234 < 1235), and 4567 DDDD 15 is excluded (4567 > 3457).