Multiple choice technology

What does field1 returns: record string field1 = ‘ABCD”; string(5) field2; end reformat logic:field1+"5"

  1. ABCDE

  2. ABCDI

  3. ABCD5

  4. None of the above

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

The reformat logic field1+"5" performs string concatenation. Since field1 contains 'ABCD', adding '5' results in 'ABCD5'. The string(5) definition for field2 is unrelated to this operation and does not affect the return value.