Procedural Language Flashcards
What is Procedural Language used for?
wide range of softwaere development as its easy to implement.
not possible to solve all kinds of problems with it or may b eineffiencient
uses traditional data types such as integers and strings which are built into the language + provide data structures like dictionaries and arrays
Procedural Language (Mark Scheme)
- High-level, 3rd generation, imperative languages.
- Use sequence, selection and iteration.
- Program gives a series of instructions in a logical order line by line to state what to do and how to do it.
- Program statements are in blocks called procedures and functions.
- Break the solution down into subroutines which are rebuilt and combined to form a program.
- Statements are in a specific order i.e. sets tasks to be completed in a specific way.
- Logic of program is given as a series of procedure calls.
Examples include: VB.NET and Python.
What data types does Procedural Languages use?
integers, strings
built into the language and provide data structures like dictionaries and arrays
What is Structured Programming?
popular subsection of procedural programming in which control flow is given by 4 main programming structures
sequence - code executed line by line
selection - certain block of code is run if a specific condition is met using IF statements
iteration - block of code executed a certain number of times or while condition is met. FOR, WHILE, or REPEAT UNTIL loops
Recursion - fucntions are expressed in terms of themselves
function are executed, callining themselves, until condition known as base case (which doesn’t call function) is met
What types of problems is Procedural programming for?
problems that can be easily expressed as a series of instructions using sequence, selection, iteration, recursion