Multiple choice technology programming languages

REPORT ZTEST. statics: a(3) type c value ‘10’. data: b(3) type c value ‘10’. Do 5 times. perform add using a b. enddo. write: a,b. form ADD using a b. if sy-index eq 3. exit. else. a = a + 1. b = b + 1. endif. endform. " ADD What is the values of a and b?

  1. 10,13

  2. 10,14

  3. 14,14

  4. Syntax error

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

The ABAP code contains multiple syntax errors. First, 'statics' should be 'STATICS'. Second, there's a name mismatch: the PERFORM statement calls 'add' (lowercase) but the FORM definition is named 'ADD' (uppercase). ABAP is case-sensitive for FORM/PERFORM names. Additionally, the STATICS declaration syntax is incorrect. These errors would prevent compilation.