How To Exam?

a knowledge trading engine...


DOEACC Society 2006 DOEACC B Level B2.52 - Introduction to Object Oriented Programming through Java ( ) - Question Paper

Friday, 14 June 2013 06:00Web

B2.52-R3: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING THROUGH JAVA
NOTE:
1. There are 2 PARTS in this Module/Paper. PART 1 contains FOUR
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
ONE 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 one
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 Which of the subsequent assignments is illegal in Java?
A) subclass_reference = subclass_object
B) subclass_reference = superclass_object
C) superclass_reference = subclass_object
D) superclass_reference = superclass_object
1.2 What will be the output, if any, of the subsequent code segment?
class Min{
public static void main(String args [ ]) {
int min = 30;
min(min, 20, 10);
System.out.println( Minimum of 10, 20 ad 30 is  + min); }
static void min(int min, int a, int b) {
if (a > b) min = b;
else min = a; }
}
A) 10
B) 20
C) 30
D) Program will not compile.
B2.52-R3 Page one of five July, 2006
1.3 Which of the subsequent line will not compile assuming b1, b2 and b3 are byte variables
and j is int variable?
A) b1 = 3;
B) b3 = b1 * b2;
C) b3 = 10 * b1;
D) b2 = (byte) j;
1.4 Which of the subsequent is a loop construct that will always be executed once?
A) switch
B) for
C) while
D) do …. while
1.5 Which of the subsequent statements is false?
A) We cannot create objects of abstract classes.
B) The abstract methods of an abstract class must be described in its subclass.
C) Constructors cannot be abstract.
D) Static methods can also be abstract.
1.6 The exception thrown by the read() method of InputStream class is
A) Exception
B) FileNotFound
C) ReadException
D) IOException
1.7 On invoking repaint() method for a Component, the method invoked by AWT is
A) draw()
B) show()
C) update()
D) paint()
1.8 A colored image can be converted into a grayscale by using
A) CropImageFilter
B) RGBImageFilter



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER DOEACC Society 2006 DOEACC B Level B2.52 - Introduction to Object Oriented Programming through Java ( ) - Question Paper