PL Course File
PL Course File
COURSE FILE
BRANCH: CSE
SESSION: 2009-2010
LECTURE PLAN
OBJECTIVE
SHORT QUESTIONS
LONG QUESTIONS
ASSIGNMENTS
Text Book:
• Programming languages Design & implementation by T.W .Pratt, 1996, Prentice Hall Pub.
• Programming Languages – Principles and Paradigms by Allen Tucker & Robert Noonan,
2002, TMH,
Reference Books:
• Fundamentals of Programming languages by Ellis Horowitz, 1984, Galgotia publications
(Springer Verlag),
• Programming languages concepts by C. Ghezzi, 1989, Wiley Publications.
• Programming Languages – Principles and Paradigms Allen Tucker, Robert Noonan 2002,
T.M.H.
Note: Eight questions will be set in all by the examiners taking at least two questions from each
unit .Students will be required to attempt five questions in all at least one from each unit
MIET LECTURE PLAN
DEPARTMENT: CSE & IT
SUBJECT: Programming BRANCH:CSE THEORY MARKS:100
Language
SUBJECT CODE: CSE 204E YEAR/SEMESTER:2nd year/4th sem
Programming languages can be used to create programs that control the behavior
of a machine, to express algorithms precisely, or as a mode of human
communication.
Unit 1
Unit 2
1. Discuss SDT
2. What is the difference between array and record?
3. Discuss variant record.
4. What are files?
5. What is the role of pointer in any language?
6. Differentiate record and sets.
7. Define associative arrays.
8. What are main purposes of declaration?
9. What are various types of data structure?
10. Define class. How is it different from structure?
11. Differentiate abstraction and encapsulation.
12. What are different data types?
13. Explain generic subprograms.
14. Explain abstract data types.
15. Explain information hiding.
Unit 3
Unit 4
1. What is the need for studying a variety of different programming languages? Also discuss the
features of a good programming language.
2. Differentiate translator, compiler and interpreters.
3. (a) What is the purpose of declaration statement?
(b) Discuss the implementation of enumerated data-types.
4. (a) What is the effect of type conversion on run time storage representation of the data object?
(b) Discuss the specification of Boolean data types.
5. (a) Describe the brief History of Programming Languages.
(b) Discuss type checking and type conversions.
(c) Explain enumerations.
6. Write short notes on the following:-
(a) Formal method of describing syntax
(b) Compilers and Interpreters.
7. Explain translators, compilers and interpreters.
8. Explain Syntax and Sementics in detail.
UNIT-2
1. Compare and contrast the following parameter transmission in terms of execution efficiency and
power to produce side effects:
a. Call by Value
b. Call by Value-Result
c. Call by Reference
2. Write short notes on following:-
a. Sequence control within statement
b. Synchronization through semaphores
3. What do you understand by sequence control?
4. Discuss sequence control using structured control statements.
5. What are the disadvantages of structured control statements?
6. Write short notes on following:-
a. Sequence control within statement
b. Synchronization through semaphores.
7. Explain local data and local referencing environment.
8. Discuss exception handlers.
9. What do you mean by shared data?
10. Explain parameter and parameter transmission schemes.
UNIT-4
Assignment 1
Assignment 2
11. What do you mean by structured data objects and data types?
12. What are subprograms and programmer defined data types?
13. Write short notes on following:
a. Declaration and type checking of data structure
b. Type definitions
c. Generic subprograms
d. Operations on data structures.
Assignment 3
1. Compare and contrast the following parameter transmission in terms of execution efficiency and
power to produce side effects:
a. Call by Value
b. Call by Value-Result
c. Call by Reference
2. Write short notes on following:-
a. Sequence control within statement
b. Synchronization through semaphores
3. What do you understand by sequence control? Discuss sequence control using structured control
statements. What are the disadvantages of structured control statements?
Assignment 4
PAPER-1
UNIT 1
1. (a) What is the need for studying a variety of different programming languages? Also discuss the
features of a good programming language. (10)
(b) Differentiate translator, compiler and interpreters. (10)
2. (a) What is the purpose of declaration statement? (5)
(b) Discuss the implementation of enumerated data-types. (5)
(c) What is the effect of type conversion on run time storage representation of the data object?
(5)
(d) Discuss the specification of Boolean data types. (5)
UNIT 2
3. (a) What is the vector data structure? What are the attributes of a vector? What operations are
specified on vectors?
Discuss the implementation of vectors in detail. (15)
(b) Discuss the implementation of record. (5)
4. Write short notes on following:
a. Declaration and type checking of data structure
b. Type definitions
c. Generic subprograms
d. Operations on data structures. (5x4=20)
UNIT 3
5. Compare and contrast the following parameter transmission in terms of execution efficiency and
power to produce side effects:
a. Call by Value
b. Call by Value-Result
c. Call by Reference (20)
6. What do you understand by sequence control? Discuss sequence control using structured control
statements. What are the disadvantages of structured control statements? (20)
UNIT 4
7. Discuss heap storage management in detail. Also tell about variable and fixed size elements.
(20)
8. Write short notes on following:
a. Procedural and non-procedural Programming Languages
b. Functional and object-oriented Programming languages
c. Static Storage Management
d. Major run time elements requiring storage. (5x4=20)
PAPER-2
UNIT 1
UNIT 2
3. (a) What is meant by declaration and type checking of Data Structure? Explain (12)
(b) Explain programmer defined data objects. (8)
4. (a) Discuss generic subprograms. (8)
(b) Explain abstraction, encapsulation and information hiding. (12)
UNIT 3
UNIT 4