Principles of Programming Languages-Engineering-Pune University-May2019
S.E. (Computer Engg.) (Second Semester)
PRINCIPLES OF PROGRAMMING LANGUAGES
Time: Two Hours Maximum Marks : 50
N.B.:— (i) All questions are compulsory.
(ii) Figures to the right indicate full marks.
Q1a.What is the difference between Applets & Application programs? Draw & explain the lifecycle of the applet with examples. 
b.What is the types of exceptions? Explain any 3 Built-in-Exceptions with suitable examples.
Q2a.Define the following:- 
ii. Byte Streams
iii. Character Streams
iv. Predefined Streams
Enlist the methods of Print. Writer class with example.
b.What are uncaught Exceptions?State the use of try(),catch(),throw() methods. 
Q3a.Define the term SDLC. What are the different phases in SDLC? Describe the Waterfall model in detail with a diagram. 
b.Differentiate between static&dynamic Type Checking. Explain the Cartesian product model with a suitable example. 
Q4a.What is mean by Syntax & Semantics? Explain syntax & lexical rules of programming language with example.
b.What is built-in &Primitive data types?State the primitive data types of C++ &Java. 
Q5a.State the use of the following constructs in Java 
i. Method Overriding
ii. Abstract class
iii. Use of final keyword
b.What is mean by Packages & Interfaces in Java? Explain with a suitable example. 
Q6a.What is Inheritance? How multilevel inheritance is achieved in Java? Explain with a suitable example. 
b.What is mean by recursion? Write a java program to find out the factorial of a given number.
Q7a.What is mean by modularity? Which concepts are supported to achieve modularity in any programming language? 
b.What are Strings in Java? Explain the following operations of class Strings in Java with an example. 
i.To find the length of the string.
ii. To compare two strings.
iii. Extraction of a character from string.
Q8a.How to create a generic module in the programming language? Explain the term Template with example in C++ language. 
b.Explain Java’s role in the internet. Justify the following features of Java 
ii. Architecture Natural