Sikkim-Manipal University of Health Medical and Technological Sciences (SMUHMTS) 2009 B.C.A Computer Application BC0047 Java Programming Assignment - Question Paper
BC0047 Java Programming August 2009 Assignment
August 2009
Bachelor of Computer Application (BCA) Semester 4
BC0047
Java Programming 4 Credits
(Book ID: B0831)
Assignment Set 1 (40 Marks)
Answer All the Questions
1. Explain the main features of Java language. [5 Marks]
2 Write a program in java to find factorial of a number. [5 Marks]
3. Explain the InputStream and OutputStream class hierarchies with suitable diagrams.
[10 Marks]
4. Write a program to find largest of 3 integers using:
a) Comparison Operators
b) Logical Operators
[5 Marks]
5. Write a program to explain the Exception Handling mechanisms in Java using the keywords: try, catch and finally. [5 Marks]
6. Write a simple GUI based program to prepare a similar interface as shown below:
[10 Marks]
August 2009
Bachelor of Computer Application (BCA) Semester 4
BC0047
Java Programming 4 Credits
(Book ID: B0831)
Assignment Set 2 (40 Marks)
Answer All the Questions
1. Write a simple Java program to demonstrate the use of Continue statement. [5 Marks]
2. What are the rules for naming variable in Java? [5 Marks]
.
3. Write a program to perform the basic arithmetic operations:
a) Addition [10 Marks]
b) Subtraction
c) Multiplication
d) Division
Use 4 different methods for the above and invoke them as necessary from the main() method.
4. Explain the concept of interfaces in Java with a suitable example for the same
[10 Marks]
5. What are the different components of an event. [10 Marks]
Earning: Approval pending. |