[go: up one dir, main page]

0% found this document useful (0 votes)
5 views3 pages

November 2018

This document is an examination paper for the B.Sc. degree in Computer Science, specifically for the Java Programming course. It consists of multiple parts including multiple-choice questions, short essay questions, and long essay questions, covering various topics in Java and object-oriented programming. The exam is structured to assess knowledge on concepts such as inheritance, exception handling, and data types.

Uploaded by

ansafofficial3
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)
5 views3 pages

November 2018

This document is an examination paper for the B.Sc. degree in Computer Science, specifically for the Java Programming course. It consists of multiple parts including multiple-choice questions, short essay questions, and long essay questions, covering various topics in Java and object-oriented programming. The exam is structured to assess knowledge on concepts such as inheritance, exception handling, and data types.

Uploaded by

ansafofficial3
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

D50633 (Pages: 3) Name..........................................

Reg. No..............-......................

FIFrH SEMESTER B.Sc. DEGREE EXAMINATION, NOVEMBER 2018


(CUCBCSS-UG)
Computer Science

BCS 5B 09-JAVA PROGRAMMING


Time : Three Hours Maximum : 80 Marks
Part A
Answer all questions.
Each question carries 1 mark.
1. In OOP, data and methods are enclosed in a----
(a) Package. (b) Object.
(c) Class. (d) None of the above.
2. Which property enables the use of predefined code in OOP ?
(a) Encapsulation. (b) Abstraction.
(c) Inheritance. (d) Polymorphism.
i
3. Which of the following is not a pr mitive data type?
(a) Boolean. (b) Byte.
(c) String. (d) Double.
4. Subclass is also called as
(a) Base class. (b) Superclass.
(c) Derived class. (d) None of the above.
5. If a class declared as , it cannot be inherited.
(a) Abstract. (b) Final.
(c) Extends. (d) None of these.
6. is not a valid jump statement in Java.
(a) Return. (b) Goto.
(c) Continue. (d) Break.
7. Which of the following doesn't have a superclass ?
(a) System. (b) Object.
(c) Forname (). (d) Exception.

Turn over
2 D 50633

8. Which one is not a method of class object?


(a) toString 0 (b) getClass().
(c) Extends. (d) None of these.
9. Nextlnt() method belongs to the class
(a) Math. (b) Random.
(c) Integer. (d) Number.
10. When we invoke the repaint() method for a component, the AWT invokes which of the following
methods?
(a) Draw(). (b) Show().
(c) Update(). (d) Paint().
(10 x 1 = 10 marks)
PartB
Answer all questions.
Each question carries 2 marks.
11. What is type casting ?
12. What is this operator ?
13. What is a thread ?
14. Differentiate between equals() and ==.
15. What is a byte stream?
(5 x 2 = 10 marks)
Part C (Short Essays)

Answer any five questions.


Each question carries 4 marks.
16. What are the uses of super keyword?
17. Write ajava program to implement multilevel inheritance
18. With example, explain parameter passing mechanism to Java.
19. How event handling is done in Java ?
20. Explain Applet skeleton with example.
21. Explain try-catch-finally statement.
22. Write the syntax of switch statement with example.
23. Explain SQL Exception class.
(5 X 4 = 20 marks)
3 D 50633

Part D (Essays)

Answer any five questions.


Each question carries 8 marks.
24. Explain Transaction Management.
25. Explain user defined exception with an example.
26. Explain Command Line Arguments with an example.
27. Explain object and class concepts in Java.
28. Explain with example method overloading and constfuctor overloading.
29. What is an array? What are the types of array supported in Java?
30. What is inheritance? Explain the different forms of inheritance.
31. Differentiate between Flowlayout, Borderlayout and Gridlayout.
(5 X 8 = 40 marks)

You might also like