Programing Paradigms Flashcards Preview

Computing > Programing Paradigms > Flashcards

Flashcards in Programing Paradigms Deck (15):
0

Imperative programming = ?

Assembly language is a low language.
Second generation

1

Functional programming - programming language=?

Haskell, lisp, python

2

What's Functional programming

Programs define mathematical functions. A solution to a problem consist of a series of function calls that manipulate list

3

Logic programming language

Prolog

4

What does logic programs consist of?

Logic programs consist of set of facts and rules.

5

What is logic programming usually used for

To program artificial intelligence and expert system

6

What's an object

An instance of a class

7

Define the word instantiatiom

Instantiation is when an object is defined based on a class

8

Class definition is...

A pattern/template that can be used to create objects of that class

9

What's "encapsulation"

Making sure the data in a class can't be modified from elsewhere. If something is set as private, won't be able to access it externally.

10

Example of Instantiation

Dim Polo as new car

11

Example of encapsulation access

Public sub (byval s as integer) as integer
MaxSpeed s
End sub

12

What inheritance

Where a new class can inherit the attributes and methods of a parent class

13

Event driven programming

Event is an action detected by a program.

14

What's a pointer

A pointer is a data type whose value points to another value store elsewhere in the computer memory using it address