0% found this document useful (0 votes)
22 views

2-2 Principles of Programming Languages

The document discusses key concepts in programming languages including read-eval-print, quoting, CAR, CDR and CONS operations in Lisp, functional programming with Scheme, finding factorials and greatest common divisors, Horn clauses and resolution in Prolog, encapsulation and dynamic method binding in object-oriented programming, inheritance and multiple inheritance in C++. It asks the reader to explain several core programming language concepts and provide small code examples to demonstrate factorial calculation in Scheme, greatest common divisor calculation in Scheme, and multiple inheritance in C++.

Uploaded by

sathireddyk
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

2-2 Principles of Programming Languages

The document discusses key concepts in programming languages including read-eval-print, quoting, CAR, CDR and CONS operations in Lisp, functional programming with Scheme, finding factorials and greatest common divisors, Horn clauses and resolution in Prolog, encapsulation and dynamic method binding in object-oriented programming, inheritance and multiple inheritance in C++. It asks the reader to explain several core programming language concepts and provide small code examples to demonstrate factorial calculation in Scheme, greatest common divisor calculation in Scheme, and multiple inheritance in C++.

Uploaded by

sathireddyk
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Principles of Programming Languages Branch: 2nd CSE

1. Explain the following: (a) read- eval- print (b) Quoting (c) CAR, CDR, CONS (d) set function 2. (a) Explain the concepts of functional programming. (b) Write a scheme program for finding factorial of a given number. 3. (a) Write a scheme program for finding GCD of two numbers. (b) Explain the concept of term in PROLOG. 4. Explain the following: (a) Horn clause (b) Resolution with examples (c) Unification with examples. 5. 6. 7. 8. What is meant by encapsulation. Explain with an example. Explain dynamic method binding with an example. What is inheritance. Write a C++ program for multiple inheritance. Explain the concepts of object oriented programming.

You might also like