Karnataka State Open University (KSOU) 2011 B.C.A Computer Application- Java Programming - Question Paper
BCA 14
IV Semester B.C.A. Examination, August 2011 JAVA PROGRAMMING
Max. Mar(cs: 80
Time: 3 Hours
Instruction : Answer all questions in Part A and either (a) or (b) of each question in Part - B.
PART-A
(1x10=10)
I. Answer all questions :
1) What is a scope of a variable ?
2) What is type casting?
3) What is an array ?
4) What is a class ?
5) What is a default constructor ?
6) What is an interface ? Give its syntax.
7) What is a Package ?
8) Define Exception handling mechanism'.
9) What is an applet ?
10) Distinguish init ( ) and start ( ) methods.
II. Answer the questions in a paragraph : (5x4=20)
11) List out the operators available in java. Explain.
12) List out any 5 methods available in string class. Explain.
13) Explain method overloading with an example program.
14) Differentiate class and interface.
15) Explain in detail about different types of Inheritance with an example program.
16) a) Explain in detail about Java features. *
BCA 14
OR
b) Explain in detail about Control Structures available in java.
17) a) Explain about String class, String constructor and different String methods
using a program.
OR
b) Describe the various levels of acccss protection available in packages and their Implications with an example program.
18) a) Explain in detail about Exception Handling Mechanism with an example.
OR
b) Explain different ways to create threads with an example.
19) a) Explain in detail about Applet Life cycle.
OR
b) Write a program to demonstrate the Life cycle of an applet.
20) a) Write a program to perform the following operations by using applet.
i) Draw a Line, Rectangle ii) Draw a oval and fill it
OR
b) Explain in detail about Event handling mechanism with an example.
Attachment: |
Earning: Approval pending. |