77 A PIC X(10) VALUE IS “AABBCCDDEE”.In PROCEDURE DIVISION contains the statement EXAMINE A REPLACING ALL “ABC” BY “XYZ” .Indicate which one of the following is true

(a)The EXAMINE statement is incorrect because A does not contain the character “ABC” in a continuous sequence
(b)The EXAMINE statement is incorrect as it can be used to replace a numeric literal by another numeric literal.
(c)The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
(d)The EXAMINE statement is incorrect as TALLYING OPTION is missing.

Answer: c

0 comments: