Test Your Knowledge!
Take this quiz to test what you've learned in this chapter.
We'll cover the following...
We'll cover the following...
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