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

CEGP013091: 49.248.216.238 28/05/2024 13:36:05 Static-238

This document is an examination paper for the Principles of Programming Languages course, containing a total of 8 questions. Candidates are instructed to attempt specific pairs of questions and are provided with guidelines for answering. The questions cover various programming concepts, including Java, inheritance, exception handling, multithreading, and LISP.

Uploaded by

yuktageete2824
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)
10 views2 pages

CEGP013091: 49.248.216.238 28/05/2024 13:36:05 Static-238

This document is an examination paper for the Principles of Programming Languages course, containing a total of 8 questions. Candidates are instructed to attempt specific pairs of questions and are provided with guidelines for answering. The questions cover various programming concepts, including Java, inheritance, exception handling, multithreading, and LISP.

Uploaded by

yuktageete2824
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
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

2) Figures to the right indicate full marks.


3) Neat diagrams should be drawn wherever necessary.
E
82

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

java with example. [9]


01
02

i) To find length of string


5/2
GP

ii) To compare strings


8/0

iii) Extraction of characters from string


CE
82

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

parameterized and copy constructor? [8]


91
49

3:3

b) What do you mean by method overloading? Demonstrate through a


30
41

program in Java how method overloading is used to add two integers


and three integers respectively. [9]
01
02
5/2
GP
8/0

Q3) a) What is inheritance? What are advantages of using inheritance? Show by


CE
82

example the simple inheritance in Java? [9]


.23

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

b) Write a JavaScript program to develop a simple web application? [9]


E
82

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

Q7) a) What is recursion? Write a lisp function to calculate power of a number


01
02

using recursion and iteration. [9]


5/2
GP

b) Explain with example how to use structures in prolog? [9]


8/0
CE
82

8
OR

23
.23

Q8) a) What is predicate in LISP? Explain any 5 predicates with example. [9]ic-
16

tat
8.2

5s

b) What is clause in prolog? Explain types of clauses with example. [9]


.24

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

You might also like