Indian Computer Education Society- Kochi

kitewormsSoftware and s/w Development

Nov 3, 2013 (3 years and 9 months ago)

70 views

Indian Computer Education Society
-

Kochi


EXAMINATION
-
JANUARY 2007


M
ax.Marks :100



JAVA



Duration : 90 Minutes



I Fi l l i n the bl anks









20 X 2


1.

The ________method is used to specify a container's layout.

2.

Al l swi ngs components are deri ved f rom the
…………….. cl ass


3.

The_______ and __________classes use the FlowLayout as their default layout
.


4.

The j ava GUI cl asses are cont ai ned i n the ………………….. package.


5.


Which method of the Component class is used to set the position and

size of a component?

6.

What
is the immediate superclass of the Applet class?

7.

What is the immediate superclass of the Dialog class?

8.

What is the range of the char type?

9.

An object's __________method may only be invoked once by the garbage
collector.

10.

Name two subclasses o
f the TextComponent class.

11.

What are the high
-
level thread states?

12.

_______def i nes a set of api obj ect s and methods i o i ntract wi th dat abase

13.

l oad the dri ver i nto j ava i nt erpret er usi ng the ______method

14.

To di spl ay the data i n t abul ar f orm we can make use o
f the ___cl ass i n swi ng ?

15.

____,we can send and recei ve messages over a TCP / IP network.

16.

_____Layer support s communi cati on between st ub and skel eton.

17.

An obj ect of the …………….. and …………. Is creat ed to read dat a f rom the cl i ent and
send dat a f rom the server
to them cl i ent.


18.

Encapsul ati on i s al so cal l ed___________


19.

Modul us operator i n Java i s?



20.

Two t ypes of constructors are________ and _______




Choose The Correct Answer From Bracket



1.

the wrappi ng up of data and methods i nto a si ngl e uni t i s known as
------
----

a.
(Encapsul ati on

b. abstracti on c. pol ymorphi sm)

2.

_______ can use onl y st at i c dat a and method.

(a.
St at i c

b.abstract c.publ i c)

3.

Image can be drawn on appl et by means of the ____ , ____,and ______.
(A.
pai nt(),getImage(),drawImage();

b.getPai nt(),di sp
l ayImage(),drawImage();

c.get Pai nt ();get Image(),drawPi ct ure();)

4.

__________whi ch has a const ant val ue of 5

(a.
NORM_PRIORITY

b.MIN_PRIORITY C.MAX_PRIORITY)



5.

______ method provi ded by Stri ng cl ass i s used f or l ength of a stri ng



(
a.l egth
()

b.count() c.tot Char() )

6.

In an appl et _________ i s an obj ect t hat descri bes a st at e change i n a source.

(
a.event

b.stat e c.appl i cat i on

7.

______i s an API provi ded by Mi crosf t f or accessi ng the Dat abase

( a)
ODBC

b.JDBC c.RMI)

8.

Stored Procedure can be i nvoked
usi ng______obj ect


(
a
.
Cal l abl eStatement

b.Statement c.PreparedSt atement)

9.

UDP st ands For


(
a.User Datagram Protocal

b.user def i ned protocol c.user desi gned protocol )

10.

Socket s are used i n_____,_____appl i cati on

(a.Cl i ent/Server

b.server c.cl i ent)

11.

Funct i on t
o set a val ue f or a t ext f i el d i n an appl et i s _________


(
a.set text()

b.setVal ue() c.set Val ueAt ())

12.

The “standard “ error output stream i s__________


(
a.Syst em.err

b.Syst em.error c.syst em.out.error)

13.

The ___ cl ass i s general l y used f or two
-
way sock
et communi cati on

(a.
Socket

b.Port c.Net work)

14.

whi ch are the three l ayer of RMI


( a.Stub/Skel eton


b.Remot e Ref erencec.Transpot Layer

d.Appl i cati on l ayer


e.Int ernet l ayer )

15.

The process of def i ni ng two or more met hods wi th same name
i n a cl ass and
paramet ers are di f f erent i s cal l ed _________

a.

( a. method overl oadi ng b. method overri di ng c. i nheri t ance
)

16.

a cl ass marked as
------------

can not be i nheri t ed.

( A.Fi nal

b.st at i c c.abstract)

17.

The command f or runni ng the j ava compi l er i s
-
--------------

( a.Javac

b.j avap c.j avax)

18.

The conversi on of one t ype of val ue t o another i s
--------------



(a.typecast

b.converti ng c.cast i ng)

19.

mul t i l i ne comment s st art wi th
---------

and end wi th
----------



a.
/* and */
b./# and #
/ c.#/ and /#

20.

For j dbc programs you have to i mport ________ package


( a.
j ava.sql.*
;
b.j ava.awt.j dbc.*; c.j ava.j dbc.*)





IV Answer any two of the fol l owi ng






2 X 10


1.

What is the advantage of the event
-
delegation model over the earlier e
vent
-
inheritance model?

.

2.

What is the difference between an Interface and an Abstract class?




3.

Write a program to Display the Week day name according to the week day
number given as command line argument