Module 1 - Topic 1.9: Types of Programming Languages

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

Procedural Programming

Execution of code is based on each statement, called procedures. Originated from structural programming. Programs are written step-by-step as a list of instructions. Examples: COBOL, Algol.

2
New cards

Procedure

A mini-program or block of code that performs a specific task and can be called from anywhere in the main program.

3
New cards

Object-Oriented Programming (OOP)

Encapsulates data and behavior into objects that can interact with each other. Procedures are called methods. A class acts as the blueprint for objects. Examples: C++, Java, Swift.

4
New cards

Method

A function or procedure that belongs to a specific object or class in OOP.

5
New cards

Class

A blueprint that defines the attributes (data) and methods (behavior) of objects in OOP.

6
New cards

Functional Programming

Passes data from function to function to produce a result. Treats functions as data that can be passed, returned, and combined to form new functions. Avoids shared state and uses immutable data. Examples: Haskell, Lisp.

7
New cards

Immutable Data

Data that cannot be changed once created, common in functional programming.

8
New cards

Pure Function

A function that always returns the same result when given the same input, without side effects.

9
New cards

Logic Programming

Based on formal logic, using facts and rules to derive conclusions. Programs consist of logical statements, and computation is the process of proving queries. Examples: Prolog, Datalog.

10
New cards