Discussion
Match of the following is :
| (1) C | (M) Imperative |
| (2) Java | (N) Functional |
| (3) Lisp | (O) Object oriented |
| (4) Prolog | (P) Constraint based |
Answer: A
The correct match is 1 - M, 2 - O, 3 - N, 4 - P.
- C is an imperative (procedural) language: programs are sequences of statements that change state.
- Java is object oriented: everything is organised in classes and objects.
- Lisp is the classic functional language, built on function application and lists.
- Prolog is a logic language in which a program states facts and rules as constraints, and execution searches for values that satisfy them.
The other options call Java constraint based, Lisp object oriented or Prolog functional, which mismatch these well-known paradigms.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development