Erlang MCQ Questions & Answers
Erlang MCQs : This section focuses on "Basics" of Erlang. These Multiple Choice Questions (MCQ) should be practiced to improve the Erlang skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. ________ is a general purpose or you might say a functional programming language and runtime environment.
A. Verilog
B. Svn
C. Erlang
D. Solidity
View Answer
Ans : C
Explanation: Erlang is a general purpose or you might say a functional programming language and runtime environment.
2. Erlang was later released as an open source language in year?
A. 1997
B. 1998
C. 1999
D. 2000
View Answer
Ans : B
Explanation: Erlang was later released as an open source language in year 1998.
3. The ______ sign is used to add comments to the program.
A. %
B. *
C. $
D. #
View Answer
Ans : A
Explanation: The % sign is used to add comments to the program.
4. The /0 means that our function start accepts ______ parameters.
A. 1
B. -1
C. 0
D. None of the above
View Answer
Ans : C
Explanation: The /0 means that our function start accepts 0 parameters.
5. Single line comments are identified by using the % symbol at any position in the line.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Single line comments are identified by using the % symbol at any position in the line.
6. Which of the following removes all current variable bindings?
A. b()
B. f()
C. x()
D. z()
View Answer
Ans : B
Explanation: f() : Removes all current variable bindings.
7. h() is used to?
A. Prints the current variable bindings
B. Removes all current variable bindings
C. Removes the binding for a particular variable
D. Prints the history list of all the commands executed in the shell
View Answer
Ans : D
Explanation: h() : Prints the history list of all the commands executed in the shell.
8. In Erlang, there are _______ types of numeric literals.
A. 0
B. 1
C. 2
D. 3
View Answer
Ans : C
Explanation: Number : In Erlang, there are 2 types of numeric literals which are integers and floats.
9. An atom is a literal, a constant with name.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, An atom is a literal, a constant with name. An atom is to be enclosed in single quotes (') if it does not begin with a lower-case letter or if it contains other characters than alphanumeric characters, underscore (_), or @.
10. Atoms should begin with a ?
A. special character
B. lowercase letter
C. uppercase character
D. None of the above
View Answer
Ans : B
Explanation: Atoms should begin with a lowercase letter and can contain lowercase and uppercase characters, digits, underscore (_) and the at sign (@). We can also enclose an atom in single quotes.
Discussion