CLASS: M.C.A. 11A/191

grapedraughtΛογισμικό & κατασκευή λογ/κού

2 Δεκ 2013 (πριν από 3 χρόνια και 10 μήνες)

98 εμφανίσεις

CLASS: M.C.A.









11A/191

St. JOSEPH’S COLLEGE (AUTONOMOUS) TIRUCHIRAPPALLI


620 002

SEMESTER EXAMINATIONS


APRIL 2011

TIME: 3 Hrs.








MAXIMUM MARKS: 100

SEM

SET

PAPER CODE

TITLE OF THE PAPER

IV

2009

07PCA441

PROG
RAMMING IN JAVA

SECTION


A

Answer all the questions:







20 x 1 = 20

Choose the correct answer:

1.

_______ class cannot be instantiated.


a)

Abstract

b)

Static


c)

Dynamic

d)

Main

2.

String Objects are compared using .


a)

Compare To ()

b)

=


c)

Both a & b

d)

Is equal

3.

Static methods ____ on the class lock.


a)

Synchronize

b)

Sleep


c)

Notify

d)

None

4.

Read data from _________ by calling the read ( ) method.


a)

An Input Stream

b)

A Read Stream


c)

A Write Stream

d)

None

5.

AWT S
tand For


a)

Abstract Window Toolkit

b)

Advanced Window Toolkit


c)

Another Window Toolkit

d)

Applet Window Toolkit

Fill in the blanks:

6.

A ____________ class can no longer be sub classed.

7.

Interface can have only __________ type of methods.

8.

Th
reads are _____ compared to processes.

9.

To achieve buffering you can wrap your Input Stream in an ____.

10.

CGIs that use take their arguments from the ___________.

State True or False:

11.

Java passes all arguments by value, not by reference.

12.

Al
l of the variables in an interface are implicitly static and final.

13.

Synchronization is a process of controlling the access of shared resources by the multiple
threads.

14.

Input Stream returns one byte at a time.

15.

Programs that use read their arg
uments from standard input.

Match the following:

16.

Static variable

-

a) Container

17.

Runnable Interface

-

b) ava IO API

18.

try
-
catch block

-

c) Catching the exception is done

19.

Writer class

-

d) Thread

20.

Panel class

-

e) Class variable

SECTI
ON


B

Answer all the questions: 5 x 4 = 20

21.

a.

Write a note on Finalize method and garbage collection.


OR


b.

Write an example program for passing object as parameter.

22.

a.

Write a program to convert strin
gs to numbers.


OR


b.

Write a note on exception handling.

23.

a.

Write a note on methods in Threads?


OR


b.

Give an account on thread priorities.

24.

a.

Write a note on serialization.


OR


b.

Write a java program to read the characters from a
Dat
aInputStream
one byte at a time
using
readByte( ).

25.

a.

List the events and explain.


OR


b.

Explain the Life Cycle of Applet.


SECTION


C

Answer any FOUR questions:




4 x 15 = 65

26.

Explain the method overriding concept. Give an example.

27.

Write an example program for package and explain.

28.

Write an example program for inter thread communication.

29.

Explain the character stream classes in Java.

30.

Write a applet program to display the bio
-
data entry form using elements.


********
******