St. Xaviers College 2011 B.Sc Computer Science Java Programming - Question Paper
Wednesday, 06 February 2013 06:35Web
INTERNAL TEST
II BSc. Comp.Sci HTML and JAVA Time: one ½ Hrs
III SEMESTER MAX.MARKS:50
Part A
ans ALL the questions: five x one = 5
1. Inside ____________ method, you will describe the code that constitutes the new thread.
a) begin ( ) b) run ( ) c) resume ( ) d) suspend ( )
2. drawstring( ) method is a member of ____________ class.
a) component b) container c) Graphics d) panel
3. ______________ method is called when a Web browser leaves the HTML document containing the applet.
a) init() b) start() c) stop() d) destroy()
4. In delegation event model, ____________ must register with a source in order to receive event notifications.
a) event b) listener c) object d) none
5. All exception kinds are subclasses of the built-in-class_____________
a)Throwable b) Exception c) Error d) Runtime Exception.
Part B
ans any 4 4x5=20
6. discuss package with an example? discuss the different levels of access protection in Java.
7. discuss Java exception handling mechanism with an example.
8. discuss thread priorities.
9. How does an applet differ from Java application program.
10. discuss Event listener interfaces.
11. List a few most commonly used string methods in Java and discuss with examples.
Part C
ans any 1 one x 10 = 10
12 a) discuss the methods used in an applet with an Applet skeleton.
(OR)
b) (i) discuss interfaces. [Marks 2]
(ii) Write a Java program that implements Fixed and varying stack using an interface.[Marks 8]
Part D
ans any 1 one x 15 = 15
13 (i) What is multi-threading? discuss. [Marks 3]
(ii) How will you create multiple threads. discuss with a programming example [Marks 12]
14. discuss Delegation event model? Write a Java program to handle mouse events.
Earning: Approval pending. |