Multiple choice technology programming languages

6.What is output of following: ((lambda x x) 1 2 3)

  1. (1 2 3)

  2. 6

  3. 3

  4. (1 2)

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

(lambda x x) is a single-parameter function returning x. When called with multiple arguments (1 2 3), Scheme treats the excess arguments as forming a list that becomes x. The result is (1 2 3), not evaluation.