computer science programming paradigms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

25 Terms

1
New cards

Name the diagram of programming paradigms and how it branches

Programming paradigm

Imperative Declarative

Procedural object orientated Functional logic


2
New cards

What is a programming paradigm?

Approaches used to categorise or classify programming languages based on techniques and features they support

3
New cards

What is imperative programming?

The oldest most basic programming approach which describes a step-by-step process for a program’s execution

4
New cards

What is declarative programming?

Describes what you want the program to achieve rather than how it should be run

5
New cards

What is a high level language?

Uses simple, readable commands that are easier for programmers to understand

6
New cards

What is a low level language?

Much closer to the hardware and gives programmers more control over the hardware

7
New cards

What is procedural programming?

A programming style where a program is written as a sequence of instructions that are carried out step by step

8
New cards

What is a class?

A blueprint used to create objects. It defines attributes and methods that objects will have.

9
New cards

What is an attribute?

A characteristic of an object

10
New cards

What is a superclass?

Refers to a class from which other classes are derived

11
New cards

What is a subclass?

A class that inherits from another class

12
New cards

What is encapsulation?

Bundling data into a single class and restricting direct access

13
New cards

What is polymorphysm?

Where the same method can produce different outputs depending on the object

14
New cards

What is composition?

When an object is composed of one or more other objects

15
New cards

What is functional programming?

A paradigm that solves problems using functions

16
New cards

What is logic programming?

A paradigm where rules and facts are used to solve problems through logical reasoning

17
New cards

What is a translator?

A software that converts source code written by a programmer into machine code so the computer can execute it

18
New cards

What is a compiler?

Translates the whole program at once

19
New cards

What is an interpreter?

Translates and executes one line at a time

20
New cards

What is an assembler?

converts assembly language into machine code

21
New cards

What is immediate addressing?

Data is included directly in the instruction

22
New cards

What is direct addressing?

Instruction contains a memory address of the data

23
New cards

What is indirect addressing?

Instruction points to an address to an address that contains another address

24
New cards

What is indexed addressing?

Actual memory address is calculated by adding an index value to an address stored in an instruction

25
New cards