What is the file extension for Elixir source files that are compiled?
.ex
Which Elixir primitive enables a subprogram to run concurrently in a separate process?
spawn/1
What operator prevents variable rebinding during pattern matching?
^ (pin operator)
What Elixir construct allows multi-way selection and uses pattern matching to determine which branch to execute?
case
Name the virtual machine that runs Elixir programs
BEAM (Erlang Virtual Machine)
True or False:
In Elixir, variables are mutable by default, allowing values to be directly changed in memory
False
The MapSet module in Elixir is used to manage collections of unique values and supports operations like union, intersection, and difference
True
The ++ and – operators modify the original list in-place when concatenating or subtracting elements
False
In Elixir, the do … end keywords are used to delimit code blocks instead of curly braces
{}.
True
What is the output of the program?
a=3
b=7
c=10
{[x, y], z} = {[b, a], c}
x = x* 2
y = y+z
z =z+y
IO.inspect({x, y, z})
{14, 13, 23}
Who created Elixir and Co-founder of Plataformatec
José Valim
Company known for its work in the Ruby and Rails Ecosystem
Plataformatec
This is a dynamic, functional programming language designed for building systems in need of ____, ____, and ____
High Concurrency
Scalability
Reliability
Elixir is widely used in where? (Application Areas)
telecommunications platforms
financial systems
cloud-native architectures
IoT backends
distributed systems
Characteristics
What philosophy does Elixir follow?
Let it crash.
Allowing systems to recover gracefully from failures
What is a pipe operator?
Used to pass the result of the expression on its left as the first argument to the function on its right.
What are atoms?
Atoms are constants where the name itself is the value
Does Elixir support goto statements? if so, why?
No. As these are incompatible with its functional design and scoping rules.
Transfer of control are achieved implicitly through function invocation