Procedural languages.
1.2.4 Types of Programming Language
Practise exam questionsTypes of Programming Language — Note 2 of 5
Candidates need to have knowledge and experience of using a procedural programming language for example Python, VB.NET etc. Candidates need to be experienced in using procedural programming features such as (but not limited to) variables, constants, selection, iteration, sequence, subroutines, string handling, file handling, Boolean and arithmetic operators. Candidates need to be able to read, trace, amend and write procedural program code.
Procedural languages structure a program as a sequence of instructions, grouped into procedures and functions that can be called when needed. Most programming you do in Python follows this paradigm.
A language in which a program is a series of step-by-step instructions, broken down into subroutines (procedures and functions).
def calculate_total(prices):
total = 0
for price in prices:
total = total + price
return total
basket = [2.50, 1.20, 4.00]
print("Total:", calculate_total(basket))Ready to test yourself?
Practise 1.2.4 questions