May Jun 2022 Merged
May Jun 2022 Merged
8
23
P651 [Total No. of Pages : 2
ic-
[5869]-280
tat
S.E. (Computer Engineering)
4s
PRINCIPLES OF PROGRAMMING LANGUAGES
0:3
02 91
(2019 Pattern) (Semester - IV) (210255)
8:3
0
20
Time : 2½ Hours] 4/0 13 [Max. Marks : 70
0
Instructions to the candidates:
7/2
.23 GP
8
3) Assume suitable data if necessary.
C
23
ic-
16
tat
Q1) a) Describe primitive data types. List the primitive data types in Java and
8.2
4s
their respective storage capacity. [6]
.24
0:3
b) Write short notes on Java Virtual Machine(JVM) with diagram. [6]
91
49
8:3
c) State the uses of the final keyword in Java? [6]
30
OR
20
8
iii) To extract a character from a string
23
.23
b) Explain Java’s role in Internet. Justify the following features of Java. [6]
tat
8.2
i) Secure
4s
0:3
91
iii) Distributed.
49
8:3
Q3) a) State the difference between character and byte stream in Java. Give any
4/0
two input and any two output classes for character streams. [6]
CE
80
OR
.24
[5869]-280 P.T.O.
49
1
Q4) a) Define is inheritance. List the advantages of Inheritance. Explain Simple
8
23
inheritance in java with example. [6]
ic-
b) Elaborate the significance of key word “Super” in Java. Demonstrate
tat
with example for Super keyword in Java constructor. [6]
4s
c) State the importance of finally blocks. Illustrate the ways finally block
0:3
differ from finalize() method. [5]
02 91
8:3
Q5) a) Interpret the terms multitasking and multiprocessing and multithreading
0
20
4/0 13
in Java with example. [6]
b) List the Features, advantages and limitations of Angular JS. [6]
0
7/2
c) Write the JavaScript code to create Login page Form. [6]
.23 GP
OR
E
8
C
23
b) Elaborate the terms getPriority() and setPriority() methods with example.
ic-
[6]
16
tat
c) Explain the uses of isAlive() and Join() methods in Java thread with
8.2
4s
example. [6]
.24
0:3
91
49
Q7) a) Describe Functional Programming. Enlist its features. Also list the
8:3
30
b) Write sequences of CAR’s and CDR’s that will pick the atom pear our
01
02
8
23
c) Explain the concept of “Structures” in Prolog with example. [5]
.23
OR
ic-
16
tat
Q8) a) Describe Logical Programming. Enlist its features. Also list the commonly
8.2
4s
0:3
concept. [6]
8:3
30
i) NUMBERP
01
02
ii) ZEROP
7/2
GP
iii) PLUSP
4/0
iv) EVENP
CE
80
v) ODDP
.23
16
8.2
.24
[5869]-280
49
2
Total No. of Questions : 8] SEAT No. :
8
23
PA-1241 [Total No. of Pages : 2
ic-
[5925]-264
tat
S.E. (Computer Engineering)
3s
PRINCIPLES OF PROGRAMMING LANGUAGES
4:1
02 91
(2019 Pattern) (Semester - IV) (210255)
3:3
0
31
Time : 2½ Hours] 1/0 13 [Max. Marks : 70
0
Instructions to the candidates:
1/2
.23 GP
8
C
23
ic-
16
tat
Q1) a) Justify the meaning of each characteristic of Java in the statement “Java
8.2
3s
programming language”. [6]
.24
4:1
91
b) Write a program in Java to perform the addition of two matrices
49
3:3
(multidimensional arrays) and set the diagonal elements of resultant matrix
30
31
to 0. [6]
01
02
8
OR
23
.23
tat
i) Final ii) Static iii) This
8.2
3s
4:1
3:3
Program outputs the number of odd and even numbers present in this
array. [6]
01
02
1/2
GP
1/0
Q3) a) Define Inheritance and list the advantages. Explain the types of Inheritance
CE
handling. [8]
8.2
OR
.24
49
P.T.O.
Q4) a) Demonstrate the methods of creating packages and importing them in
8
23
other java programs with example. Write about the access protection in
packages. [9]
ic-
tat
b) Explain abstract classes and polymorphism in Java with appropriate java
3s
codes. [8]
4:1
02 91
3:3
Q5) a) Write short notes on React JS. Enlist and explain the feature of it. [6]
0
31
b) Explain life cycle of Thread model in Java.
1/0 13 [6]
c) State the term thread synchronization. Explain how to achieve thread
0
1/2
synchronization in Java. [6]
.23 GP
OR
E
81
8
Q6) a) List the features of JavaScript and write a JavaScript program to display
C
23
Welcome message. [6]
ic-
16
b) Write short note angular JS. List its advantages and disadvantages. [6]
tat
8.2
3s
c) Differentiate Multiprocessing and Multi-threading. [6]
.24
4:1
91
49
3:3
Q7) a) Write a program to find the factorial of a given number using LISP. [6]
30
31
8
c) Explain the basic list manipulation in prolog. [6]
23
.23
ic-
OR
16
tat
Q8) a) Explain the following Equality predicates using suitable example. [6]
8.2
3s
i) EQUAL
.24
4:1
91
ii) EQ
49
3:3
30
iii) EQL
31
iv) =
01
02
16
8.2
.24
[5925]-264
49
2
Total No. of Questions : 8] SEAT No. :
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
Total No. of Questions : 8] SEAT No. :
8
23
P1535 [Total No. of Pages : 3
ic-
[6002]-164
tat
S.E. ( Computer Engineering)
6s
PRINCIPLES OF PROGRAMMING LANGUAGES
7:5
(2019 Pattern) (Semester - IV) (210255)
02 91
0:3
Time : 2½ Hours] [Max. Marks : 70
0
31
1/0 13
Instructions to the candidates:
1) Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
0
2) Figures to the right indicate full marks.
7/2
.23 GP
8
C
23
Q1) a) Explain following features of java in detail [6]
ic-
i) Security
16
tat
ii) Platform Independence
8.2
6s
iii) Object - oriented
.24
7:5
91
b) Write short note on [6]
49
0:3
i) Garbage collector
30
31
ii) this
01
02
7/2
8
23
OR
.23
ic-
Q2) a) Explain following features of java in detail [6]
16
tat
i) Portability
8.2
6s
iii) Distributed
7:5
91
49
0:3
i) final
01
02
ii) finalize ()
7/2
GP
1/0
c) Explain one dimensional and multi - dimensional array used in Java with
CE
P.T.O.
49
[6002]-164 1
b) Explain following keywords of Java in detail [6]
8
23
i) try
ic-
ii) catch
tat
iii) finally
6s
7:5
c) Define package used in Java. Explain syntax, use, CLASSPATH, hierarchy
02 91
0:3
of package with example. [6]
0
31
1/0 13 OR
0
Q4) a) Elaborate Method overriding and dynamic method dispatch in Java. [6]
7/2
.23 GP
8
C
23
c) What is the concept of stream, Explain byte stream and character stream
ic-
in detail. [6]
16
tat
8.2
6s
Q5) a) Explain different ways to implement Threads in Java? With code example.
.24
7:5
[6]
91
49
0:3
30
i) Isalive
01
02
ii) notify
7/2
GP
iii) getpriority
1/0
CE
80
8
23
.23
ic-
16
tat
8.2
6s
OR
.24
7:5
91
49
0:3
Q6) a) Explain the uses of is Alive () and join () methods in the java thread with
30
examples. [6]
31
01
02
[6002]-164 2
8
Q7) a) Explain the features of LISP programming. [6]
23
ic-
b) Explain the following Equality predicates using a suitable example. [6]
tat
6s
i) EQUAL
7:5
ii) EQ
02 91
0:3
iii) EQL
0
iv) =
31
1/0 13
0
c) Explain the following number predicates using a suitable example. [5]
7/2
.23 GP
i) NUMBERP
ii) ZEROP
E
80
8
iii) PLUSP
C
23
iv) EVENP
ic-
v) ODDP
16
tat
8.2
6s
OR
.24
7:5
Q8) a) Explain the following functions with suitable examples. [6]
91
49
0:3
i) CAR()
30
31
ii) CDR()
iii) FIRST()
01
02
7/2
GP
b) Describe Logical Programming. Enlist its features. Also, list the commonly
1/0
8
23
.23
tat
i) (car (cdr’(1 2 3 4 5 )))
8.2
6s
7:5
0:3
30
31
01
02
… … …
7/2
GP
1/0
CE
80
.23
16
8.2
.24
49
[6002]-164 3
Total No. of Questions : 8] SEAT No. :
8
23
PB3632 [6261]-39 [Total No. of Pages :2
ic-
tat
S.E. (Computer Engineering)
5s
PRINCIPLES OF PROGRAMMING LANGUAGES
6:0
02 91
(2019 Pattern) (Semester- IV) (210255)
3:3
0
Time : 2½ Hours ] [Max. Marks : 70
41
8/0 13
Instructions to the candidates:
0
1) Attempt Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
5/2
.23 GP
8
C
23
4) Assume suitable data if necessary.
ic-
16
tat
8.2
5s
Q1) a) Explain why Java is secured, portable and Dynamic? Which of the concept
.24
6:0
in Java ensures these? [8]
91
49
3:3
b) What are strings in java? Explain following operations of class strings in
30
41
8
23
iv) To search a substring
.23
ic-
16
OR
tat
8.2
5s
Q2) a) What is constructor? Show with exmaple the use and overloading default,
.24
6:0
3:3
b) Explain with example how the access protection is provided for packages
16
in java? [9]
8.2
OR
.24
49
P.T.O.
Q4) a) What are uncaught exceptions? Illustrate with example the use of try( ),
8
23
catch( ) and throw( ) methods in exception handling? [9]
ic-
tat
b) Differentiate between character streams and byte streams with examples.
5s
[9]
6:0
02 91
3:3
0
41
Q5) a) Differentiate between process and thread. What are various stages of
8/0 13
thread lifecycle? [8]
0
5/2
.23 GP
8
OR
C
23
ic-
Q6) a) Explain is Alive( ) and join( ) methods in multithreading. [8]
16
tat
8.2
5s
b) Explain features of AngularJS and ReactJS? [9]
.24
6:0
91
49
3:3
30
41
8
OR
23
.23
Q8) a) What is predicate in LISP? Explain any 5 predicates with example. [9]ic-
16
tat
8.2
5s
6:0
91
49
3:3
30
41
01
02
5/2
GP
8/0
CE
82
.23
16
8.2
.24
49
[6261]-39 2