[go: up one dir, main page]

0% found this document useful (0 votes)
57 views3 pages

PPL Question Bank For EndsemExam

Uploaded by

koroxa6604
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)
57 views3 pages

PPL Question Bank For EndsemExam

Uploaded by

koroxa6604
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/ 3

Class & Branch: SE Computer Engineering (2019 Course)

Course & Pattern: Principles of Programming Languages (210255)

Unit 03: Java as Object Oriented Programming Language- Overview.


1. Explain Java’s role in internet. Justify the following features of Java.
I. Secure
II. Architectural Neutral
III. Distributed
2. State the use of following construct in Java.
I. Method Overriding
II. Abstract Class
III. Use of final keywords
3. Define Strings in Java? Explain following operations of class Strings in Java with example.
I. To find the length of string
II. To compare two strings
III. Extraction of a character from string
IV. To Concatenate two strings
4. Summarize different access controls in Java. Explain the situation if you remove static
modifier from the main method.
5. State the use of final keyword in Java.
6. Write short notes on Java Virtual Machine(JVM) with diagram.
7. Describe Primitive data types. List the primitive data types in Java and their respective
storage capacity.
8. What is a Constructor? What are its different types? Demonstrate with suitable example
the different types of constructors used in Java.
9. What is the use of static variables and static methods in Java? Explain with example.
10. Explain garbage collection and nested and inner classes in Java.
11. Explain following in Java.
I. Use of this keyword
II. Variable-length arguments
12. Write one program using multi-dimentional array and using for-each loop.
13. Summarize different access controls in Java. Explain the situation if you remove static
modifier from the main method.
14. What is Polymorphism ? Which type of polymorphism is method overriding ?
Demonstrate method overriding in Java.

Unit IV: Inheritance, Packages and Exception Handling using Java.


1. Describe Exception. Explain with example using keywords try, catch and finally.
2. Elaborate the significance of key word “Super” in Java. Demonstrate with example.
3. What are uncaught exception? State the use of try(), catch(), throws() methods.
4. What is an Exception ? What are the different types of Exceptions ? Illustrate how exceptions are
handled in Java.
5. Illustrate use of methods in PrintStream Class to implement Student Information system.
6. What is meant by Streams in Java ? How does Java manage Input/Output using Streams ?
Differentiate ByteStream, CharacterStream and PredefinedStream ?
7. What are the types of Exceptions? Explain any 3 Buit-in Exceptions with suitable example.
8. Define the following
i.Streams
ii.Byte Streams
iii. Character Streams
iv.Predefined Streams
Enlist the methods of Print Writer class with example.
9. State the difference between character and byte stream in Java, Give any two input and any two
output classes for character streams.
10. Define package and interfaces in Java? Explain it with suitable example.
11. Define what is inheritance. List the advantages of Inheritance. Explain Simple inheritance in java
with example.
12. State the importance of finally blocks. Illustrate the ways finally block differ from finalize()
method.
13. What is Interface in Java? What is the difference between Classes and Interfaces?
14. State with example the use of the following built in exceptions in Java
(1) IndexOutOfBoundsException()
(2) NullPointerException()
(3) ArraylndexOutOfBoundsException()
Unit V: Multithreading in Java
1. Interpret the terms multitasking and multiprocessing and multithreading in Java with example.
2. Elaborate the terms getPriority() and setPriority() methods with example.
3. Explain the uses of isAlive() and Join() methods in Java thread with examples.
4. List the Features, advantages and limitations of Angular JS.
5. Write the JavaScript code to create Login page Form.
6. Compare React JS and Angular J$ and Vue JS.

Unit VI: Logical and Functional Programming


1. Describe Functional Programming, Enlist its features. Also list the commonly used functional
programming languages.
2. Describe Logical Programming. Enlist its features. Also list the commonly used logical
programming languages.
3. Write sequences of CAR's and CDR's that will pick the atom pear our of the following s-
expression .
i ( apple orange pear grapes)
ii ((apple orange) (pear grapès))
iii (((apple)(orange) (pear) (grapes)))
4. Explain the concept of "Structures" in Prolog with example.
5. Write a LISP program to find the factorial of n numbers using recursion concept.
6. Explain the following number predicates using suitable example.
NUMBERP, ZEROP, PLUSP, EVENP, ODDP

7. What is the output of following statements in Lisp?


1. (car (cdr '(1 2 3 4 5)))
2. (car (cdr '(a (b c) d e)))
3. (car (cons 'a (cons 'b nil)))
4. (cdr (cons 'a (cons 'b nil)))
5. (cadr '(4 3 2 1))

Mrs. J. S. Mahajan
Course Co-Ordinator

You might also like