Quiz: Data Layers in Elixir

Demonstrate your knowledge about data layers in Elixir.

1

Which answer best describes the following iex code?

iex> x = 10
10
iex> x
10
iex> x = 11
11
iex> x
11
A)

Elixir is a mutable language because the value of x can change.

B)

The bindings to the variable x can change within a program, but Elixir is an immutable language.

C)

This listing is incorrect because iex would not allow x = 11.

D)

This code could happen only in iex, but not in other Elixir programs.

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.