QuestionQ7

Variables and Arguments

A variable must be created to store one or more IDs. The ID collection can be updated during robot execution by adding elements. What data type should this variable use, considering that every ID follows the format XX-XX-XX (where X is a digit)?

  • A String
  • B List
  • C List
  • D String[]
Explanation

The IDs must be represented as strings because their XX-XX-XX format contains hyphens. A list of strings supports storing multiple IDs and adding further elements during execution.

Community Discussion

No comments yet. Be the first to start the discussion!