[CS-504D] OBJECT ORIENTED PROGRAMMING [2013-14]

CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14

2013

OBJECT ORIENTED PROGRAMMING

Time Allotted : 3 Hours Full Marks : 70

The figures in the margin indicate full marks.

Candidates are required to give their answers in their own words

as far as practicable.

GROUP – A

(Multiple Choice Type Question)

1. Choose the correct alternatives for the following: 10 x 1 = 10

i) Which three form part of correct array declaration?

1. public int a[ ]

2. static int [ ] a

3. public [ ] int a

4. private int a[3]

5. private int [3] a[ ]

6. public final int [ ] a

a) 1, 3, 4 b) 2, 4, 5

c) 1, 2, 6 d) 2, 5, 6

ii) public class Test{ }

What is the prototype of the default constructor?

a) Test ( ) b)  Test(void)

c) public Test ( ) d) public Test (void)

Attchments: