Multiple choice technology programming languages

Output of: vector (1 2 2 3 4 4)

  1. #6(1 2 2 3 4)

  2. #6(1 2 3 4)

  3. #6(1 2 2 3 4 4)

  4. #4(1 2 3 4)

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

In Scheme, vectors created from lists remove duplicates from the list structure. (1 2 2 3 4 4) has 6 elements but only 5 unique values. Scheme vector notation #6(...) shows length 6 but deduplicates values, resulting in #6(1 2 2 3 4).