Functional Programming MCQ Questions & Answers
Functional Programming MCQs : This section focuses on "Basics" of Functional Programming. These Multiple Choice Questions (MCQ) should be practiced to improve the Functional Programming skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. ___________ languages are specially designed to handle symbolic computation and list processing applications.
A. XP programming
B. Embedded programming
C. Functional programming
D. None of the above
View Answer
Ans : C
Explanation: Functional programming languages are specially designed to handle symbolic computation and list processing applications.
2. Which of the following are the popular functional programming languages?
A. Lisp
B. Python
C. Erlang
D. All of the above
View Answer
Ans : D
Explanation: Functional programming is based on mathematical functions. Some of the popular functional programming languages include: Lisp, Python, Erlang, Haskell, Clojure, etc.
3. Functional programming languages are categorized into _________ groups.
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : B
Explanation: Functional programming languages are categorized into two groups : Pure Functional Languages and Impure Functional Languages.
4. Functional programming supports higher-order functions and lazy evaluation features.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Functional programming supports higher-order functions and lazy evaluation features.
5. Which of the following are advantages of Functional Programming?
A. Bugs-Free Code
B. Efficient Parallel Programming
C. Efficiency
D. All of the above
View Answer
Ans : D
Explanation: All of the above are advantages of Functional Programming.
6. A ________ is similar to function prototype in which number of parameters, datatype of parameters & order of appearance should be in similar order.
A. function prototype
B. function signature
C. control function
D. flow function
View Answer
Ans : B
Explanation: A function signature is similar to function prototype in which number of parameters, datatype of parameters & order of appearance should be in similar order.
7. ________ is possible when a derived class function has the same name and signature as its base class.
A. Function overriding
B. Function overloading
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: Function overriding is possible when a derived class function has the same name and signature as its base class.
8. Functions are of ______ types.
A. 0
B. 1
C. 2
D. 3
View Answer
Ans : C
Explanation: Functions are of two types : Predefined functions and User-defined functions
9. Functional Programming Uses Immutable data
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Functional Programming Uses Immutable data
10. In Call by Value method, the original value ________ be changed.
A. can
B. cannot
C. depends on function
D. depends on language
View Answer
Ans : B
Explanation: In Call by Value method, theĀ original value cannot be changed.
Discussion