Procedural Language Flashcards

1
Q

What is Procedural Language used for?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Procedural Language (Mark Scheme)

A
  • 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What data types does Procedural Languages use?

A

integers, strings

built into the language and provide data structures like dictionaries and arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Structured Programming?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What types of problems is Procedural programming for?

A

problems that can be easily expressed as a series of instructions using sequence, selection, iteration, recursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly