Docsity

Lesson 15 Programming Paradigm, Exams of Programming Paradigms

Toggle sidebar
bg1
Lesson 15: Programming
Paradigm
Ability to use inheritance - ANSis the single most distinguishing feature of the
OOP paradigm.
Abstraction - ANSIt is a technique for hiding complexity of computer systems.
Array - ANSProgramming with powerful array operators that usually make
loops unnecessary.
Aspect-oriented - ANSProgramming cross-cutting concerns applied
transparently.
Class-based - ANSObjects get state and behavior based on membership in a
class.
Classes - ANSObject are organized into __________
Constraint - ANSProgramming by specifying a set of constraints. An engine
finds the values that meet the constraints.
Declarative - ANSProgramming by specifying the result
you want, not how to get it.
Event-driven - ANSProgramming with emitters and listeners of asynchronous
actions.
pf3
pf4
pf5

Partial preview of the text

Download Lesson 15 Programming Paradigm and more Exams Programming Paradigms in PDF only on Docsity!

Lesson 15: Programming

Paradigm

Ability to use inheritance - ANSis the single most distinguishing feature of the OOP paradigm. Abstraction - ANSIt is a technique for hiding complexity of computer systems. Array - ANSProgramming with powerful array operators that usually make loops unnecessary. Aspect-oriented - ANSProgramming cross-cutting concerns applied transparently. Class-based - ANSObjects get state and behavior based on membership in a class. Classes - ANSObject are organized into __________ Constraint - ANSProgramming by specifying a set of constraints. An engine finds the values that meet the constraints. Declarative - ANSProgramming by specifying the result you want, not how to get it. Event-driven - ANSProgramming with emitters and listeners of asynchronous actions.

First-class Object - ANSthey can be treated as data, assumed to have the value of what they return; therefore, they can be passed to other functions as arguments or returned from functions. Flow-driven - ANSProgramming processes communicating with each other over predefined channels. Function-level programming - ANSdoes away with the variables; one combines functions with functionals, a.k.a. combinators. Examples: FP, FL, J. Functional (Applicative) - ANSProgramming with calls that avoid any global state. Functional languages - ANSare created based on the functional paradigm. Such languages permit functional solutions to problems by permitting a programmer to treat functions as first-class objects Functional or Applicative Programming - ANSis programming without assignment statements: one just applies functions to arguments. Functional Programming - ANS"Evaluate an expression and use the resulting value for something" Functional Programming - ANScontrol flow is expressed by combining function calls, rather than by assigning values to variables. Functional Programming - ANSis in many respects a simpler and more clean programming paradigm than the imperative one.

Logical Programming - ANSThe role of the computer becomes maintaining data and logical deduction. Logical Programming and Constraint Programming - ANSare two paradigms in which programs are built by setting up relations that specify facts and inference rules, and asking whether or not something is true. Message Passing - ANSBecause objects operate independently, they are encapsulated into modules which contain both local environments and methods. Communication with an object is done by ___________ Object-oriented - ANSProgramming by defining objects that send message to each other. OOP - ANSis a paradigm in which real-world objects are each viewed as separate entities having their own state which is modified only by built in procedures, called methods. OOP - ANSObject-Oriented Programming OOP - ANSThe mechanism of modeling a program as a collection of objects of various classes, and furthermore describing many classes as extensions or modifications of other classes, provides a high degree of modularity. Paradigm - ANSis a way of doing something (like programming), not a concrete thing (like a language). Procedural - ANSImperative programming with procedural calls Programming Paradigm - ANSis a style, or "way," of programming.

Prototype-based - ANSObjects get behavior from prototype object. Referential Transparency - ANSThe absence of assignment operations makes the function-oriented programs much more amenable to mathematical proof and analysis than are imperative programs, because functional programs possess _______ Reflective - ANSProgramming by manipulating the program elements themselves. Ruby - ANSis used in many Web Applications Simula-67 - ANSfirst object oriented language Smalltalk - ANSfirst "pure" object-oriented language Structured - ANSProgramming with clean, go-to-free, nested controls structures. Theory of functions - ANSThe reason is that the paradigm originates from a purely mathematical discipline: _______