What are the main differences between natural languages and programming languages?
Natural languages have more complex syntax rules and can be more ambiguous
Why do many types of high level programming language exist?
HLL’s are often written to solve particular types of problem
All commands will be executed one after the other unless otherwise directed
Lines of code are executed based on whether a condition is true or not
Iteration is when a set of commands is repeated a set number of times. Often known as a loop.
What is meant by programming languages being problem oriented?
When code is written with particular people in mind
Give two reasons for the development of object-oriented languages
Increasing complexity of programs caused problems in managing and maintaining them
GUI environments cannot be programmed by the constructs of conventional environments
Use of global variables meant that it became more and more difficult to keep errors from occurring where it was changed accidentally
Define the term Instance
Each object created during the execution of an object-oriented program
New objects will have a copy of the data required to define the object and may inherit data defined in other classes
When is object oriented programming commonly used and why?
In programs which model real-life situations because objects can be created, destroyed and modified just as they would in reality.