TIRUPPUR KUMARAN COLLEGE FOR WOMEN
PG & RESEARCH DEPARTMENT OF COMPUTER SCIENCE & DATA ANALYTICS
MODEL EXAMINATION- MARCH’2026
OBJECT ORIENTED PROGRAMMING IN JAVA
CLASS: I –[Link] CS TIME: 3 Hrs
SUB CODE: 23A MARKS: 75
SECTION – A (10*1 = 10)
I. Choose the correct answer:
1. Java communicates with a Web page through a special tag called ----------------.
a) <table> b) <Href> c) <Col> d) <APPLET>
2. Which is Reserved word in the java programming language?
a) Method b) Native c) Subclasses d) Reference
3. Size of int in Java is----------.
a) 16 bit b) 32 bit c) 64 bit d) Depends on execution environment
4. --------- Operator is used to allocate memory for an object.
a) malloc b) alloc c) new d) give
5. The wrapping up of data and methods into single unit (called class) is known as-------.
a) Data hiding b) inheritance c) Encapsulation d) Polymorphism
6. -------are ways of grouping a variety of classes/interfaces together.
a) Thread b) Arrays c) Packages d) Objects
7. Which of these functions is called to display the output of an applet?
a) display() b) paint() c) displayApplet() d) PrintApplet()
8. Which of these keywords is not a part of exception handling?
a) try b) finally c) thrown d) catch
9. What does AWT stands for?
a) All Window Tools b) All Writing Tools c) Abstract Window Toolkit d) Abstract Writing Toolkit
10. What will be the output of the following Java program?
class output
{ public static void main(String args[])
{
StringBuffer c = new StringBuffer("Hello");
[Link]([Link]());
}}
a) 4 b) 5 c) 6 d) 7
SECTION – B (5*5 = 25)
II. Answer all the questions:
11. a) Differentiate between OOP and Procedural Oriented Programming language. (or)
b) What is Type Casting? Why is it required in programming?
12. a) List out the benefits of using Loops in java. (or)
b) Demonstrate the conditions to be satisfied while declaring abstract classes.
13. a) How do you add a class or an interface to the packages.(or) b) What is Wrapper class?
14.a) Explain how to throw our own exceptions.(or)
b) Differentiate the Applet program and Other application program.
15 a) What is Stream class? How are stream classes classified?(or)
b) Differentiate the Byte Stream classes & Character stream classes.
SECTION – C (5*8 = 40)
III. Answer all the questions:
16.a)Discuss on fundamentals of OOPS.(or) b) Elaborate on features of Java.
17.a) Describe the Data types in java with suitable examples.(or)
b) How to create Java Class, Object and Method in Java.
18.a) Elucidate the types of Packages with its importance. (or)
b) Explicate the Vector operations with example program.
19.a) With neat sketch discuss about applet life cycle.(or)
b) Write a java program using graphics to draw and fill shapes.
20.a) How to manage Input /Output files in java. Give an example. (or)
b) Interpret the concept of Random access files.
STAFF – INCHARGE HOD PRINCIPAL