Q: What is the main focus of procedural programming?
-
A
Objects and their interactions
-
B
Functions and procedures
-
C
Class hierarchies
-
D
Data encapsulation
B
Answer:
B
Explanation:
Procedural programming primarily focuses on functions and procedures as the core elements of the program. It emphasizes the sequence of tasks or operations to be performed, often in a step-by-step manner. In this paradigm, the program is structured as a series of procedures or routines that manipulate data, with the main goal being the execution of these routines. The logic of the program is built around these procedures, which are called in a specific order to achieve the desired outcome. Unlike object-oriented programming, procedural programming does not emphasize objects or class hierarchies. Instead, it relies on the use of functions, procedures, and modular design to break down complex problems into smaller, manageable tasks. This approach makes it easier to understand and maintain simple programs, but it can become challenging to manage as the complexity of the software increases. Additionally, procedural programming often involves direct manipulation of data, which can lead to issues with data integrity and maintenance.
Related Topic:
Share Above MCQ