Multiple choice technology programming languages

What is the fastest way to move one internal table to another internal table (assuming two tables of similar structure)? a) append lines of table1 to table2. b) loop at table1. Move: table1-field1 to table2-field1, table1-field2 to table2-field2. Append table2. Endloop. c) table2[] = table1[]. d) loop at table1. Move-corresponding table1 to table2. Endloop.

  1. a

  2. b

  3. c

  4. d

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

The statement table2[] = table1[] performs a direct memory copy of the entire internal table in one operation. This is the fastest method because it uses optimized internal memory copying. APPEND LINES would work but is slower for full copies. LOOP variants are much slower as they process row-by-row. Move-corresponding requires matching field names and processes iteratively.