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

oops_important qns.docx

The document outlines the curriculum for Object-Oriented Programming (OOP) at Government Polytechnic College, Punalur, specifically focusing on JAVA. It includes a series of questions categorized into 1 mark, 3 marks, and 6 marks, covering fundamental concepts such as inheritance, encapsulation, method overloading, and exception handling. The questions aim to assess students' understanding of JAVA programming principles and practices.

Uploaded by

spokexo
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 views4 pages

oops_important qns.docx

The document outlines the curriculum for Object-Oriented Programming (OOP) at Government Polytechnic College, Punalur, specifically focusing on JAVA. It includes a series of questions categorized into 1 mark, 3 marks, and 6 marks, covering fundamental concepts such as inheritance, encapsulation, method overloading, and exception handling. The questions aim to assess students' understanding of JAVA programming principles and practices.

Uploaded by

spokexo
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/ 4

Government Polytechnic College, Punalur

Department of Computer Engineering


4131 Object Oriented Programming

Module 1
1 Mark Questions

1. Define Object-Oriented Programming (OOP)?

2. Name one feature of JAVA.

3. What does JDK stand for in JAVA?

4. Which IDE is commonly used for JAVA programming?

5. What is a constructor in JAVA?

6. What is the purpose of the static keyword in JAVA?

7. What is method overloading?

8. What is the default visibility modifier in JAVA?

9. What is encapsulation in JAVA?

10. What is the purpose of the finally block in exception handling?

3 Marks Questions

1. Explain the characteristics of Object-Oriented Programming (OOP).

2. List and briefly explain the advantages of JAVA.

3. What are the differences between JDK and JAVA Packages?

4. Explain the concept of constructor overloading with an example.

5. What are static variables, constants, and methods in JAVA?

6. How does method overloading work in JAVA? Provide an example.

7. Explain the concept of data field encapsulation in JAVA.

8. What are visibility modifiers in JAVA? List and explain them.

9. How are objects passed and returned as arguments in JAVA?

10. Explain the use of try, catch, and finally in exception handling.
6 Marks Questions

1. Explain the features of JAVA and how they contribute to its popularity.

2. Describe the process of defining a class, declaring attributes, and defining methods in
JAVA. Provide an example.

3. Describe concept of constructors in JAVA. How does constructor overloading work?


Provide an example.

4. Discuss the concept of static variables, constants, and methods in JAVA with
examples.

5. Explain method overloading and visibility modifiers in JAVA with examples.

6. What is data field encapsulation? How is it achieved in JAVA? Provide an example.

7. Explain how arrays of objects are created and used in JAVA with an example.

8. Discuss exception handling in JAVA. Explain the use of try, catch, multiple catch,
and finally with examples.

9. Compare and contrast the tools available for JAVA programming (JDK, JAVA
Packages, and IDEs like NetBeans and Eclipse).

10. Explain the process of building a JAVA application, including the roles of JDK,
JAVA Packages, and IDEs.

Module 2
1 Mark Questions

1. Define inheritance in Java?

2. Name one type of inheritance supported in Java.

3. What is the keyword used to call a superclass constructor?

4. What is the difference between method overloading and method overriding?

5. What is a final variable in Java?

6. Can a final class be inherited?

7. What is an abstract method?

8. What is polymorphism in Java?

9. What is dynamic binding in Java?

10. What is the purpose of an interface in Java?


11. How do you define a package in Java?

12. What is the default access modifier for interface methods?

3 Marks Questions

1. Explain the types of inheritance supported in Java.

2. What is the difference between a superclass and a subclass?

3. How do you call a superclass constructor and methods in Java? Provide an example.

4. Differentiate between method overloading and method overriding with examples.

5. What are final variables, final methods, and final classes in Java?

6. Explain the concept of abstract methods and abstract classes in Java.

7. What is polymorphism? How is it achieved in Java?

8. Explain dynamic binding in Java with an example.

9. What are visibility controls in Java? List and explain them.

10. How do you define and implement an interface in Java?

11. Explain how to create and access packages in Java.

12. What is the difference between extending and implementing an interface?

6 Marks Questions

1. Explain the concept of inheritance in Java. Discuss the types of inheritance with
examples.

2. What is the difference between a superclass and a subclass? How do you call a
superclass constructor and methods? Provide an example.

3. Compare and contrast method overloading and method overriding in Java with
examples.

4. Explain the concept of final variables, final methods, and final classes in Java. Why
are they used?

5. What are abstract methods and abstract classes? How are they different from concrete
methods and classes? Provide an example.

6. Explain polymorphism in Java. How is dynamic binding related to polymorphism?


7. Discuss visibility controls in Java. How do they affect the accessibility of classes,
methods, and variables?

8. What is an interface in Java? Explain how to define, extend, and implement an


interface with examples.

9. Explain the concept of packages in Java. How do you create and access packages?

10. Discuss the role of interfaces and abstract classes in achieving abstraction and
polymorphism in Java.

You might also like