Principles of programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a class?

A

a data structure that can hold data and functions; a template for creating objects

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

What is an object?

A

Something produced according to the template of class

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

What is a method?

A

Controls the behaviour of a class

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

What is encapsulation?

A

Data is hidden (encapsulated) in a function. Outside world will call the function but won’t necessarily know what’s in it
Can’t access data directly- hidden so it’s safe from accidental alteration

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

What are UML diagrams?

A

Unified modelling language

  • Standard way to design and plan OOP system
  • Allows systems analysts, programmers and clients to communicate
  • Makes system maintenance easier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are features of procedural language?

A
  • Work sequentially
  • Made up of statements e.g selection, iteration, procedures
  • Made up of a series of commands
  • Simplest programming paradigm
  • Use statements to change state of program
    e. g Python, C
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are features of visual programming language?

A

Uses intuitive user interfaces to help build program
not ideal for larger more advanced problems
less space for code as taken up by interface
uses elements of event driven paradigm.
e.g scratch, blocky

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