0% found this document useful (0 votes)
17 views2 pages

Unit 6 Question Bank

The document is a question bank for the Principles of Programming Languages course at Dr. D. Y. Patil Institute of Technology, focusing on Logical and Functional Programming. It includes questions on Functional Programming, LISP programming, Logic Programming, Prolog, and comparisons between programming paradigms. The questions cover definitions, features, examples, and specific programming tasks related to these topics.

Uploaded by

gaurav274chavan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Unit 6 Question Bank

The document is a question bank for the Principles of Programming Languages course at Dr. D. Y. Patil Institute of Technology, focusing on Logical and Functional Programming. It includes questions on Functional Programming, LISP programming, Logic Programming, Prolog, and comparisons between programming paradigms. The questions cover definitions, features, examples, and specific programming tasks related to these topics.

Uploaded by

gaurav274chavan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Dr. D. Y.

Patil Institute of Technology, Pimpri, Pune


Department of Computer Engineering
QUESTION BANK
210255: PRINCIPLES OF PROGRAMMING LANGUAGES
Unit – 6 Logical and Functional Programming

Question Description

Describe Functional Programming. Enlist its features. Also list the commonly used functional
1
programming languages

2 Explain the symbol manipulation aspects of LISP programming

3 Compare functional programming with Object Oriented Programming paradigm

4 Explain the features of LISP programming

5 Define a function in LISP and access it with example program

6 Explain the conditional expressions used in LISP with example

7 Demonstrate the expressions used for Iterations in LISP with example

8 Write a LISP program to find the factorial of n numbers using recursion concept
Describe Logical Programming. Enlist its features. Also list the commonly used Logical
9
programming languages.
10 Write short notes of Lambda definitions in LISP
11 Evaluate the following forms of LISP.

i. (car (cdr '(1 2 3 4 5)))


ii. (car (cdr '(a (b c) d e)))
iii. (car (cdr (cdr '(1 2 3 4 5 6 7 8))))

12 Define plist and explain the features and usage in LISP


Describe Functional Programming. Enlist its features. Also list the commonly used
13
functional programming languages
14 Define Logic Programming and explain the features of Prolog

15 Explain the phrases - "Term", "Facts", "Rule", "Goals" used in Prolog with example

16 Explain different operators used in Prolog programming with example


17 Explain the following Equality predicates using suitable example.

i. EQUAL
ii. EQ
iii. EQL
iv. =

18 Demonstrate the use of prolog List with example

19 Compare functional programming with Logic Programming paradigm


20 Explain the following functions with suitable example.

i. CAR()
ii. CDR()
iii. FIRST()
21 Explain the concept of "Structures" in Prolog with example
22 Explain the following number predicates using suitable example.

i. NUMBERP
ii. ZEROP
iii. PLUSP
iv. EVENP
v. ODDP

23 Write sequences of CAR’s and CDR’s that will pick the atom pear our of the following s-
expression:
i. (apple orange pear grapes)
ii. ((apple orange) (pear grapes))
iii. (((apple)(orange) (pear) (grapes)))

You might also like