0% found this document useful (0 votes)
113 views

java qp2

Uploaded by

kesavanram07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

java qp2

Uploaded by

kesavanram07
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Sp 5

F–2630 Sub. Code


7BCE4C1

B.Sc. DEGREE EXAMINATION, NOVEMBER 2019

Fourth Semester

Computer Science

JAVA PROGRAMMING

(CBCS – 2017 onwards)

Time : 3 Hours Maximum : 75 Marks

Part A (10  2 = 20)


Answer all questions.

1. What are Web Browsers?

2. How are command line arguments handled in Java?

3. How are Arithmetic expressions evaluated?

4. What is conditional operator?

5. What is the purpose of keyword ‘final’?

6. What is interface?

7. What is a package?

8. What is thread priority?

9. What is the use of keyword ‘throws’?

10. How do pass parameters to the applet?


Sp 5

Part B (5  5 = 25)

Answer all questions, choosing either (a) or (b).

11. (a) Explain features of Java.

Or
(b) How is Type casting done is Java?

12. (a) Explain bitwise operators with suitable example.

Or
(b) Compare if .. else if with switch statement.

13. (a) Write a Java program to illustrate method


overloading.

Or
(b) What is abstract class? Explain.

14. (a) Write a Java program to illustrate Divide by zero


exception.

Or
(b) Explain syntax of exception handling code.

15. (a) Write a Java program to line and Rectangle for the
given co-ordinates.

Or
(b) How to use control loops in Applets?

Part C (3  10 = 30)
Answer any three questions.

16. Explain about Java environment and JVM.

17. Write a Java program to sort Ten numbers in ascending


order.

2
F–2630
Sp 5

18. Explain multiple inheritance in Java.

19. Explain Thread life cycle with suitable example.

20. Explain Applet life cycle with suitable example.

————————

3
F–2630

https://www.tnstudy.com

You might also like