Assignment Questions
Section A: Conceptual Understanding of Programming Paradigms
1. Explain the four main programming paradigms:
a) Procedural
b) Object-Oriented
c) Functional
d) Logic & Rule-Based
2. Compare the key features of functional programming with those of object-oriented
programming.
Section B: Fundamentals of Object-Oriented Programming
[Link] and explain the following concepts in the context of Object-Oriented Programming:
a) Namespaces
b) Objects
c) Classes
d) Data Members and Methods
e) Messages
f) Data Encapsulation and Abstraction
g) Inheritance
h) Polymorphism
Section C: Java as an Object-Oriented Programming Language
[Link] and explain the structure of a basic Java program, including:
o Documentation section
o Package statement
o Import statements
o Class definition
o Main method
[Link] the role of JVM (Java Virtual Machine) in executing a Java program.
Section D: Java Programming Constructs and Control Statements
[Link] a Java program using selection statements (if, if-else, and nested if-else) to
determine the grade of a student based on marks.
[Link] Java programs to demonstrate the use of:
a) for and for-each loops
b) while and do-while loops
c) break and continue statements inside loops