Principles of Programming Flashcards

1
Q

Object Oriented

Programming

A

A style of programming in which programmers define classes that consist of attributes (data) AND operations (functions/methods)

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

Class

A

Blueprint for an object. A class defines how an object is to behave (methods) and what data is to be stored (attributes/variables)

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

Object

A

An instance of a class

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

Access modifier

A

Keywords in object-oriented languages that set the accessibility of attributes and methods. E.g. private, public, protected or static.

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

Procedural

A

Instructions are in programmer defined sequence. Used for a general application like payroll. Eg. Visual Basic, C, PHP

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

Event-driven

A

The flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs

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

Visual

A

Users create programs by manipulating program elements graphically rather than by specifying them textually.
Used when writing applications that require GUI or for visual environments like Windows

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

Markup

language

A

Uses tags to define elements within a document. It is human-readable, meaning markup files contain standard words, rather than typical programming syntax.
Used creating web pages

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

Low-level

language

A

Machine code and assembly languages, instructions reflect the way the machine is built; good for driving printers, creating displays and translators. Not good for problem solving

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

High-level

language

A

Programmer can express the program in a way that reflects the problem, allows meaningful identifier names and use of subroutines.

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

Paradigm

A

A typical style of programming approach used to structure a program in a particular way.

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

Encapsulation

A

Combining data and methods into one class. Data in the class is accessed using predefined methods and parameters. The implementation (code) of an object is hidden from the rest of the program.

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

Inheritance

A

Class used to build a hierarchy of descendant classes with each descendant class has access to data and methods from its parent class

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

Polymorphism

A

Giving an action/method one name that is shared up and down the class hierarchy. Each class implements (codes) the action (method) in a way that is appropriate to itself.

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

Data type

A

An attribute that tells what kind of data is to be held in a data item or variable e.g. integer, string, single

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