July 16, 2021 in C and CPP
What is an applet? Explain life cycle of an applet.
a) What is an applet? Explain life cycle of an applet.
July 16, 2021 in C and CPP
a) What is an applet? Explain life cycle of an applet.
July 16, 2021 in C and CPP
c) List types of JDBC drivers. Explain any two of them.
July 16, 2021 in C and CPP
b) Explain constructors. Why they should not be declared private?
July 16, 2021 in C and CPP
a) Discuss method overloading and method overriding with suitable example.
July 16, 2021 in C and CPP
c) Briefly explain the three main concepts of Object Oriented Programming Paradigm.
July 16, 2021 in C and CPP
b) Write an applet that draws a circle every time the mouse button is clicked. Set the radius of the circle to 6 pixels.
July 16, 2021 in C and CPP
a) Differentiate between an interface and an abstract class.
July 16, 2021 in C and CPP
A. flush( ) B. java.util C. Unicode
D. clearbuffer( ) E. Graphics F. Java.lang
G. listener H. class variable I. JFrame
J. static K. Object L. Panel
M. Map N. instance variable O. Applets
P. Country Q. Locale R. Dynamic
4.1 Java uses ________ character set.
4.2 StringTokenizer class is available in ________ package.
4.3 A paint( ) method of an applet has a parameter of type ________.
4.4 In java, ________ class is the root of class hierarchy.
4.5 Static variable is also called ________.
4.6 Frame class is the immediate superclass of ________.
4.7 The ________ method helps in clearing the buffer.
4.8 Method overloading is an example of ________ method binding.
4.9 Multimedia applications can be designed in JAVA using ________.
4.10 ________ class of java.util package supports internationalization.
July 16, 2021 in C and CPP
Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.
2.1 The CODE value in an <APPLET> tag must name a class file that is in the same directory as the calling HTML page.
2.2 It is possible to use the File class to list the contents of the current working directory.
2.3 If a frame uses a GridLayout manager and does not contain any panels, then all the
components within the frame are of the same width and height.
2.4 An abstract class can be final also.
2.5 Exceptions can be caught or rethrown to a calling method.
2.6 Subclasses’ methods can access all members/ attributes of the superclass.
2.7 The Vector class provides the capability to implement a growable array of objects.
2.8 In Java, an array can store different types of values.
2.9 In UML, Component structure diagram shows process view of the use case model.
2.10 A parameterized class is actually not a class, it is a template.
July 16, 2021 in C and CPP
1.10 The setBackground( ) method is part of the class ________.
A) Graphics
B) Applet
C) Component
D) Container