SLR3 Programming paradigms Flashcards

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

Procedural languages

A

“Any high-level language in which program statements can be grouped in self-contained blocks called procedures and functions. These procedures have their own variables, not accessible outside the procedure.”

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

Object-Oriented Programming

A

“A method of programming which classifies real-world objects and encapsulates those objects’ attributes and behaviours.”

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

Hierarchy chart

A

“A diagram which looks like an upside-down tree, with one node at the top (root) and many below. It is used when designing solutions to problems to help break a large problem down into several small parts.”

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

Structured approach

A

“A logical approach taken to breaking down a large program so that it is easier to understand and solve. Quite often, this involves creating a top-down modular design of a problem using a process known as step-wise refinement.”

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

Class

A

“A type definition of an object.”

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

Object

A

“An instance of a class.”

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

Instantiation

A

“The process of creating an actual named instance of a class. The instantiated named copy of the class is an object of that class.”

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

Encapsulation

A

“All the object’s attributes are contained and hidden in the object, and access to them is restricted to operations of that class.”

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

Inheritance

A

“When a derived class is defined, it also has all the attributes and methods of the base class.”

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

Aggregation

A

“A weak ‘has a’ relationship, if the container object is destroyed, the object(s) contained within will continue to exist.”

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

Composition

A

“A strong ‘has a’ relationship, if the container object is destroyed, the object(s) contained within are also destroyed”

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

Polymorphism

A

“A specialised form of overloading which allows us to create very general object structures, which can be used with a wide range of data types.”

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

Overriding

A

“A method in a subclass or derived class which has the same name as a method in one or more of its superclasses. The method supersedes all other versions of the method above it in the inheritance tree.”

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

Encapsulation

A

“All the object’s attributes are contained and hidden in the object, and access to them is restricted to operations of that class.”

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

Class diagram

A

“A diagram from the Unified Modelling Language (UML) which describes the structure of a class, its attributes, methods, etc.”

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

“Any high-level language in which program statements can be grouped in self-contained blocks called procedures and functions. These procedures have their own variables, not accessible outside the procedure.”

A

Procedural languages

17
Q

“A method of programming which classifies real-world objects and encapsulates those objects’ attributes and behaviours.”

A

Object-Oriented Programming

18
Q

“A diagram which looks like an upside-down tree, with one node at the top (root) and many below. It is used when designing solutions to problems to help break a large problem down into several small parts.”

A

Hierarchy chart

19
Q

“A logical approach taken to breaking down a large program so that it is easier to understand and solve. Quite often, this involves creating a top-down modular design of a problem using a process known as step-wise refinement.”

A

Structured approach

20
Q

“A type definition of an object.”

A

Class

21
Q

“An instance of a class.”

A

Object

22
Q

“The process of creating an actual named instance of a class. The instantiated named copy of the class is an object of that class.”

A

Instantiation

23
Q

“All the object’s attributes are contained and hidden in the object, and access to them is restricted to operations of that class.”

A

Encapsulation

24
Q

“When a derived class is defined, it also has all the attributes and methods of the base class.”

A

Inheritance

25
Q

“A weak ‘has a’ relationship, if the container object is destroyed, the object(s) contained within will continue to exist.”

A

Aggregation

26
Q

“A strong ‘has a’ relationship, if the container object is destroyed, the object(s) contained within are also destroyed”

A

Composition

27
Q

“A specialised form of overloading which allows us to create very general object structures, which can be used with a wide range of data types.”

A

Polymorphism

28
Q

“A method in a subclass or derived class which has the same name as a method in one or more of its superclasses. The method supersedes all other versions of the method above it in the inheritance tree.”

A

Overriding

29
Q

“All the object’s attributes are contained and hidden in the object, and access to them is restricted to operations of that class.”

A

Encapsulation

30
Q

“A diagram from the Unified Modelling Language (UML) which describes the structure of a class, its attributes, methods, etc.”

A

Class diagram