20 - further programming Flashcards

1
Q

programming paradigm

A

a set of programming concepts
- low level, imperative, object oriented, declarative

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

low level programming

A

programming instructions that use the computer’s basic instruction set.
- assembly language, machine code
- used when program makes use of specific addresses and registers in a comp
eg writing a printer driver

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

imperative programming

A

programming paradigm in which the steps required to execute a program are set out in the order they need to be carried out
- may be smaller and take less time to execute - fewer instructions and less data storage required
- good for small, simple programs, easy to read

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

object oriented programming

A

a programming methodology that uses self-
contained objects, which contain programming statements (methods) and data, and which
communicate with each other
- more complex problems, enables programmers to work with real life things

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

class

A

a template defining the methods and data of a certain type of object

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

attributes

A

the data items in a class.

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

method

A

a programmed procedure that is defined as part of a class.

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

encapsulation

A

process of putting data and methods together as a single unit, a class.

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

object

A

an instance of a class that is self-contained and includes data and methods.

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

property

A

data and methods within an object that perform a named action.

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

instance

A

An occurrence of an object during the execution of a program.

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

data hiding

A

technique which protects the integrity of an object by restricting access to the
data and methods within that object.

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

inheritance

A

process in which the methods and data from one class, a superclass or base class, are copied to another class, a derived class.

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

polymorphism

A

feature of object-oriented programming that allows methods to be redefined
for derived classes.

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

overloading

A

feature of object-oriented programming that allows a method to be defined
more than once in a class, so it can be used in different situations.
eg use the method with different parameters

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

containment

A

process by which one class can contain other classes.

16
Q

destructor

A

a method that is automatically invoked when an object is destroyed.

17
Q

declarative programming

A

statements of facts and rules together with a mechanism for setting goals in the form of a query.

18
Q

writing a program for a binary tree

A
19
Q

exception

A

an unexpected event that disrupts the execution of a program
caused by:
- programming errors
- user errors
- hardware failure
eg /0, reaching end of file unexpectedly, trying to open a file that doesn’t exist, losing connection to a device eg printer

20
Q

exception handling

A

the process of responding to an exception within the program so that the program does not halt unexpectedly.
- makes a program more robust as it traps the error and outputs a message followed by an orderly shutdown or recovery if possible