Which keyword adds rows to an internal table while accumulating numeric values?

  1. INSERT

  2. APPEND

  3. COLLECT

  4. GROUP


Correct Option: C

AI Explanation

To answer this question, you need to understand how internal tables work in programming languages like ABAP.

Option A) INSERT - This option is incorrect because the INSERT keyword is used to insert individual records into an internal table. It does not accumulate or add rows with numeric values.

Option B) APPEND - This option is incorrect because the APPEND keyword is used to add individual records to the end of an internal table. It does not accumulate or add rows with numeric values.

Option C) COLLECT - This option is correct because the COLLECT keyword is used to accumulate numeric values in an internal table. When used with a numeric field, it adds the values of the field in each row to a specified field in a target line of the internal table. This allows for the aggregation or accumulation of numeric values.

Option D) GROUP - This option is incorrect because the GROUP keyword is used to group and summarize data in an internal table based on specified key fields. It does not add rows with numeric values.

The correct answer is C) COLLECT. This option is correct because it is used to add rows to an internal table while accumulating numeric values.

Find more quizzes: