Programming - Refined Flashcards
What are the standard algorithms?
5
- Input Validation
- Count Occurence
- Linear Search
- Find Min
- Find Max
Local Variable Defintion
2
- A variable declared in a sub program
- Scope of variable is the sub program it is declared in
Global Variable Defintion
- A variable that is declared outwith a sub program
- Scope of variable is the entire program
Implementation:
Parallel Arrays Definition
Arrays used in conjuction of each other so programmers can display information together
Implementation:
Records Definition
Programmer defined data types
Implementation:
Module Programming Examples
3
- Sub-Program
- Procedure
- Function
Implementation:
Procedure Defintion
Sub-programs designed to perform a series of commands with values sometimes passed to/from another part of the program
Implementation:
Function Definition
Sub-programs designed to always return a single value to another part of the program
Implementation:
What is parameter passing?
When a local variable is passed from one sub program to another
Implementation:
By Reference Definition
The sub-program has direct access to the memory location holding the value. This means any changes to the value being held will be stored.
Implementation:
By Value Definition
The sub-program is given a temporary copy of the value being held in the variable. The value can be changed, but this will not be stored
Implementation:
What are the pre-defined functions?
4
- Character to ASCII
- ASCII to Character
- Decimal to Integer
- Find the Remainder
Implementation:
What are substring functions?
Functions that manipulate a whole string or extract a number of characters from a string, depending on the function
What are the substring functions?
4
- Left
- Right
- Mid
- Uppercase
Implementation:
What is a sequential file used for?
To hold the data in a set sequence/order