0% found this document useful (0 votes)
25 views2 pages

Nov Dec 2022-4

The document discusses different programming languages and concepts. It contains 8 questions related to Java, JavaScript, AngularJS, LISP, Prolog, threads and exceptions. The questions cover topics like inheritance, packages, abstract classes, polymorphism, life cycle of threads, thread synchronization, list manipulation, equality predicates and more.

Uploaded by

ELECTRO CLASHING
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Nov Dec 2022-4

The document discusses different programming languages and concepts. It contains 8 questions related to Java, JavaScript, AngularJS, LISP, Prolog, threads and exceptions. The questions cover topics like inheritance, packages, abstract classes, polymorphism, life cycle of threads, thread synchronization, list manipulation, equality predicates and more.

Uploaded by

ELECTRO CLASHING
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

1) Attempt Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.


2) Neat diagrams must be drawn whenever necessary.
E
81

3) Assume suitable data if necessary.

8
C

23
ic-
16

tat
Q1) a) Justify the meaning of each characteristic of Java in the statement “Java
8.2

is simple, architecture neutral portable, interpreted and robust and secured

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

c) Write a program in Java using switch-case statement to perform addition,


1/2
GP

subtraction, Multiplication and Division of given two numbers and print


1/0

the result. [6]


CE
81

8
OR

23
.23

Q2) a) Explain in brief below keywords with example in Java. [6]


ic-
16

tat
i) Final ii) Static iii) This
8.2

3s

b) Define Constructor. List its different types. Demonstrate with suitable


.24

4:1

example the different types of constructors used in Java. [6]


91
49

3:3

c) Write a program which receives n integers. Store the integers in an array.


30
31

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

in Java with suitable Java code. [9]


81

b) Describe Exception. Write any two examples of exception. Explain


.23

keywords try, catch, throw, throws and finally related to exception


16

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

b) Evaluate the following forms of LISP. [5]


01
02

i) (car (cdr '(1 2 3 4 5)))


1/2
GP

ii) (car (cdr '(a(b c)d e)))


1/0

iii) (car (cdr(cdr '(1 2 3 4 5 6 7 8))))


CE
81

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

b) Comparisons between functional programming and logic programming.[5]


1/2
GP

c) Explain the phrases - “Term”, “Facts”, “Rule”, Goals” used in Prolog


1/0

with example. [6]


CE
81
.23


16
8.2
.24

[5925]-264
49

You might also like