How To Exam?

a knowledge trading engine...


West Bengal Institute of Technology (WBIT) 2010-6th Sem B.C.A Computer Application - E602B Object Oreiented Programming with Java ( ) - Question Paper

Wednesday, 17 July 2013 09:00Web



2010

CS/BCA/SEM-6/BCAE602B/2010

OBJECT ORIENTED PROGRAMMING WITH JAVA

Time Allotted: 3 Hours    Full Marks 70

The figures in the margin indicate full marks.

Candidate 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


Which of these is known as short-circuit and operator ?

a) && c) ?&


b) &

d) None of these.


ii) A constructor can be inherited using the keyword

b) Static

d) None of these.


iii)


b) welcomel2


a) Final c) Super int i = 2;

System.out.println ("welcome"+l+2); The Output is : a) welcome3


c) compiler error    d) None of these.

iv)


To inherit an interface from a class, we use the keyword

a) extends    b) implements

v) In java applet, 'Stop()' method can be invoked for a thread

b) twice

a)once


c) compiler error

d) not at all.


vi)    Dynamic method dispatcher is used for

a)    resolving method overriding

b)    resolving multilevel inheritance

c)    resolving multiple inheritance anomally

d)    none of these.

vii)    JVM stands for

a)    Java Virtual Machine

b)    Java Visual Machine

c)    Java Vision Machine

d)    None of these.

viii)    Each time we shift a value to the right using'' operator it divides the value by

a) 4

b) 2


d) None of these.

c) 8


ix)    Which of the following statement is true regarding constructors?

a)    All cases must be define as a constructor

b)    A constructor can be defined private

c)    A constructor can return a value

d)    A constructor must initialize all the fields of a class.

x)    intx = 2;

for (x = 0; x <5; x++)

System, out. println(x);

The output is

a) 01234    b) 1 2 3 4

GROUP -B (Short Answer Type Question)

Answer any three of the following.    3x5 = 15

2.

What are the differences between run time polymorphism & compile time polymorphism ?

5

3.

What do you mean by object oriented programming ? How it differs from Structure Oriented

2 + 3

Programming ?

4.

What are the differences between method overloading and method overriding ?

5

5.

What is Garbage collection ? What is Static variable ? Give example foe both. 1.5+1.5+2

6.

What is Synchronization ? When is it used ?

3 + 2

GROUP-C (Long Answer Type Question)

3 x 15 = 45


Answer any three of the following.

7.    a) What are the features of java language ? Describe.

b)    What do you mean by command line argument ?

c)    What do you mean by subclass constructor method ?

5 + 5 + 5


8.    a) Describe the complete life cycle of a thread.

b)    Explain the method by which you can block a thread.

c)    What is thread synchronization ?

d)    Describe Inter-thread communication.

4 + 4 + 4 + 3


9.    a) What is applet ?

b)    Describe applet life cycle.

c)    What is local applet ?

d)    What are the difference between Java application & Java applet ?

e)    What are the application of applet tag ?

10.    a) What is an exception ? Explain with an example , how exceptions are handled in Java ?

b) What is multithreading ? Explain two advantages of multithreaded programs. Write a program in java to explain how different priorities can be assigned to different threads.

(2 + 4)+ (2 +2+ 5)

11.    a) What is a package ? Explain the difference access controls for packages in java .

b)    What is Unicode ? Explain the advantages of using Unicode.

c)    Explain operators with reference to java. Explain two dimensional array with example.

(2 + 3) + 2 + (3 + 5)

Edit by suBhrajyoti







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER West Bengal Institute of Technology (WBIT) 2010-6th Sem B.C.A Computer Application - E602B Object Oreiented Programming with Java ( ) - Question Paper