0% found this document useful (0 votes)
19 views6 pages

Cat-2 Oops

The document outlines a Common Assessment Test for Object Oriented Programming (CS3391) with various questions divided into three parts: Part A consists of short answer questions, Part B includes detailed questions requiring explanations and code examples, and Part C features programming tasks. Topics covered include Java fundamentals, exception handling, multithreading, JavaFX, and generic programming. The test is designed to assess students' understanding and application of Object Oriented Programming concepts.

Uploaded by

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

Cat-2 Oops

The document outlines a Common Assessment Test for Object Oriented Programming (CS3391) with various questions divided into three parts: Part A consists of short answer questions, Part B includes detailed questions requiring explanations and code examples, and Part C features programming tasks. Topics covered include Java fundamentals, exception handling, multithreading, JavaFX, and generic programming. The test is designed to assess students' understanding and application of Object Oriented Programming concepts.

Uploaded by

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COMMON ASSESSMENT TEST-2

YEAR/SEM: II/III DATE:

Subject Code: CS3391-OBJECT ORIENTED PROGRAMMING Max.Mark:100

Answer all the questions


PART-A (10 X 2= 20)
1. What is use of final keyword?
2. Compare class and object.
3. Differntiate Method overloading and Overriding.
4. Identify what are the two ways of using super keyword.
5. What is Multithreading?
6. Write a Java code for reader writers problem.
7. What are the events are supported by JAVAFX?
8. Summarize the advantages of generic programming.
9. List the various mouse events supported by Java.
10. Show the structure of AWT Event Hierarchy.

PART-B (5*13=65)
11. (a) (i) Outline the arithmetic operators in Java. (6)
(ii) Name the four integer types in Java and outline the bitwise operators that can be applied
to the integer types. (7)
Or
(b) (i) Outline the iteration statements in Java with syntax and example. (9)
(ii) Outline the use of constructors and this keyword in Java. (4)

12. (a) With an example explain the use of Abstract classes in Java
Or

(b) What is user defined package? How to create and import a user defined Package?
Explain with example.

13. (a) (I) Discuss about try,catch and finally keywords in Exception Handling with an
example. (8)

(ii) List and explain Data types and their corresponding Wrapper class.

Or
(b)how thread synchronization is managed in java.Write example code.

14.(a) Write a java program to read data from a file and to write data to file.

Or

(b) Discuss about Generic classes and Generic Methods in java

15. (a) With an example code explain how the key events are handled using JavaFX.

OR

(b) Write a java program to illustrate the use of JAVAFX checkbox and choice box controls.

Part-c(1*15=15)

16. (a) Write a java program to copy a text file into another text file and to raise exception for
all cases.

Or

(b) With neat example, explain java AWT Menu bars and menu items.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COMMON ASSESSMENT TEST-2

YEAR/SEM: II/III DATE:

Subject Code: CS3391-OBJECT ORIENTED PROGRAMMING Max.Mark:100

Answer all the questions


PART-A (10 X 2= 20)
1. What is encapsulation?
2. What is a constructor?
3. Explain the use of super keyword.
4. Difference between classes and interfaces?
5. Name the two ways to create a thread in java.
6. What is Thread Pool?
7. Summarize the advantages of generic programming.
8. List the various mouse events supported by Java.
9. What is a layout manager and what are different types of layout
managers available in java AWT?
10. Differtiate Hbox and Vbox.

PART-B (5*13=65)
11. (a) (i) Write a Java Program to find the greatest of three numbers. (6)
(ii) Differentiate between object oriented programming and procedure oriented
programming. (7)
Or
(b) (i) What are the three categories of control statements used in java? Explain each category
with example.

12. (a) What is interface? With an example explain how to define and implement interfaces.
Or

(b) What is a package? Expalin in detail about how the packages provide access control
to various categories of visibility for class members.

13. (a) Explain in detail about Java’s Built-in Exception. Explain any three exceptions.

Or

(b) Discuss in detail about he methods to create a thread in java.


14.(a)(i) Outline reading console input and writing console output in java.(8)

(ii) Present an outline of file Inputstream and FileOutputStream classes.(5)

Or

(b) What is StringBuffer? Name and Outline the constructors defined by stringBufffer with code
fragments.

15. (a) What is a button? Name and Outline the types of buttons JavaFx provides with visual
representations.

OR

(b) Write a java program to illustrate the use of JAVAFX checkbox and choice box controls.

Part-c(1*15=15)

16. (a) Write a java program with nested try statements that raises divide by zero exception
and out of bound exception,if the program contains a statement with division operator and a
divisor as a command line argument.

Or

(b) Write a java program to copy a text file into another text file and to raise exceptions for all
cases.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COMMON ASSESSMENT TEST-2

YEAR/SEM: II/III DATE:

Subject Code: CS3391-OBJECT ORIENTED PROGRAMMING Max.Mark:100

Answer all the questions


PART-A (10 X 2= 20)
1. What is an array? How multidimensional arrays are implemented in java?
2. Compare class and object.
3. Differntiate Method overloading and Overriding.
4. Identify what are the two ways of using super keyword.
5. Define inheritance.
6. Write a Java code for reader writers problem.
7. What are the events are supported by JAVAFX?
8. Summarize the advantages of generic programming.
9. List the various mouse events supported by Java.
10. Write a note on Hbox and Vbox.

PART-B (5*13=65)
11. (a) (i) Outline the arithmetic operators in Java. (6)
(ii) Outline the primitive types of data in Java.(7)
Or
(b) (i) Outline the iteration statements in Java with syntax and example. (9)
(ii) Outline the use of constructors and this keyword in Java. (4)

12. (a) With an example explain the use of Abstract classes in Java
Or

(b) What is user defined package? How to create and import a user defined Package?
Explain with example.

13. (a) (I) Discuss about try,catch and finally keywords in Exception Handling with an
example. (8)

(ii) List and explain Data types and their corresponding Wrapper class.

Or
(b)how thread synchronization is managed in java.Write example code.

14.(a) Write a java program to read data from a file and to write data to file.

Or

(b) Discuss about Generic classes and Generic Methods in java

15. (a) With an example code explain how the key events are handled using JavaFX.

OR

(b) Write a java program to illustrate the use of JAVAFX checkbox and choice box controls.

Part-c(1*15=15)

16. (a) Write a java program to accept ‘n’ name, store it in an array, sort the names in
alphabetic order and display the result.Use classes and methods.

Or

(b) With neat example, explain java AWT Menu bars and menu items.

You might also like