0% found this document useful (0 votes)
169 views2 pages

CS 2305 - Programming Paradigms

This document contains questions from a Computer Science and Engineering exam on programming paradigms. It covers topics like object-oriented programming concepts in Java like classes, objects, inheritance, interfaces and packages. It also discusses string handling, arrays, exceptions, threads and event-driven programming in Java. The exam has two parts - Part A contains 10 short answer questions and Part B contains 5 long answer questions, each with sub-questions.

Uploaded by

Anitha JS
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)
169 views2 pages

CS 2305 - Programming Paradigms

This document contains questions from a Computer Science and Engineering exam on programming paradigms. It covers topics like object-oriented programming concepts in Java like classes, objects, inheritance, interfaces and packages. It also discusses string handling, arrays, exceptions, threads and event-driven programming in Java. The exam has two parts - Part A contains 10 short answer questions and Part B contains 5 long answer questions, each with sub-questions.

Uploaded by

Anitha JS
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/ 2

B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2010.

Fifth Semester
Computer Science and Engineering
CS 2305 PROGRAMMING PARADIGMS
(Regulation 2008)
Time : Three hours Maximum :100 marks
Answer ALL questions.
PART A (10 2 = 20 marks)
1. Define Objects and classes in java.
2. How does one import a single package?
3. What is meant by Inheritance Hierarchy? Give an example.
4. In Java what is the use of Interface?
5. What are the steps needed to show a Frame?
6. What is the function of (a) Set Layout and (b) Flow Layout?
7. Give any two methods available in Stack trace Element.
8. Define Assertions and give its syntax.
9. What are the different states in thread?
10. What do you mean Synchronization?

PART B (5 x 16 =80 marks)
11. (a) (i) What is constructor? What is the use of new method? (4)
(ii) Give the syntax for static method and its initialization. (4)
(iii) Explain arrays in java. (8)
Or
(b) (i) What is class? How do you define a class in java? (4)
(ii) Explain the following in Strings: (4)
(1) Concatenation (2) Substrings.
(iii) Explain any four methods available in string handling. (4)
(iv) What is a package? How does a compiler locate packages? (4)
12. (a) (i) Explain Inheritance and class hierarchy. (8)
(ii) Define Polymorphism. (2)
(iii) Write briefly on Abstract classes with an example. (6)
Or
(b) (i) Explain the following with examples: (8)
(1) The clone able interface (2) The property interface.
(ii) What is a static Inner class? Explain with example. (8)
13. (a) (i) Explain the AWT Event handling in detail. (8)
(ii) Give the methods available in graphics for COLOR. (4)
(iii) List the methods available to draw shapes. (4)
Or
(b) (i) Explain the characteristics of model view Controller design patterns. (4)
(ii) Explain the advantage and explain the methods in Model view controller. (12)
14. (a) (i) Explain the generic classes and generic methods with example. (8)
(ii) Explain the exception hierarchy (8)
Or
(b) (i) Explain the concept of throwing and catching exception in java. (8)
(ii) State the situations where assertions are not used. (4)
(iii) Give an overview of logging (4)
15. (a) (i) What is a thread? Explain its states and methods. (8)
(ii) Explain thread properties. (8)
Or
(b) (i) Explain the methods of interrupting threads in java. (8)
(ii) What is Event-driven programming? Explain. (8)

You might also like