Model QP OOPS
Model QP OOPS
PART –A
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)
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)