Procedural Programs Flashcards
What is selection?
Choosing what code to run dependent on either an IF statement with conditions or a SELECT CASE statement.
What is a SELECT CASE statement?
A SELECT CASE statement allows multiple values and is easy to add more onto. It is generally simpler than an IF statement.
What is Iteration?
The repetition of code for a set number of times or until a condition is met.
What are the three iterative loops?
FOR
WHILE
DO UNTIL
What is a statement?
An self-contained element in a programming language.
What is a subroutine?
A self-contained block of code, which usually performs one specific job.
What is a procedure?
A self-contained block of code, which usually performs one specific job, and often needs data passed to it for it to work.
What is a function?
A self-contained block of code that performs one job, usually needs data passed to it for it to work and always returns only one piece of data.
What is a parameter?
A piece of data that is passed to a function or procedure for it to work.
What is a recursive function?
A function that calls itself from within itself.
What is recursion?
It is where a sub-program is called from within itself.