Programming Paradigms Flashcards

1
Q

Object

A

Are the fundamental core of the Object Oriented paradigm , is an instance of a class. It has methods and properties

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

Use Case Diagrams

A

a means for specifying required usages of a system. Typically, they are used to capture the requirements of a system, that is, what a system is supposed to do.

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

Encapsulation

A

Restricting how an object’s data can be accessed

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

Method

A

any object that an object (based on a class) can perform

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

Contructors

A
class methods that are executed automatically when an object of a given type is created.
They usually initialise the instance variables of the new object.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Destructors

A

used to destruct instances of classes. They will also reclaim any unmanaged resources ( mainly memory) allocated

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

Class Libraries

A

A collection of classes.

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

Derived Classes

A

inherit the properties and methods of the base/superclass

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

Multiple Inheritance

A

derived classes can inherit from multiple classes.

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

Concurrent Programming

A

when processes are overlapping instead of sequentially

These could be distributed (not all process running on a single system)

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

Coordination

A

Threads needs to use various coordination methods to ensure that the task is completed successfully

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

Race Conditions

A

When different threads are independently altering the state of a value. Locks are a way to prevent this.

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

Deadlock

A

A situation in which 2 or more competing threads are waiting for the other to finished, and so neither does.

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

Resource Starvation

A

When one thread is perhaps using all available CPU time or RAM or some other resource

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

What is the difference between an object and a class

A

An object is an instance of a class, a class is a template that defines the methods and attributes.

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

What line of code would you need to initiate an object?

A

DECLARE firstobject INITIALLY classname(“attribute1”,”attribute2”…)

17
Q

What line of code would you need to initiate an array of objects?

A

DECLARE arrayname AS ARRAY OF objectname * numberinarray (integer)

18
Q

Instantiation

A

Creating an object from a class.

19
Q

Modularity

A

Being able to combine commands into a single block of self-contained code