Programming paradigms(1.2.4 a) Flashcards

1
Q

What is a paradigm?

A

a set of structures, methods, procedures, behaviours, principles or similar that are outlined when a task needs to be done

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is machine code?

A

code in the language the machines understand 1s and 0s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Examples of high level programming languages

A

declarative languages
imperative languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Examples of low level programming languages

A

assembly language
machine code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

High level languages

A

any level that is not assembly
much easier for humans to interpret
early languages like c# are classed as lower level than modern languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

High level language to machine code

A

requires a process for translating machine code (usually using interpreter or compiler) reducing efficiency of execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Different high level language functionality

A

multiple different languages functionality of which changes as hardware and software evolves

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an imperative?

A

to give instructions as to how things need to be done

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of languages are mostly imperative?

A

high level languages
e.g python, C#, java, visual basic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does declarative mean?

A

to dictate the results of a task but not the method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What languages tend to be declarative?

A

database query languages tend to declarative simply stating what information they wish to retrieve and letting the DBMS handle details of implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Example of query language

A

SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is procedural programming?

A

focuses on creating a solution to a problem using fuctions, procedures and subroutines that combine to form a complete program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is oop made up of?

A

programs are built of classes which contain attributes and methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly