Test Your Knowledge!
Take this quiz to test what you've learned in this chapter.
Quiz on the basic concepts of macros and the AST.
1
What’s the expected output of the following expression?
iex> quote do: 3 * 2 + 7
A)
{:*, [context: Elixir, import: Kernel],
[{:+, [context: Elixir, import: Kernel], [3, 2]}, 7]}
B)
{:+, [context: Elixir, import: Kernel],
[{:*, [context: Elixir, import: Kernel], [3, 2]}, 7]}
C)
{:+, [context: Elixir, import: Kernel],
[{:*, [context: Elixir, import: Kernel], [7, 2]}, 3]}
D)
{:+, [context: Elixir, import: Kernel],
[{:+, [context: Elixir, import: Kernel], [3, 2]}, 7]}
Question 1 of 60 attempted
Get hands-on with 1200+ tech skills courses.