12 votes 12 votes Match the programming paradigms and languages given in the following table. Paradigms Languages (I) Imperative (a) Prolog (II) Object Oriented (b) Lisp (III) Functional (c) C, Fortran 77, Pascal (IV) Logic (d) C++, Smalltalk, Java I-c, II-d, III-b, IV-a I-a, II-d, III-c, IV-b I-d, II-c, III-b, IV-a I-c, II-d, III-a, IV-b Programming in C gateit-2008 programming programming-paradigms easy out-of-syllabus-now + – Ishrat Jahan asked Oct 27, 2014 edited Jul 21, 2017 by Bikram Ishrat Jahan 5.6k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Chhotu commented Oct 26, 2017 i edited by Chhotu Oct 26, 2017 reply Follow Share One more question related to this concept is https://gateoverflow.in/1084/gate2004-90. Functional Programming —> https://www.lynda.com/JavaScript-tutorials/What-functional-programming/585272/634532-4.html https://www.youtube.com/watch?v=kJuJU-7_utA Functional programming can not change their input.(Immutability) So they are side effect free. In computer science, a function or expression is said to have a side effect if it modifies some state outside its scope or has an observable interaction with its calling functions or the outside world besides returning a value. Adv. of functional prog. -> https://www.youtube.com/watch?v=v5vMmrIEqg8 Examples —> Lisp Imperative programming is a programming paradigm that uses statements that change a program's state. The term is often used in contrast to declarative programming, which focuses on what the program should accomplish without specifying how the program should achieve the result. The earliest imperative languages were the machine languages of the original computers. The 1980s saw a rapid growth in interest in object-oriented programming. These languages were imperative in style, but added features to support objects. List of Imperative language is mentioned on - https://www.computerhope.com/jargon/i/imp-programming.htm Logic programming is a type of programming paradigm which is largely based on formal logic. Any program written in a logic programming language is a set of sentences in logical form, expressing facts and rules about some problem domain. Major logic programming language families include Prolog, Answer set programming (ASP) and Datalog. In all of these languages, rules are written in the form of clauses: H :- B1, …, Bn. and are read declaratively as logical implications: H if B1 and … and Bn. Ex. ->Prolog (List of Logic language is mentioned on - https://www.computerhope.com/jargon/l/logic-programming.htm) Declarative programming is a programming paradigm—a style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow. Common declarative languages include those of database query languages (e.g., SQL, XQuery), regular expressions, logic programming, functional programming, and configuration management systems. PS: List of programming languages by type —> https://en.wikipedia.org/wiki/List_of_programming_languages_by_type 3 votes 3 votes Chhotu commented Oct 26, 2017 reply Follow Share @Arjun Sir, I am unable to add proper comment it is hiding some of the text added. Please check. 0 votes 0 votes Please log in or register to add a comment.
Best answer 23 votes 23 votes A is correct. Lisp is a pure functional language and Prolog is a logic language. Other languages are well known. Arjun answered Oct 28, 2014 Arjun comment Share Follow See all 4 Comments See all 4 4 Comments reply ravi_ssj4 commented Aug 19, 2016 reply Follow Share how r we supposed to know about these languages since they are not in syllabus ? Can these types of questions still come in the current gate exams ? 0 votes 0 votes Arjun commented Aug 19, 2016 reply Follow Share I suppose no. But I'm not 100%. We had this in our B.Tech. syllabus but AFAIK this is out of GATE syllabus now. 8 votes 8 votes ravi_ssj4 commented Aug 21, 2016 reply Follow Share ok sir, Thankyou :) 0 votes 0 votes Rohan Mundhey commented Sep 27, 2016 reply Follow Share AFAIK : as far as i know ;-) 11 votes 11 votes Please log in or register to add a comment.
4 votes 4 votes Solution : A) I-c, II-d, III-b, IV-a Paradigms Languages (I) Imperative (c) C, Fortran 77, Pascal (II) Object Oriented (d) C++, Smalltalk, Java (III) Functional (b) Lisp (IV) Logic (a) Prolog Proof of correctness : (Check for "Paradigm" of any programming language) https://en.wikipedia.org/wiki/Smalltalk https://en.wikipedia.org/wiki/Lisp_(programming_language) https://en.wikipedia.org/wiki/Prolog SiddharthMahapatra answered Jul 21, 2017 edited Jan 10, 2018 by SiddharthMahapatra SiddharthMahapatra comment Share Follow See all 0 reply Please log in or register to add a comment.