Modules Flashcards
This term is known as the Subunit of programming problem
- break down the programming problems into reasonable units, tackle one small task at a time.
- Also called subroutines, procedures,
functions, or methods
Understanding the Advantages
of Modularization
Modules
Understanding the Advantages
of Modularization
What are the 2 programming languages that use the module “subroutine”
Understanding the Advantages
of Modularization
(COBOL, RPG)
Subroutines
Understanding the Advantages
of Modularization
What are the 2 programming languages that use the module “functions”
Understanding the Advantages
of Modularization
(C, C++)
Functions
Understanding the Advantages
of Modularization
What is the programming language that uses the module “procedures”
Understanding the Advantages
of Modularization
(VB)
Procedures
Understanding the Advantages
of Modularization
What are the 2 programming languages that use the module “methods”
Understanding the Advantages
of Modularization
(C#, Java)
Methods
Understanding the Advantages
of Modularization
This term is known as the process of:
- Breaking down a large program into modules
- Smaller and manageable
Understanding the Advantages
of Modularization
Modularization
Understanding the Advantages
of Modularization
What are the 3 reasons why modularization is important?
Understanding the Advantages
of Modularization
Reasons
* Abstraction or selective ignorance.
* Allows multiple programmers to work on a problem
* Reuse your work more easily
Understanding the Advantages
of Modularization
Which one of the 3 parts of modularization is this?
- Paying attention to important properties while ignoring nonessential details
- This allows developers to interact with modules without needing to understand their internal complexities.
- Selective ignorance
Modularization Provides
Abstraction
Abstraction
Modularization Provides
Abstraction
What advantage of abstraction is this?
- Use English-like vocabulary
- One broad statement corresponds to dozens of machine instructions
Modularization Provides
Abstraction
Newer high-level programming languages
Modularization Provides
Abstraction
TRUE OR FALSE: Modules provide another way to achieve
abstraction
Modularization Provides
Abstraction
TRUE
Modularization Provides
Abstraction
TRUE OR FALSE
Rarely does a single programmer write a
commercial program through modularization
Modularization Allows Multiple
Programmers to Work on a Problem
TRUE
Modularization Allows Multiple
Programmers to Work on a Problem
TRUE OR FALSE: Professional software developers can write new programs quickly by dividing large programs into
modules through modularization
Modularization Allows Multiple
Programmers to Work on a Problem
TRUE
Modularization Allows Multiple
Programmers to Work on a Problem
This is one of the features of modular programs:
- Allows individual modules to be used in a
variety of applications - Many real-world examples of reusability
Modularization Allows You to
Reuse Your Work
Reusability
Modularization Allows You to
Reuse Your Work
What are the basic steps (mainline logic) of a program?
Modularizing a Program
Main program
Modularizing a Program
What are the 3 components to include in a module?
Modularizing a Program
- Header
- Body
- Return Statement
Modularizing a Program
This part of a module includes the module identifier
Modularizing a Program
Header
Modularizing a Program
This part of a module contains all the statements in the module
Modularizing a Program
Body
Modularizing a Program
This is the part of a module that marks the end of the module and identifies the point at which control returns to the program or module that called the module
Modularizing a Program
Return Statement
Modularizing a Program
In naming this, it is
* Similar to naming a variable
* Module names are followed by a set of parentheses
Modularizing a Program
Naming a module
Modularizing a Program
TRUE OR FALSE
Module names must be one word
Modularizing a Program
TRUE
Modularizing a Program
TRUE OR FALSE
Module names can have NO meaning
Modularizing a Program
FALSE
Modularizing a Program
TRUE OR FALSE
Module names can have NO meaning
Modularizing a Program
FALSE
Modularizing a Program