Docsity

Programming Paradigms Midterm Questions, Exams of Programming Paradigms

Toggle sidebar
bg1
Programming Paradigms
declarative languages bad for: - ANSControl over what the computer is
actually doing!
declarative languages example languages - ANSSQL, Prolog
declarative languages good for: - ANSDatabases, Expert systems, Artificial
Intelligence
declarative languages key features - ANSQueries, C.R.U.D., Facts and Rules,
Relationships
describe the the characteristics of the following programming paradigms
low level [2] - ANS- describes machine code/assembly language
- language which use the basic machine operations of the processor
- assembly language has one to one mapping withi machine code
- assmebly language uses mneumonics
functional languages bad for: - ANSBeginners (but they're totally worth the
effort!)
functional languages example languages - ANSJavaScript, LISP and countless
other multi-paradigm languages Haskell (Pure functional language)
functional languages good for: - ANSRobust, predictable and reliable code.
Efficient and highly optimisable code. Concurrency safe processing.
pf3
pf4

Partial preview of the text

Download Programming Paradigms Midterm Questions and more Exams Programming Paradigms in PDF only on Docsity!

Programming Paradigms

declarative languages bad for: - ANSControl over what the computer is actually doing! declarative languages example languages - ANSSQL, Prolog declarative languages good for: - ANSDatabases, Expert systems, Artificial Intelligence declarative languages key features - ANSQueries, C.R.U.D., Facts and Rules, Relationships describe the the characteristics of the following programming paradigms low level [2] - ANS- describes machine code/assembly language

  • language which use the basic machine operations of the processor
  • assembly language has one to one mapping withi machine code
  • assmebly language uses mneumonics functional languages bad for: - ANSBeginners (but they're totally worth the effort!) functional languages example languages - ANSJavaScript, LISP and countless other multi-paradigm languages Haskell (Pure functional language) functional languages good for: - ANSRobust, predictable and reliable code. Efficient and highly optimisable code. Concurrency safe processing.

functional languages key features - ANSFirst Class, Higher Order and Pure Functions. Immutability. Functional programming - ANSA way of writing software applications using only pure functions and immutable values. low level languages bad for: - ANSPortability, abstraction, rapid development. low level languages examples - ANSARM Assembly, x86 Assembly, LMC low level languages good for: - ANSDevice drivers, OS development (particularly embedded systems), ultra high performance code low level languages key features - ANSOpcodes (Mnemonics), Operands, Registers, Memory Modes OOP bad for: - ANSEfficient code for limited resource environments, transparent (easy to trace) code, concurrent programming. OOP example languages - ANSJava, C++, C#, Python, JavaScript and countless others OOP good for: - ANSAbstraction when dealing with real world objects. Modularity. OOP key features - ANSEncapsulation, Instantiation, Inheritance, Polymorphism.

programs split into small units/objects which are used (by other objects) to build a complex system uses encapsulation to hide data within objects/object only accessed through methods inheritance superclass/subclass/derived classes