o Function - A subroutine that contains one or o Function Call - The act of invoking a function.
It more statements and performs a single well- is the only way a function exists. defined task.
o Argument - The value passed to a function
o Pre-defined Function - A function was written when it is called. by another programmer that is already available for use. Examples include printf(), pow(), and sqrt(). o Void - A keyword used to indicate that a function does not require any input or output parameters. o User-defined Function - A function that is written or implemented by the programmer. It is customized to fit the specific requirements of o Mathematical Operation - A process or the program. calculation that involves one or more numbers, such as addition, subtraction, multiplication, or division. o Main Program - The main function where program execution begins. o Switch Statement - A control statement used in programming languages to select one of many o Subprogram - A function is a subprogram that possible code blocks to execute. has the same life cycle as a program.
o Minuend - The number from which another
o Parameter - A variable that is passed to a number is subtracted. function when it is called. The function then operates on the parameter. o Subtrahend - The number that is subtracted from another number. o Return Statement - A statement used in functions to return a value or cause an immediate exit from the function. o Dividend - The number being divided in a division operation.
o Function Declaration/Prototype - A declaration
that is read by the compiler when a function is o Divisor - The number by which the dividend is called to check whether the name exists and divided in a division operation. whether the number of parameters and data types are correct based on how it is declared. o Data Abstraction - is a process of providing only the essential details to the outside world and o Function Definition/Implementation - A set of hiding the internal details, i.e., representing statements that perform the task asked for by only the essential details of the program. It is a the function. programming technique that depends on the separation of the interface and implementation details of the program. o Base case - The simplest version of the problem o Dynamic programming - A technique of that can be solved directly without calling the breaking down a problem into smaller function again. It is also called the stopping subproblems and solving each subproblem only criterion or exit condition. once, storing the solutions in a table to avoid redundant computation. This can improve the performance of recursive functions, especially o Recursive case - The complex version of the those with optimal substructure and problem that requires the function to call itself overlapping subproblems. one or more times to solve the problem.
o Recursion - is an alternative to iteration
o Recursion depth - The number of times the (descending order). Because a recursive function calls itself before reaching the base function repeatedly calls itself, to terminate, the case. It is also called the call stack depth or base case should arrive. Thus in the complex recursion level. case, a part is an update to the parameter to arrive at the base case.
o Recursive function - A function that calls itself
to solve a problem. o Pointer - A variable that stores the memory address of another variable.
o Direct recursion - When a function calls itself
directly. o Data type - indicates what type of variable the pointer is allowed to point to. Thus, if a pointer has to point to a character, the data type of the o Indirect recursion - When a function calls pointer should be char. For the above example, another function that eventually calls the ptr can only point to an integer variable. original function, creating a loop.
o Indirection - Referencing a value through a
o Tail recursion - A special case of direct recursion pointer. where the recursive call is the last statement in the function. It allows some compilers to optimize the code to use less memory. o Address Operator (&) - A unary operator that returns the memory address of its operand.
o Recursive data structure - A data structure
containing a reference to itself creates a loop. o Indirection Operator \ Dereferencing operator Examples include linked lists, trees, and graphs. (*) - A unary operator that returns the value of the object to which its operand, a pointer, points. o Memorization - A technique of storing the results of expensive function calls and returning the cached result when the same inputs occur o Pass by reference - A technique that uses again. This can improve the performance of pointers to pass the address of a variable as a recursive functions, especially those with parameter to a function instead of its value. overlapping subproblems. o Array - A variable that can store multiple values of the same data type.
o Array subscript - An integer value used to
access an element in an array.
o Declaration - The process of defining an array in
C using its data type and size.
o Initialization - The process of assigning initial
values to the elements of an array during its declaration.
o Index - A position in an array, starting from 0,
used to access its elements.
o Input/output - The process of reading from or
writing to an array. This can be done using a loop and the standard input/output functions.
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More