DCL I FIXED BIN(31);
A. I = 1 TO 100; ALLOCATE NODE; NODE.DATA = I; NODE.NEXT = P; ANCHOR = P; END;
B. DO I = 1 TO 100; P = ANCHOR; ALLOCATE NODE; NOTE.DATA = I; NODE.NEXT = P; END;
C. DO I = 1 TO 100; NODE.DATA = I; NODE.NEXT = P; ALLOCATE NODE; P = ANCHOR; END;
D. DO I = 1 TO 100; ALLOCATE NODE; NODE.DATA = I; NODE.NEXT = P; P = ANCHOR; END;
Answer:D
DCL I FIXED BIN(31);
A. I = 1 TO 100; ALLOCATE NODE; NODE.DATA = I; NODE.NEXT = P; ANCHOR = P; END; B. DO I = 1 TO 100; P = ANCHOR; ALLOCATE NODE; NOTE.DATA = I; NODE.NEXT = P; END; C. DO I = 1 TO 100; NODE.DATA = I; NODE.NEXT = P; ALLOCATE NODE; P = ANCHOR; END; D. DO I = 1 TO 100; ALLOCATE NODE; NODE.DATA = I; NODE.NEXT = P; P = ANCHOR; END;