Shared Flashcard Set

Details

CST 120 Chapter 3
Modules
41
Computer Science
Undergraduate 3
11/19/2015

Additional Computer Science Flashcards

 


 

Cards

Term
A ____ is a group of statements that exist within a program for the purpose of performing a specific task.
Definition
module
Term
____and ____ is when a large task is divided into several smaller tasks that are easily performed.
Definition
Divide conquer
Term
Modules are commonly called ____, ____, ____, ____, and ____.
Definition
procedures subroutines subprograms methods functions
Term
____: writing code to perform a task once and then reusing it each time you need to perform the task.
Definition
code reuse
Term
To create a module you write its ____.
Definition
definition
Term
In most languages, a module definition has two parts: a ____ and a ____.
Definition
header body
Term
The ____ indicates the starting point of the module.
Definition
header
Term
The ____ is a list of statements that belong to the module.
Definition
body
Term
Many programming languages require that programs have a ____.
Definition
main module
Term
____ is when a computer saves the memory address of the location that it should return to immediately after the module call.
Definition
Return point
Term
When a program calls a module, programs commonly say that the ____ of the programs transfers to that module.
Definition
control
Term
Many languages, including Java, C, and C++, require that the main module actually be named ____.
Definition
main
Term
Programmers commonly use a technique known as ____-____ ____ to break down an algorithm into modules.
Definition
top down design
Term
The top-down design process is sometimes called ____.
Definition
stepwise refinement
Term
A ____ shows boxes that represent each module in a program.
Definition
hierarchy chart
Term
A hierarchy chary is also known as a ____.
Definition
structure chart
Term
In most programming languages, a variable that is declared inside a module is called a ____.
Definition
local variable
Term
The term ____ is meant to indicate that the variable can be used only locally, within the module in which it is declared.
Definition
local
Term
Programmers commonly use the term ____ to describe the part of a program in which a variable may be accessed.
Definition
scope
Term
All variable that exist within the same scope must have ____ names.
Definition
unique
Term
Pieces of data that are sent into a module are known as ____.
Definition
arguments
Term
A ____, often simply called a ____, is a special variable that receives an argument when a module is called.
Definition
parameter variable parameter
Term
____ is the list of parameter variables inside the parenthesis of a module header.
Definition
Parameter list
Term
Many programming languages provide two different ways to pass arguments: by ____ and by ____.
Definition
value reference
Term
Passing as argument by ____ means that only a copy of the argument's value is passed into the parameter variable.
Definition
value
Term
Passing an argument by reference means that the argument is passed into a special type of parameter known as a ____.
Definition
reference variable
Term
In an actual program you should never use variable names like ____, ____, and ____.
Definition
x y z
Term
Normally, only ____ may be passed by reference.
Definition
variables
Term
If you attempt to pass a ____-____ argument into a reference variable parameter, an error will result.
Definition
non variable
Term
A ____ is a variable that is visible to every module in the program.
Definition
global variable
Term
Global variables make ____ difficult.
Definition
debugging
Term
Modules that use ____ are usually dependent on those variables.
Definition
global variables
Term
____ make a program hard to understand.
Definition
Global variables
Term
A ____ is a named constant that is available to every module in the program.
Definition
global constant
Term
A program's code tends to be simpler and easier to understand when it is ____.
Definition
modularized
Term
The code for a module is known as ____
Definition
module definition
Term
____ the statements in the body of a module is not usually required, but it makes your code much easier to read.
Definition
Indenting
Term
In a flowchart, modules are represented by a ____ with ____ bars.
Definition
rectangle vertical
Term
When drawing a flowchart for a module, the starting terminal symbol usually shows the ____ of the ____.
Definition
name module
Term
The ending terminal symbol in the main module reads ____ because it marks the end of the program's execution.
Definition
End
Term
Different modules can have ____ with the same names because the modules cannot see each other.
Definition
local variable
Supporting users have an ad free experience!