Java Games: Flashcards, matching, concentration, and word search.

C++ Lambert Ch 4

AB
bottom-up testingthe independent testing of modules
functiona subprogram
subprogramsprograms within a program, completing one task
abstract data type (ADT)defined types consisting of a class of objects, a defined set of properties of the objects and a set of processes for processing the objects
function implementationdescribes in detail how the function performs its task
function headingthe first line of the function implementation - looks like the function declaration
actual parametersused when the function is called
function declarationits name, the number and kind of arguments it expects when you invoke it and the type of value, if any, that it returns
formal parametersan argument name following each type in the argument list of a function
locally declared datavariables declared within the local block of the functgion and are only needed within the function
stub programminga no-frills, simple version of what will be a final program, tests for correct logic and value passing
main drivermain function
void functionreturns no values
allocatesthe system reserving memory locations
deallocatesthe system releasing memory locations
local copya copy of the value indicated by a value parameter and used within a function
reference parameter - passed by referrencerequires the address of the actual parameter to be passed to the subprogram - the actual parameter can be changed by the subprogram
aliashas & preceding the formal parameter name
value parameter - passed by valuea copy of the value is passed to a function and not returned by it - does not change the actual values
constance reference parameteris passed by reference but all assignments to it within the body of the function where it is declared are disallowed
cohesive subprogramperforming a single task
preconditiona comment that states precisely what is true before a certain action is taken
postconditiona comment that states precisely what is true after a certain action is taken
interfacea formal statement of how communication between independent subprograms and the main function occurs
argumentsinputs or data received by the function
value or resultthe output of information returned
scope of the identifierarea of the program text in which the identifier can be used
global identifierdeclared before the main block
local identifierrestricted to be used within its declared block
side effecta change in a nonlocal variable that is the result of some action taken in a program
manifest interfacewhen a function declaration shows what data the function is manipulating
library header filedeclare functions and end with a .h extension
library implementation fileimplement functions and has a .cpp extension
modularitya program created using modules to perform various tasks
information hidingnot allowing the implementation details of a subprogram to be seen in the main program
blockan area of a program text
functional abstractionthe process of considering only what a function is to do rather than the details of the function
modulecode written to provide one well-defined task
structured designa method of designing software by specifying modules and the flow of data among them
structured programmingthe process of developing a program where emphasis is placed on the flow of control between independent modules
procedural abstractionfunctional abstraction in programs having procedures rather than functions


The Summit Country Day School
Cincinnati, OH

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities