Total No. of Questions : 8] SEAT No.
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
1) Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
2) Neat diagrams must be drawn wherever necessary.
E
80
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
Q2) a) Define String in Java. Explain following operations of class strings in
01
02
Java with example. [6]
7/2
GP
i) To find length of the string
4/0
ii) To compare two strings
CE
80
8
iii) To extract a character from a string
23
.23
iv) To concatenate two strings
ic-
16
b) Explain Java’s role in Internet. Justify the following features of Java. [6]
tat
8.2
i) Secure
4s
ii) Architectural Neutral
.24
0:3
91
iii) Distributed.
49
8:3
c) Summarize different access controls in Java. Explain the situation if you
30
20
remove static modifier from the main method. [6]
01
02
7/2
GP
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
b) Describe Exception. Explain keywords try, catch, throw, throws and
.23
finally related to exception handling. [6]
16
c) Define package and interfaces in Java? Explain it with suitable example.[5]
8.2
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
Q6) a) Compare React JS and Angular JS and Vue JS. [6]
80
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
commonly used functional programming languages. [6]
20
b) Write sequences of CAR’s and CDR’s that will pick the atom pear our
01
02
of the following s-expression : [6]
7/2
GP
i) (apple orange pear grapes)
4/0
ii) ((apple orange) (pear grapes))
CE
iii) (((apple)(orange) (pear) (grapes)))
80
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
used Logical programming languages. [6]
.24
0:3
b) Write a LISP program to find the factorial of n numbers using recursion
91
49
concept. [6]
8:3
30
c) Explain the following number predicates using suitable example. [5]
20
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