Topic 1.4 - Principles of Programing Flashcards
What is a procedural language?
This is a language that uses defined sub-routines, functions and procedures to describe to the computer how to do something.
- Obey ordered instructions
What is a non-procedural language?
This is a language that gives orders in the form of queries which then return facts.
- eg querying a database
What is an event driven language?
- Used with a GUI
- User’s inputs create events which are handled by event handlers
What is a visual language?
- Often used to teach programming
- eg Scratch
What is a mark-up language?
- Describes how content it laid out on a web page and how to handle interactive event
What is a class?
A class is a set of objects which share a common data structure and common behaviour.
What is a class definition?
A template that can be used to create objects
What is an object?
It is an instance of a class
What are attributes?
These are characteristics and fields of an object
What are methods?
These are the procedures and functions carried out by the object
What is encapsulation?
The idea that objects should contain all the methods and attributes that they need
What is instantiation?
This is the concept of an object being based on a class
What is polymorphism?
The same name is used in the class hierarchy for a method but each class may implement this differently.
What is inheritance?
Enables new objects to take on the properties of existing objects
What is a superclass?
A superclass is used as the basis for inheritance