Elixir Interview Questions & Answers

  1. Question 1. What Is Elixir?

    Answer :

    Elixir is a dynamic, functional language. It is designed to build scalable and maintainable applications.

  2. Question 2. Who Developed Elixir?

    Answer :

    Ericsson developed elixir in 1986.

  3. Python Interview Questions

  4. Question 3. What Is The Stable Version Of Elixir?

    Answer :

    The stable version of Elixir is 1.5.1 and released on 1 August 2017.

  5. Question 4. What Are The Features Of Elixir?

    Answer :

    The following features of Elixir are:

    • Scalability
    • Fault tolerance
    • Functional programming
    • Build tools
    • Erlang Compatibility
  6. Python Tutorial

  7. Question 5. Which Platform Is Used To Run Elixir?

    Answer :

    BEAM (Erlang virtual machine) platform is used to run Elixir.

  8. J2EE Interview Questions

  9. Question 6. What Is The Use Of Spawn Functions?

    Answer :

    The Spawn function is used to create a new process.

    Example:

    pid = spawn(fn -> 2 * 2 end)  

    Process.alive?(pid) 

  10. Question 7. What Is Sigils In Elixir?

    Answer :

    Elixir is a mechanism, used to textual representations with the language. It starts with tilde (~) character.

  11. J2EE Tutorial
    Core Java Interview Questions

  12. Question 8. How To Create A Map In Elixir??

    Answer :

    Map is created by using %{} syntax.

    map = %{:a => 1, 2 => :b} 

  13. Question 9. What Are The Operators In Elixir?

    Answer :

    There are following operators in Elixir:

    • Arithmetic operators
    • Comparison operators
    • Boolean operators
    • Misc operators
  14. PostgreSQL Interview Questions

  15. Question 10. What Do You Mean By String Interpolation In Elixir?

    Answer :

    String interpolation is a way to construct a new String value. The code is wrap with curly braces and ‘#’ sign.

    Example:

    x = “Apocalypse”   

    y = “X-men #{x}”  

    IO.puts(y)  

  16. Core Java Tutorial

  17. Question 11. What Is The Use Of Crypto Module In Elixir?

    Answer :

    In Elixir, the crypto module is used to decrypt our project applications. It uses hashing function and digital signature.

    Example:

    IO.puts(Base.encode16(:crypto.hash(:sha256, “Elixir”)))

  18. Ubuntu Certified Professional Interview Questions

  19. Question 12. How Can We Define Structs?

    Answer :

    We can define Structs by using defstruct

    iex> defmodule User do  

    …>   defstruct name: “John”, age: 27  

    …> end  

  20. Python Interview Questions

  21. Question 13. What Is Match Operator In Elixir?

    Answer :

    In elixir, = operator is match operator.

    Example:

    iex> x = 1  

    1  

    iex> x  

    1  

  22. Node.js Tutorial