Periyar University 2010 B.C.A Computer Application -programming language java and javascript - Question Paper
19. (a) Discuss the various drawing methods of the
graphics class with example.
Or
(b) (i) Write a program to copy character from one file into another.
(ii) Write a program to copy bytes from one file into another.
20. (a) Explain Java script arrays and window
object with example.
Or
(b) Explain Math object and document object with example.
4
/(For the candidates admitted from 2006-2007) i B.C.A. DEGREE EXAMINATION, APRIL/MAY 2010. Sixth Semester
PROGRAMMING LANGUAGE JAVA AND
I J JAVASCRIPT
\ \
Tiipe : Three hours Maximum : 100 marks
\ PART A (10 x 2 = 20 marks)
Answer ALL questions.
1. Define Inheritance and polymorphism.
2. What are the five types of tokens?
3. List out the data types in Java.
4. Draw a flowchart of simple if statement.
5. Define constructor.
6. Define interface and write its general form.
7| What is an applet?
8. Write the methods to draw line and ellipse.
9. List out the methods in document object.
10. List out the methods in Date Object.
PART B (5 x 4 = 20 marks)
Answer ALL questions.
11. (a) Discuss the benefits of OOPs.
Or
(b) Explain Java virtual machine.
12. (a) Explain Arithmetic and Bitwise operators.
Or
(b) Explain switch statement with example.
13. (a) Write a Java program to sort a list of 5
numbers.
Or
(b) Discuss the life cycle of a thread.
14. (a) Write a Java program to handle an
arithmetic exception.
Or
(b) Discuss the input stream methods available in Java.
15. (a) Explain methods in Date Object with
example.
Or
(b) Write short notes on functions in Java script.
PART C (5 x 12 = 60 marks)
Answer ALL questions.
16. (a) Explain the basic concepts of OOPs.
Or
(b) Explain in detail about the Java program structure.
17. (a) Explain constants in Java with suitable
example.
Or
(b) (i) Explain For-Next and Do-While statement in Java.
(ii) Write a program to find the factorial of a given number.
18. (a) Write a program ]to create a class circle with
methods perimeter and area.
Or
(b) (i) Write short notes on arrays.
(ii) Write a program to find mean and average of n numbers.
3 S~No. 1062
Attachment: |
Earning: Approval pending. |