2.?.? (Programming paradigms) Flashcards

1
Q

What is a programming paradigms?

A
  • An approach to programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is procedural programming?

A
  • Building block: single instructions
  • Built in data types and basic structures
  • Instructions run in order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of procedural programming?

A
  • Easier to learn and use than other languages
  • Require little in the way of structure for simple tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the disadvantages for procedural programs?

A
  • Require a lot of code for complex programs
  • Less efficient than other paradigms due to the need to repeat code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is functional programming?

A
  • Building block: functions
  • All instructions contained in functions
  • program runs by running functions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the advantages of functional programming?

A
  • Functions can be reused, saving code and time
  • Variables can be protected within functions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the disadvantages of functional programming?

A
  • Higher barrier to entry
  • Lots of structures needed even for simple tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is declarative programming?

A
  • Building block: statements
  • User states the desired task or outcome
  • The language works out the best way to deliver the outcome
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages for declarative programming?

A
  • Much less code knowledge needed from user
  • Program selects efficient methods to solve tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the disadvantages for declarative programming?

A
  • Less control over method of problem solving
  • unusual
How well did you know this?
1
Not at all
2
3
4
5
Perfectly