Back to marketplace

modular programming

No description yet. This curated deck is ready for daily study.

Total cards: 11•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (11)

#1
Front (Question)

decomposition

Back (Answer)

break down large problem into smaller problems. break down a large program into sub- procedures (modules)

#2
Front (Question)

procedures

Back (Answer)

do not return a value

#3
Front (Question)

functions

Back (Answer)

do return a value

#4
Front (Question)

advantages of decomposition/ modular programming

Back (Answer)

• each small prob is easier to solve • can share programming among a team • program more readable • modules are re- usable

#5
Front (Question)

how modules are held in memory

Back (Answer)

a new area of memory opens while the module runs and closes when it finishes running

#6
Front (Question)

local variables

Back (Answer)

can only be used inside the module lost when the module closes

#7
Front (Question)

global variables

Back (Answer)

can be used anywhere in the program changes to them are permenant

#8
Front (Question)

parameters

Back (Answer)

values passed from main prog to module are used like variables in the module

#9
Front (Question)

returned values

Back (Answer)

when function stops a single value can be returned to the main program. it must be captured or it will be lost.

#10
Front (Question)

parameter passed by value

Back (Answer)

module gets a copy of the value, and it does not change the values in the main program

#11
Front (Question)

parameter passed by reference

Back (Answer)

the module gets access to the original variable’s memory location. therefore it can change values used in the main program without using return.