59.3k views
2 votes
Which of the following is not a term used as a synonym for module?

O a. procedure
O b. object
O c. subroutine
O d. method

User Relrin
by
8.7k points

1 Answer

6 votes

Final answer:

The term not synonymous with module is 'object.' While 'procedure,' 'subroutine,' and 'method' can describe components within a module, an 'object' represents a class instance encapsulating state and behavior in object-oriented programming.

Step-by-step explanation:

The term that is not a synonym for module is object. In computer programming, a module typically refers to a file containing a set of functions, procedures, or classes that provide specific functionality and can be reused across various parts of a program.

The terms procedure, subroutine, and method are often used interchangeably to describe a specific sequence of instructions or function within a module. However, an object is an instance of a class in object-oriented programming and is more complex, encapsulating both state (in the form of attributes or properties) and behavior (as methods specific to that class).

User Andrew Berry
by
8.2k points