JAVA PROGRAMMING
MODEL EXAMINATION – QUESTION PAPER
Time: 3 Hours Max. Marks: 40
Instructions:
1. Answer all questions.
2. Each question carries equal marks.
3. Write neat and well-labeled answers with suitable examples wherever necessary.
Q1. Explain the major programming paradigms—Imperative, Functional, Logic, and
Object-Oriented Programming. Compare their features with suitable examples.
Q2. Describe the key attributes of Object-Oriented Programming (OOP). Explain
encapsulation, inheritance, polymorphism, and abstraction with Java examples.
Q3. Compare Procedural Programming and Object-Oriented Programming based on
program organization, data security, reusability, and real-world applications.
Q4. Explain the history and features of Java. Discuss why Java is considered
platform-independent.
Q5. Explain the major programming language paradigms. Compare Functional,
Imperative, Logic, and Object-Oriented Programming with suitable examples.
Q6. Explain Java Keywords and Identifiers. State the rules for naming identifiers and
give valid and invalid examples.
Q7. Describe the features, advantages, and disadvantages of the following
programming paradigms: Functional Programming, Imperative Programming, Logic
Programming, Object-Oriented Programming.
Q8. Explain the complete structure of a Java program and describe the role of classes,
methods, the main() method, and comments.