Programming paradigms(1.2.4 a) Flashcards
What is a paradigm?
a set of structures, methods, procedures, behaviours, principles or similar that are outlined when a task needs to be done
What is machine code?
code in the language the machines understand 1s and 0s
Examples of high level programming languages
declarative languages
imperative languages
Examples of low level programming languages
assembly language
machine code
High level languages
any level that is not assembly
much easier for humans to interpret
early languages like c# are classed as lower level than modern languages
High level language to machine code
requires a process for translating machine code (usually using interpreter or compiler) reducing efficiency of execution
Different high level language functionality
multiple different languages functionality of which changes as hardware and software evolves
What is an imperative?
to give instructions as to how things need to be done
What type of languages are mostly imperative?
high level languages
e.g python, C#, java, visual basic
What does declarative mean?
to dictate the results of a task but not the method
What languages tend to be declarative?
database query languages tend to declarative simply stating what information they wish to retrieve and letting the DBMS handle details of implementation
Example of query language
SQL
What is procedural programming?
focuses on creating a solution to a problem using fuctions, procedures and subroutines that combine to form a complete program
What is oop made up of?
programs are built of classes which contain attributes and methods