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

A10.2-R3: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING THROUGH JAVA
NOTE:
1. There are 2 PARTS in this Module/Paper. PART 1 contains 4 ques.
and PART 2 contains 5 ques..
2. PART 1 is to be answered in the TEAR-OFF ans SHEET only, attached to
the ques. paper, as per the instructions contained therein. PART 1 is NOT to
be answered in the ans book.
3. Maximum time allotted for PART 1 is 1 HOUR. ans book for PART TWO
will be supplied at the table when the ans sheet for PART 1 is returned.
However, candidates, who complete PART 1 earlier than 1 hour, can collect the
ans book for PART 2 immediately after handing over the ans sheet for
PART ONE.
TOTAL TIME: three HOURS TOTAL MARKS: 100
(PART 1 – 40; PART 2 – 60)
PART ONE
(Answer all the questions)
1. every ques. beneath provide a multiple option of answers. select the most
improper 1 and enter in the “tear-off” ans sheet attached to the ques.
paper, subsequent instructions therein. (1 x 10)
1.1 Examine the subsequent code:
public class LocalTest {
public static void main(String args[]) {
int i;
System.out.println(“int i = ” + i);
i=20;
}
}I
f you try to compile and run this class, what will happen?
A) It will compile, but will produce an interpreter fault when executed.
B) It will compile and output ‘0’ to the screen.
C) It will not compile and will provide a compile fault.
D) None of the above.
1.2 Which looping construct are you guaranteed to enter?
A) while
B) do-while
C) for
D) none of the above
1.3 Which class is base class for all Exception?
A) String
B) fault
C) Throwable
D) RuntimeException
A10.2-R3 Page one of five January, 2007
1.4 What will be the output of this code fragment?
StringBuffer b=new StringBuffer(“abcdefg”);
b.delete(3,6);
b.append(“hij”);
System.out.println(b.toString());
A) abcghij
B) abcdefghij
C) abfghij
D) abchij
1.5 Which of the subsequent classes directly implement the Set interface?
A) Vector
B) LinkedList
C) HashSet
D) HashTable
1.6 What value is returned from calling Math.sqrt(0.0)?
A) 0.0
B) NaN
C) ArithmeticException is thrown
D) A compiler fault is generated by calling Math.sqrt(0.0)
1.7 Which class is used for character stream in java.io?
A) FileOutputStream
B) ByteArrayOutputStream
C) FileWriter
D) PrintStream
1.8 A top level class may have only the subsequent access modifier.
A) package
B) friendly
C) private
D) public
1.9 Which of the subsequent must match exactly for overloaded methods to compile correctly?
A) The parameter list



( 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