Professional Documents
Culture Documents
Nov_Dec_2023 (1)
Nov_Dec_2023 (1)
8
23
P-9114 [Total No. of Pages : 3
ic-
tat
[6179]-239
2s
S.E. (Computer Engineering)
4:5
02 91
PRINCIPLES OF PROGRAMMING LANGUAGES
9:3
0
(2019 Pattern) (Semester - IV) (210255)
30
6/1 13
Time : 2½ Hours] [Max. Marks : 70
0
2/2
.23 GP
8
C
23
3) Neat diagrams must be drawn wherever necessary.
ic-
4) Make suitable assumptions whenever necessary.
16
tat
8.2
2s
Q1) a) Justify the meaning of each characteristic of java in the statement ''java
.24
4:5
is simple, architecture -neutral ,portable, interpreted and robust and
91
49
9:3
secured programming language.'' [6]
30
30
[6]
6/1
8
23
.23
tat
OR
8.2
2s
.24
4:5
Q2) a) Write a program to print the area of a circle by creating a class named
91
'Area' having two methods. First method named as 'setRadius' takes the
49
9:3
radius of the circle as a parameter and the second method, named as get
30
30
'Area' returns the area of the circle. The radius of circle is entered through
01
02
example. [6]
CE
82
.23
P.T.O.
.24
49
Q3) a) Elaborate the significance of the keyword '' super '' in Java. With code
8
23
example of each case. [6]
ic-
b) Explain in brief the interface and package in Java with code examples.[6]
tat
2s
c) Create a custom Exception class. You need to consider two integer
4:5
inputs that the user must supply, You will display the sum of the integers
02 91
9:3
if and only if the sum is less than 100. If it is not less than 100, throw
0
your custom exception [5]
30
6/1 13
OR
0
2/2
.23 GP
Q4) a) Elaborate on the significance of the keyword '' final'' in java. With code
example of each case. [6]
E
82
8
C
23
b) Explain various Exception Handing mechanism in java [6]
ic-
16
tat
c) Write a program to create interface A in a package; in this interface we
8.2
2s
have two methods meth1 and meth2. Implements this interface in another
.24
4:5
class named MyClass by importing your package. [5]
91
49
9:3
30
30
Q5) a) Explain different ways to implement Threads in Java? With code example.
01
02
[6]
2/2
GP
6/1
8
23
i) Isalive
.23
tat
8.2
2s
iii) GetPriority
.24
4:5
91
9:3
30
30
OR
01
02
Q6) a) Explain the uses of is Alive() and join() methods in the java thread with
2/2
GP
examples. [6]
6/1
CE
[6179]-239 2
49
Q7) a) Explain the features of LISP programming. [6]
8
23
b) Explain the following Equality predicates using a suitable example. [6]
ic-
i) EQUAL
tat
2s
ii) EQ
4:5
iii) EQL
02 91
9:3
iv) =
0
30
c) 6/1 13
Explain the following number predicates using a suitable example. [5]
0
i) NUMBERP
2/2
.23 GP
ii) ZEROP
E
iii) PLUSP
82
8
C
23
iv) EVENP
ic-
16
v) ODDP
tat
8.2
2s
OR
.24
4:5
Q8) a) Explain the following functions with suitable examples. [6]
91
49
9:3
i) CAR()
30
30
ii) CDR()
01
02
iii) FIRST()
2/2
GP
8
23
c) Evaluate the following forms of LISP. [5]
.23
tat
8.2
2s
4:5
9:3
30
30
01
02
2/2
GP
6/1
CE
82
.23
16
8.2
.24
[6179]-239 3
49