WBUT Question Papers EE Object Technology And Uml B Tech 6th Sem 2010

WBUT Question Papers EE

Object Technology And Uml  B Tech 6th Sem 2010

Time Allotted : 3 Hours

Full Marks : 70

The figures in the margin indicate Jiill marks.

Candidates are required to give their answers in their own words

as far as practicable.


( Multiple Choice Type Questions )

  1. Choose the correct alternatives for the following :

^ What is the Illegal Identifier ?

a) int :a;                                    b) in_b; .

c) int $c;                                   d) int calc_data;

U) Which is not a JAVA keyword ?

a) strctfp    b) synchronized

c)   transient          d) all of these,

til) Which will be compilable abstract class ?

a)            public abstract class Car {public Bark speak ();}

b)           public abstract class Car {public Bark speak () {>}

c)            public class Car { public abstract/Bark speak ():}

d)           public class Car abstract { public abstract Bark * speak

tv) Which, is true ?

a)           “X extends Y” is correct if an only if X is a class and Y is an interface.

b)          “X extends Y” is correct if an only ‘if X is an interface and Y is a class.

c)        . “X extends Y” is cohrect if X and Y are either both

classes and both interfaces.

d)          “X extends Y’ is correct for all combinations of X and Y being classes and / or interfaces.

v)            Which is legal declaration ?                           .

a)            short x [ ]; b) short [ 1 y; c) short [ ] z [‘] (]; d) AU of these.

vi)           From any non-sub-class class outside the package, which access is possible ?

a)         Public b) Protected

c) Default                                  d) All of these.

vli) Which is a primitive type variable declarations ?

a)   char    b) byte

c)    double                             d) All of these..

viii)     Which is the exact ^waterfall of any software . development process ?                         ^

a)           What — How — Do it — Use — Test

b)                   How— What — Do it — Test — Use v c)    What — How — Do it — Test — Use

d)           How — What — Do it — Use — Test.

– 6401                                                  2

ix)          Using class declaration, the “final” key-word means

a)            the methods in that class will be overridden

b)           the class can’t be sub-classed

c)            the class would be a super class

d)            all of these. ‘     xj In JAVA, Applet is a

a)             Superclass       b) Interface

c)             Package            d) Object.

,                              GROUP -B

( Short Answer Type 9uestions )

Answer any three of the following. 3×5=15

  1. Explain different access specifiers in Java.
  2. Explain the statickeyword with a suitable Java code.
  3. a) What do you mean by final finalize and finally ?
  4. b)           What do you mean by garbage collection in Java ? 3 + 2
  1. Explain Inner class in Java with a simple code.
  2. Explain the advantage of multithread over single thread. ,

GROUP -C (Long Answer Type Questions)

Answer any three of the following. 3 x 15 = 45

  1. a) Explain “Use Case,f diagram. What are the essential

criteria for ideal use case diagram ? What are the “extends” and “includes” constructs in use case diagram ? Draw a use case diagram Nursing Home functionality where example of actors are Patient, Doctor, Reception Staff, Billing Staff and Administractor etc.      Explain State chart and Activity diagram with example. 5

  1. a) What are local applet and remote applet ?

b)           What is the difference between Java applets and Java . application programs ?

c)            Write a applet program to draw a polygon filling with green colour using rgb format.

d)           What is package ? How do we add a class or an interface to a package ?

e)            What do you mean by CLASSPATH ?

  1. a) What are exceptions ? Explain the user defined

exceptions and system defined exceptions with suitable examples. ‘

b)           How do we define tiy and catch block ? Is it essential to catch all types of exceptions ? Explain.

c)            Briefly explain the use of “this” and “super” keywords ?

  1. a) What do you mean by link and association ? Explain
  2. their difference.

b)           What are the differences between a class diagram and an object diagram ? How do you indicate public, protected and private members of a class in a class diagram ?

c)            Describe the Component diagram and Deployment diagram. Draw Component and Deployment diagram of the student Information system.          3 + 5 + 7

  1. sQ Explain the difference between method overloading and ^ method overriding. What restrictions are placed on
  2. method overloading and method overriding ?

b)           What is multithreading programming ? Explain thread life cycle.       

c)            Explain the difference between creating a thread by extending the Tread class and creating a thread by implementing the Runnable interface with suitable programs ?


Leave a Comment