How To Exam?

a knowledge trading engine...


DOEACC Society 2007 DOEACC A Level A10.2-R3 Introduction to Object Oriented Programming through Java - Question Paper

Thursday, 13 June 2013 08:05Web
B) The return kind
C) The method name
D) None of the above
1.10What will be printed when the subsequent program is compiled and run?
class test {
public static void main(String args[]) {
int i, j, k, l=0;
k = l++;
j = ++k;
i = j++;
System.out.println(i);
}
}
A) 0
B) 1
C) 2
D) 3
A10.2-R3 Page two of five January, 2007
2. every statement beneath is either actual or FALSE. select the most improper one
and ENTER in the “tear-off” sheet attached to the ques. paper, subsequent
instructions therein. (1 x 10)
2.1 The window, Frame and Dialog classes use a BorderLayout as their default layout
manager.
2.2 Only an import statement must appear as the 1st line in a source code file.
2.3 The readLine() method returns null when it has reached the end of a file.
2.4 A for statement can loop infinitely.
2.5 StringBuffer objects are constants.
2.6 A class that is declared without any access modifiers is stated to have public access.
2.7 int and char are the valid data kinds for the expression in a switch statement.
2.8 An interface is a nonfunctional class that can contain constants and method declarations
only.
2.9 An abstract class may be declared as final.
2.10 Applet can not have main method.
3. Match words and phrases in column X with the nearest related meaning/
word(s)/phrase(s) in column Y. Enter your selection in the “tear-off” ans sheet
attached to the ques. paper, subsequent instructions therein. (1 x 10)
X Y
3.1 The Iterator interface is used to step through A. ordered collections of objects.
3.2 Panel is the immediate superclass of B. 0 to 2^16 - 1.
3.3 The range of the short kind is C. the elements of a Collection.
3.4 The Panel and Applet classes use D. to a byte.
3.5 The List interface provides support for E. it blocks on I/O.
3.6 A double value can be cast F. null.
3.7 The default value of an String kind is G. the FlowLayout as their default
layout.
3.8 A thread enters the waiting state when H. objects.
3.9 Wrapped classes are classes that allow
primitive kinds to be accessed as
I. the String[] kind.
3.10 A program's main() method takes an
argument of
J. the Dialog class.
K. -(2^15) to 2^15 – 1.
L. Applet class.
A10.2-R3 Page three of five January, 2007
4. every statement beneath has a blank space to fit 1 of the word(s) or phrase(s) in
the list beneath. Enter your option in the “tear-off” ans sheet attached to the
ques. paper, subsequent instructions therein. (1 x 10)
A. digits B. keyword C. vector
D. =>> operator E. native F. = operator
G. abstract H. + operator I. final
J. set K. class L. HashTable
M. runtime N. transient O. finally
4.1 A(n) ________ variable is a variable that may not be serialized.
4.2 Any ________ may not be used as the 1st character of an identifier but they may be
used after the 1st character of an identifier.
4.3 The ________ class provides the capability to implement a growable array of objects.
4.4 The sizeof operator is not a(n) ________.
4.5 The ________ clause is used to give the capability to execute code, no matter
whether or not an exception is thrown or caught.
4.6 The purpose of the ________ class is to give access to the Java runtime system.
4.7 The ________ is right associative.
4.8 The ________ interface provides methods for accessing the elements of a finite
mathematical set.
4.9 A(n) ________ method is a method whose implementation is deferred to a subclass.
4.10 String can be concatenated with the overloaded ________ operator.
A10.2-R3 Page four of five January, 2007
PART TWO
(Answer any 4 questions)
5.
a) a few of the properties of java make it so attractive from other programming languages.
List those properties and define any two.
b) different modifiers are used in java to declare class, method and variables. 2 modifiers
are final and static. What does it mean that a class or its member is final?
c) Thread is concept in java that provides parallel processing of applications. discuss the
life cycle of Java thread. define every state briefly.
(7+3+5)
6.
a) Using event delegation model (used in java 2), is a mechanism for managing and
controlling events. What is the advantage of the event-delegation model over the earlier
event-inheritance model?
b) different java packages can be obtained on Internet and also can be developed for our
purpose in java. What is a java package and how it is used?
c) Using overloading and overriding concept in java we can implement polymorphism
feature of OOD. What is the difference ranging from methods overloading and overriding in
java? provide example of overriding methods.
(4+4+7)
7.
a) InputStreamReader and OutputStreamWriter are classes of character stream in java.
What is the importance of InputStreamReader and OutputStreamWriter class in java?
b) Create a menu-based GUI application using Swing which opens a JFileChooser box and
allows user to choose an only text file from local hard drives. Display a opted text file
name into JTextArea. Handle the events when window is closed. Use Adapter or inner
class to handle these events.
(3+12)
8.
a) What is the purpose of JDBC driver? discuss the various kinds of JDBC drivers?
b) Write a client server program. The client program will request for a random number. The
server will respond with random number.
(5+10)
9. Write short notes on any 3 of following:
a) Java Virtual Machine
b) discuss 3 main concept of Object Oriented Programming
c) AppletContext and AppletStub interface
d) Exception handling in java
(5x3)
A10.2-R3 Page five of five January, 2007




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2007 DOEACC A Level A10.2-R3 Introduction to Object Oriented Programming through Java - Question Paper