High Level Programming Paradigms Flashcards

1
Q

Explain the term derived class.

A
  • A class that has all the attributes and methods of its superclass.
  • It may also have attributes and methods of its own.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define paradigm.

A

A fundamental style of computer programming, serving as a way of building the structure and elements of computer programs.

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

Define class.

A

A template definition of the methods and variables in a particular kind of object.

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

Define object.

A

A particular instance of a class where the object can be a combination of variables, functions and data structures.

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

Define instance.

A

An object.

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

Define attribute.

A

A property or characteristic of an object class used to edit or retrieve the attributes.

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

Define encapsulation.

A

The concept that data can only be access by the method provided by the class.

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

Define inheritance.

A

The concept that when a class of objects is defined, any subclass that is defined can inherit the methods and attributes of that class as well as have some of its own.

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

Define polymorphism.

A

This refers to a programming language’s ability to process objects differently depending on their data type or class. It is the ability to redefine methods for derived classes.

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

Define overloading.

A

Function overloading or method overloading is the ability to create multiple methods of the same name with different implementations.

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

Define constructor.

A

A special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.

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

Define abstraction.

A

Abstraction is where a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.

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

What is the purpose of an object diagram?

A
  • give information about instances of a class…

- & how they link (at specific times)

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

What must be added to an object diagram for it to become a communication diagram?

A
  • message/interaction

- from one object to another

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

In declarative, what is the term used where found answers are set to variables?

A

Instantiation

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

Describe the features of a procedural high level language.

A
  • imperative language
  • uses sequence, selection & iteration
  • program states what to do…
  • … & how to do it
  • program statements are in blocks
  • each block is a procedure or function
  • logic of program is given as a series of procedure calls
17
Q

Name the five UML diagrams.

A
  • Case
  • State
  • Sequence
  • Activity
  • Communication