0% found this document useful (0 votes)
16 views1 page

Model QP OOPS

The document is a model exam for Object Oriented Programming with Java. It contains questions in two parts - Part A contains 10 short questions worth 3 marks each on topics like polymorphism, typecasting, if-else statements, vectors, this keyword, interfaces, thread lifecycle, try-catch syntax, applet tags in HTML, and drawing basic shapes in applets. Part B contains 5 long form questions worth 14 marks each on topics like OOP concepts, Vector methods, classes and inheritance, packages and method overriding, threads, exceptions, applets.

Uploaded by

Dr.T.POONGOTHAI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Model QP OOPS

The document is a model exam for Object Oriented Programming with Java. It contains questions in two parts - Part A contains 10 short questions worth 3 marks each on topics like polymorphism, typecasting, if-else statements, vectors, this keyword, interfaces, thread lifecycle, try-catch syntax, applet tags in HTML, and drawing basic shapes in applets. Part B contains 5 long form questions worth 14 marks each on topics like OOP concepts, Vector methods, classes and inheritance, packages and method overriding, threads, exceptions, applets.

Uploaded by

Dr.T.POONGOTHAI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

GOVERNMENT POLYTECHNIC COLLEGE , KADATHUR

DEPARTMENT OF COMPUTER ENGINEERING


MODEL EXAM 2022-23[II YEAR/ IV SEM]

SUB : OBJECT ORIENTED PROGRAMMING WITH JAVA MARKS : 100


DATE : 12.04.23 DURATION : 3 Hrs.

PART –A

ANSWER ALL THE QUESTIONS. (10*3=30)

1. Define polymorphism.
2. What is typecasting? List its types.
3. Explain about if-else statement.
4. Define vector and explain how vectors are created with size.
5. Write the use of this keyword.
6. Write short notes on Interface.
7. Draw the lifecycle of thread?
8. Write the syntax of try and catch.
9. Explain applet tag in HTML.
10. Write the applet code for drawing basic shapes.

PART-B
ANSWER THE FOLLOWING QUESTIONS. (5*14=70)

17. (a) Explain the basic concept of OOPS.(14)


(or)
(b) (i) Explain JDK and JVM.(7)
(ii) Explain the steps involved in creating and executing a Java program.(7)

18. (a) Explain in detail about Vector methods.(14)


(or)
(b) (i) Explain about else-if ladder statement.(7)
(ii) Describe about for loop with sample program.(7)

19. (a) (i) Define class. Explain it with syntax and example.(7)
(ii) Explain about multilevel Inheritance.(7)
(or)
(b) (i) Explain how will you create and access a package.(7)
(ii) Briefly explain about Method Overriding.(7)

20. (a) How will you define and run a thread using thread class? Explain with example.(14)
(or)
(b) (i) Define exception. Explain about exception handling with an example program.(7)
(ii) Describe about Byte Stream class.(7).
21. (a) Explain how an apple is created and executed with example. (14)
(or)
(b) (i) Write short notes on MouseEvent listeners. (7)
(ii) Write an applet program to draw and fill basic shapes.(7)

You might also like