ELM MCQ Questions & Answers
ELM MCQs : This section focuses on "Basics" of ELM. These Multiple Choice Questions (MCQ) should be practiced to improve the ELM skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. Elm is a pure functional programming language that compiles to?
A. Java
B. PHP
C. Python
D. Javascript
View Answer
Ans : D
Explanation: Elm is a pure functional programming language that compiles to JavaScript.
2. Elm is designed specifically for web frontend with the unique feature of no Runtime exceptions.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Elm is designed specifically for web frontend with the unique feature of no Runtime exceptions.
3. Elm was Designed by Evan Czaplicki in?
A. 2011
B. 2012
C. 2013
D. 2014
View Answer
Ans : B
Explanation: Elm is a functional programming language. It was Designed by Evan Czaplicki in 2012.
4. The _________ data type represents numeric values.
A. char
B. bit
C. boolean
D. number
View Answer
Ans : D
Explanation: The number data type represents numeric values.
5. The type number accommodates?
A. fractional values
B. non-fractional values
C. fractional and non-fractional values
D. None of the above
View Answer
Ans : C
Explanation: The type number accommodates both fractional and non-fractional values.
6. The String data type is used to represent a sequence of characters.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, The String data type is used to represent a sequence of characters.The Char data type is used to represent a single character. String values are defined within a double quote " and Char values are enclosed within a single quote '.'
7. _____________ Operators test or define the kind of relationship between two entities.
A. Arithmetic
B. Comparable
C. Logical
D. Relational
View Answer
Ans : D
Explanation: Relational Operators test or define the kind of relationship between two entities. These operators are used to compare two or more values. Relational operators return a Boolean value, i.e. true or false.
8. Which operator returns the inverse of the expression result?
A. xor
B. not
C. or
D. and
View Answer
Ans : B
Explanation: Not : The operator returns the inverse of the expression’s result. For E.g.: !(>5) returns false
9. The ___________ construct evaluates a condition before a block of code is executed.
A. if-else
B. else-if
C. if-then
D. All of the above
View Answer
Ans : C
Explanation: The if…then construct evaluates a condition before a block of code is executed. If the Boolean expression evaluates to true, then the block of code inside the then statement will be executed.
10. ________ are the building blocks of an Elm program.
A. Constant
B. Declare
C. Expection
D. Functions
View Answer
Ans : D
Explanation: Functions are the building blocks of an Elm program. A function is a set of statements to perform a specific task.
Discussion