[go: up one dir, main page]

0% found this document useful (0 votes)
22 views12 pages

May Jun 2022 Merged

Uploaded by

adityabhise021
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)
22 views12 pages

May Jun 2022 Merged

Uploaded by

adityabhise021
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/ 12

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

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

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

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.
E

2) Figures to the right indicate full marks.


82

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

b) Define String in Java programming. Explain the following operations of


01
02

class string in Java with example.1. To find the length of a string. 2. To


2/2

compare two strings 3. Extraction of character from a string


GP

[6]
6/1

c) Define Constructor. Show the example about overloading of default,


CE
82

8
23
.23

parameterized, and copy constructors. [6]


ic-
16

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

the keyboard? [6]


2/2
GP

b) Explain the Garbage Collection concept in Java Programming with code


6/1

example. [6]
CE
82
.23

c) Explain command line arguments and variable length arguments in Java


with an example. [6]
16
8.2

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

b) Explain the below methods in detail [6]


CE
82

8
23
i) Isalive
.23

ii) Notify ic-


16

tat
8.2

2s

iii) GetPriority
.24

4:5
91

c) List the Features, advantages and limitations of Vue JS [6]


49

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

b) Explain the thread life cycle model in Java. [6]


82
.23

c) Write a short note on React JS and Angular JS. [6]


16
8.2
.24

[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

b) Describe Logical Programming. Enlist its features. Also, list the


6/1

commonly used Logical programming languages. [6]


CE
82

8
23
c) Evaluate the following forms of LISP. [5]
.23

i) (car (cdr ‘(1 2 3 4 5))) ic-


16

tat
8.2

2s

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


.24

4:5

iii) (car (cdr (cdr ‘(1 2 3 4 5 6 7 ED))))


91
49

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

3) Neat diagrams must be drawn whenever necessary.


4) Make suitable assumptions whenever necessary.
E
80

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

c) Define constructor. Which are the types of Constructor used in Java?


GP

Explain with example. [6]


1/0
CE
80

8
23
OR
.23

ic-
Q2) a) Explain following features of java in detail [6]
16

tat
i) Portability
8.2

6s

ii) Architecture Neutral


.24

iii) Distributed
7:5
91
49

0:3

b) Write short note on [6]


30
31

i) final
01
02

ii) finalize ()
7/2
GP
1/0

c) Explain one dimensional and multi - dimensional array used in Java with
CE

suitable examples. [6]


80
.23

Q3) a) What is mean by inheritance? Explain the various types of inheritance


16

used in Java with suitable example. [6]


8.2
.24

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

b) Explain various Exception Handing mechanisms in Java [6]


E
80

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

b) Explain the below methods in detail. [6]


31

i) Isalive
01
02

ii) notify
7/2
GP

iii) getpriority
1/0
CE
80

c) List the Features, advantages, and limitations of Vue JS. [5]

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

b) Explain the thread life cycle model in Java. [6]


7/2
GP
1/0

c) Write a short note on React JS and Angular JS. [5]


CE
80
.23
16
8.2
.24
49

[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

used Logical programming languages. [6]


CE
80

8
23
.23

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


ic-
16

tat
i) (car (cdr’(1 2 3 4 5 )))
8.2

6s

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


.24

7:5

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


91
49

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

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