Exam Details
Subject | object oriented programming | |
Paper | ||
Exam / Course | mca | |
Department | ||
Organization | apj abdul kalam technological university | |
Position | ||
Exam Date | April, 2018 | |
City, State | kerala, thiruvananthapuram |
Question Paper
A AC201 Pages: 3
Page 1 of 3
Reg.
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER MCA DEGREE (REGULAR) EXAMINATION, APRIL 2018
Course Code: RLMCA102
Course Name: OBJECT ORIENTED PROGRAMMING
Max. Marks: 60 Duration: 3 Hours
PART A
Answer All Questions, Each Question Carries 3 Marks.
1. Explain the structure of a Java program.
2. Write a class in Java to find the ASCII value of the character interactively read
through keyboard.
3. List and explain any two uses of super keyword in inheritance.
4. Explain the order of constructor invocation in a multilevel hierarchy.
5. Write a class in Java to search a pattern in a string, if found replace it with another
pattern. (Use built in methods)
6. Explain the importance of synchronized keyword.
7. Explain the use of Sequence Input Stream class.
8. Explain the significance of constructors provided by Server Socket class.
PART B
Answer any one question from each module. Each question carries 6 marks
MODULE I
9. a. Explain the features of Object Oriented Programming.
b. Explain why Java is called a robust and secure language.
OR
10. a. Copy Constructors support pass by reference type of parameter passing. Justify the
statement with an example.
b. Explain how instance variable hiding can be prevented in Java.
MODULE II
11. Design an application to store Movie objects film title and a tagline) in an array,
sort the array alphabetically by title and search (binary search) the array to retrieve a
film's tag line, given the title of the film.
A AC201 Pages: 3
Page 2 of 3
OR
12. Design classes Square, Rectangle and Triangle that encapsulates three geometric
shapes. Each class should implement anabstract method void area (int int that
finds the area of three shapes respectively. The variables should be declared in the
super class and initialized through sub class constructors. Develop the main class to
create and test the objects of classes Square, Rectangle and Triangle.
MODULE III
13. a. List and explain Java System packages.
b. Differentiate between String class and String Buffer class.
OR
14. a. A restricted form of multiple inheritance is provided in Java. Justify.
b. List the different string constructors used for creating string objects.
MODULE IV
15. a. Differentiate between checked and unchecked Exceptions.
b. Write a Java program to throw an exception if a searched item is not present in the
list.
OR
16. a. Explain how a thread can be blocked.
b. Predict the output and justify your answer.
import java.io.*;
public class UsingFinally
publicint add(int int
try
return
finally
return
A AC201 Pages: 3
Page 3 of 3
public static void main (String
UsingFinally new UsingFinally();
System.out.println(x.add(5,10));
MODULE V
17. Explain how primitive data types can be read and written to a sequential file, with an
example.
OR
18. Devise a short application that read bytes from the console and display as
characters on the screen.
Explain the merits of using Buffered Reader over File Reader in reading characters
from a file.
MODULE VI
19. a. Define URL. List the components of an URL.
b. Explain the objectives of Datagram Packet class.
OR
20. Explain how an arc can be drawn.
List the attributes of APPLET tag.
Page 1 of 3
Reg.
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER MCA DEGREE (REGULAR) EXAMINATION, APRIL 2018
Course Code: RLMCA102
Course Name: OBJECT ORIENTED PROGRAMMING
Max. Marks: 60 Duration: 3 Hours
PART A
Answer All Questions, Each Question Carries 3 Marks.
1. Explain the structure of a Java program.
2. Write a class in Java to find the ASCII value of the character interactively read
through keyboard.
3. List and explain any two uses of super keyword in inheritance.
4. Explain the order of constructor invocation in a multilevel hierarchy.
5. Write a class in Java to search a pattern in a string, if found replace it with another
pattern. (Use built in methods)
6. Explain the importance of synchronized keyword.
7. Explain the use of Sequence Input Stream class.
8. Explain the significance of constructors provided by Server Socket class.
PART B
Answer any one question from each module. Each question carries 6 marks
MODULE I
9. a. Explain the features of Object Oriented Programming.
b. Explain why Java is called a robust and secure language.
OR
10. a. Copy Constructors support pass by reference type of parameter passing. Justify the
statement with an example.
b. Explain how instance variable hiding can be prevented in Java.
MODULE II
11. Design an application to store Movie objects film title and a tagline) in an array,
sort the array alphabetically by title and search (binary search) the array to retrieve a
film's tag line, given the title of the film.
A AC201 Pages: 3
Page 2 of 3
OR
12. Design classes Square, Rectangle and Triangle that encapsulates three geometric
shapes. Each class should implement anabstract method void area (int int that
finds the area of three shapes respectively. The variables should be declared in the
super class and initialized through sub class constructors. Develop the main class to
create and test the objects of classes Square, Rectangle and Triangle.
MODULE III
13. a. List and explain Java System packages.
b. Differentiate between String class and String Buffer class.
OR
14. a. A restricted form of multiple inheritance is provided in Java. Justify.
b. List the different string constructors used for creating string objects.
MODULE IV
15. a. Differentiate between checked and unchecked Exceptions.
b. Write a Java program to throw an exception if a searched item is not present in the
list.
OR
16. a. Explain how a thread can be blocked.
b. Predict the output and justify your answer.
import java.io.*;
public class UsingFinally
publicint add(int int
try
return
finally
return
A AC201 Pages: 3
Page 3 of 3
public static void main (String
UsingFinally new UsingFinally();
System.out.println(x.add(5,10));
MODULE V
17. Explain how primitive data types can be read and written to a sequential file, with an
example.
OR
18. Devise a short application that read bytes from the console and display as
characters on the screen.
Explain the merits of using Buffered Reader over File Reader in reading characters
from a file.
MODULE VI
19. a. Define URL. List the components of an URL.
b. Explain the objectives of Datagram Packet class.
OR
20. Explain how an arc can be drawn.
List the attributes of APPLET tag.
Other Question Papers
Subjects
- advanced database systems
- advanced java programming
- application development andmaintenance
- applied probability and statistics
- applied statistics lab
- big data technologies
- business intelligence and its applications
- computational science
- computer networks
- computer organization andarchitecture
- data structures
- data structures lab
- database lab
- database managementsystems
- design and analysis of parallel algorithms
- design and analysis ofalgorithms
- digital fundamentals
- discrete mathematics
- elective i
- functional programming
- introduction to machine learning
- mobile application developmentlab
- mobile computing
- object oriented programming
- object oriented programminglab
- operating systems
- operations research
- principles of management
- problem solving and computer programming
- programming lab
- software engineering
- system design lab
- web programming
- web programming lab