progweek3 Flashcards
looping
the repetition of the same procees multiple
times until a specific condition is satisfied, then it will stop.
Actually, looping can simplify complex problems into simple ones.
while loops, does or does not depend upon the number of iterations?
does not
Recursion is
a programming technique in which a function calls itself.
In recursion, there is a _ that is (are) tested for
_.
base case (or cases)
upon entry to the function
In recursion, there is a _ step (or steps) in which one of the variables is
_ in a way that will lead to the base case.
recursive
passed as an argument
The structure type allows us to :
aggregate variables of different types.
A header file is
a file with extension .h which contains C function
declarations and macro definitions to be shared between several source
files.
here are two types of header files:
files that the programmer writes, and
files that comes with your compiler.
In the C language, structures can be _ to functions
and can be _.
You can pass to a self-defined function:
passed as arguments
returned from them
individual members,
an entire structure,
or a pointer to the structure.
Abstraction is
a key mechanism that helps to solve problems in general
and to write cleaner, safer, and simpler programs.
Computer systems are essentially :
stratifications of layers of abstraction
The logic gates in our physical machine take _.
continuous signals and
produce a system which works in binary.
The operating systems creates _.
an abstraction of the physical
machine (e.g., providing an abstract version of the memory of the
system, of each device, etc.).
Modularization:
When we have a medium/big problem we want to decompose it in
subproblems and use di↵erent modules to solve each subproblem.
These modules then cooperate to solve the original problem.
There are essentially two ways to abstract in our programs (independently
on the language we use):
parametrization
specification(API)